Web Service triggering a Process Flow

Hi
I am a newbie to Oracle10g BPM. I am building a web application using Google Maps that would inturn invoke a BPM process.
From the Google Maps JSF web application i want to invoke a web service which in turn should do the required set of tasks(i.e geocoding and subsequent processing).
As such this is an application calling another BPM application.
The business logic is embedded in a web service(which forms the FIRST STEP) in the process. The web service is in turn expected to do a series of tasks which do not require any human intervention.
What i am NOT clear about is how to setup a Process flow that exposes a web service (at the first step) that can be consumed by external applications.
Can anyone give me broad guidelines on how i should be implementing this in BPM.
Thanks and Regards
Govind

This thread goes through step-by-step instructions on how to expose a process as a web service (PAPI-WS) working on both Studio and Enterprise:
PAPI Web Service (PAPI-WS) Example for Oracle BPM Studio
Dan

Similar Messages

  • Calling an External Web-Service Inside an Exception Flow

    Hi all,
    Is it a good practice in OBPM to call an External Web-Service when the process enters inside a System Exception Flow?

    Your challenge will be when you throw an exception inside the Exception handler chain. You can't catch an exception (other than in a try/catch block in the logic of an Automatic activity) inside an Exception handler chain.
    Sorry - not a good practice.
    Dan

  • How to access/invoke Web Service from BPM Process

    The following steps required to attach and invoke web service method from process:
    1) Add a module in the catalog for ex WebServiceMO
    2) Add WebService Catalog component demoWebService in WebServiceMO
    3) Put ur WSDL address in WSDL address field like "http://localhost:8080/test/test?wsdl"
    4) Click next to introspect the web service it will import required files and setting from the url to your project
    5) Now for invoking webservice just call the method for ex.
    @return as String[]
    getTestStringList(TestInterfaceService, out @return : @return)
    logMessage "web service calll result >>"+length(@return)+">>>"+@return[0]
    Here @ return is the return from webservice call.
    this way u can access web service from BPM process.
    Edited by: Anurag Yadav on Jul 17, 2009 2:19 PM

    I have a web service which does not return any value but when I introspect the web service, I have an out parameter to it.. Not sure why?
    For e.g.
    TestServiceListener.addTestNotes(TestNotes : testNotes, out TestNoteResponse : testNoteResponse);
    So here I see an out parameter, but my web-service has no out parameter...
    Any idea why is this happening?

  • Using web services in Approval Work flow in OIM 11g

    Hi All,
    I am a new bie to OIM 11g. I have created an approval work flow and it is working fine.
    Now my requirement is to use a web service in the approval work flow instead of directly embeding the java code in Java Embeding Activity. Can some body share me a document or url for the process of doing it.
    Thanks in advance for the help.
    Thanks,
    Preeti

    If you are using OIM 11gR2 please refer the below document. All steps are very clear with the screenshots.
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#autoId27
    See section 21.3.5.7 Configuring the Human Task and BPEL Mappings
    Also see this OBE tutorial for getting idea on Java embedding activity and assigning and retrieving data from global variables in SOA
    http://www.oracle.com/webfolder/technetwork/tutorials/obe/fmw/oim/oim_11g/Request_Workflow_for_Self_Registration/request_workflow_for_self_registration.htm

  • URGENT: Error while invoking soap-based web service from BPEL process

    I am trying to invoke a soap-based web service deployed in a different OC4J container but on the same iAS middle tier install as the BPEL server. The deployment is successful. I am running 10.1.2 BPEL server.
    But invoking a process throws the following error.
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="summary">
    <summary>when invoking locally the endpoint 'http://stadd53.us.oracle.com:7779/idm/ProvService/cps', ; nested exception is: ORABPEL-02052 Cannot lookup BPEL domain. The BPEL domain "ProvService" cannot be found; the domain may not have initialized properly. Please verify that the BPEL domain loader has a valid set of initialization properties in the application properties file.</summary>
    </part>
    <part name="detail">
    <detail>ORABPEL-02052 Cannot lookup BPEL domain. The BPEL domain "ProvService" cannot be found; the domain may not have initialized properly. Please verify that the BPEL domain loader has a valid set of initialization properties in the application properties file.</detail>
    </part>
    </remoteFault>
    Any ideas on what the problem might be ?

    Sandor,
    Thanks. Your suggestion of turning off optSoapShortcut worked. So does that mean that by default remote web services cannot be invoked from BPEL process by SOAP - unless this configuration change is done ?

  • Connection Refused while invoking Web Service from BPEL process

    Hie
    I am getting the following error when I try to invoke a web service (created in JDeveloper) from a BPEL process.
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
    <part name="code">
    <code>Server.userException</code>
    </part>
    <part name="summary">
    <summary>when invoking endpointAddress '.......................', java.net.ConnectException: Connection refused: connect</summary>
    </part>
    <part name="detail">
    <detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: java.net.ConnectException: Connection refused: connect faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.net.ConnectException: Connection refused:
    Did anyone come across a similar problem...??? Plz help:(

    Hi everybody,
    I have the same problem. I developed a sample bpel process and tried to access it form another one, but still having the same exception :
    <remoteFault>
    <part name="code" >
    <code>Server.userException</code>
    </part>
    <part name="summary" >
    <summary>when invoking endpointAddress 'http://set.by.caller', java.net.UnknownHostException: set.by.caller</summary>
    </part>
    <part name="detail" >.......
    Thanks for your help!
    miroo

  • Invoking Asynchronous Web Service from BPEL Process

    Hi,
    I have been working on the BPEL Process Manager for some time and now facing problem in invoking asynchronous web service from a BPEL Process. I have implemented a web service in Java using Axis but wasn't able to invoke it.
    I have gone through all the meterial available on this site but couldn't get any great help.
    Can some one help me in resolving this issue. A pointer to any example or sample material/tutorial will be appreciated.
    thanks
    Farooq

    I do the same thing.
    Take wsdl from axis and save it somewhere.
    Then you can create a standard project in Oracle BPEL PM. Create partnerlink, give a name and click on first icon to take your wsdl. It will add some needed code, you answer always yes. Then you can create receive, assign, invoke, assign and callback or similar and deploy it.
    Try it through BPEL Console...
    Ema

  • Mappings not triggered from Process flow?

    Hi,
    I have some mappings under a process flow..they are triggered daily but today they were not triggered can anyone tell me how to go about this?

    Hi ,
    If you have deployed the schedule then it will be in Disable state .
    You can check that by logging into SQL*PLUS as the Target user and running
    select job_name, state from user_scheduler_jobs;
    Use the Schedule tab on the Control Center Jobs panel in the Control Center Manager to schedule
    the job. Highlight, right click the job and from the pop-up menu select "start". Use the same query to check the current status:
    select job_name, state from user_scheduler_jobs;
    The above query will show whether the scheduled job is SCHEDULED, RUNNING or SUCCEEDED.
    Thanks,
    Sutirtha

  • Web Service for bulk processing (inserts mostly)

    In our case what we have is an interface table that needs to be populated by the web service.
    On the web service provider side, we have created EO,VO and AM for this interface table and exposed the AM as a web service using the create and process Operation.
    We tested our web service to insert a single row and it works fine. Consumers could do this in a loop to take in multiple rows but that may not be very efficient.
    The web service consumer will be calling the web service based on the customer scheduling of the a job. So, at the time of the web service call, number rows to send (from consumers tables) could be any number (100 or 1k or 10k rows) based on the activity on that system.
    What will be the most performant way for the consumer to populate data into our SDO and call our web service?
    Are there examples that show how we can send bulk data using a web service?
    This web service can also be used by 3rd party application (other than our internal applications). They may send data in an XML format. How can that be included in this web service without having to do different things for different types of consumers (internal or external).

    I will not comment on "IIS recycle its workers process
    ". I don't think you have ever said its IIS is the web server used by yourt 3rd paty to host their web service. We (atleast I) don't know wheather your 3rd party's web service is hosted on IIS. It’s some "Web Server"
    could be IIS (if its Microsoft based) or Apache or something else.
    Come back to your question, when the error says "The request could not be
    understood by server due to malformed syntax", when you’re sending the message as expected by 3rd party service, then it has nothing to do with your end, error is returned by your 3rd party. And as you have mentioned you are tracing the
    messages thru Fiddler and you see messages are constructed same and fine as expected by your 3rd party. Don't confuse its nothing on your party, either first deployment or last. Check with your 3rd party
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • SharePoint NTLM web service from LC process problem

    Hello all,
    I'm struggling to get a LiveCycle process to update an internal SharePoint list via its NTLM Windows authenticated web service. 
    As you can see from the above, the schema definition is loaded no problem, and I can select the operation I want to run.  I've used the "Test" tab to attempt to send a request to update the list:
    Attempting to test the web service call (in Workbench) gives errors in the UI along with the server.log all to do with authentication problems.  It's worth mentioning at this point that the "User name" and "Password" boxes on the Settings have been left blank in the screenshot.  I have tried all possible combinations here, and the error messages in the log differ for each scenario, demonstrated below:
    Error in UI for all:
    Various Server.log errors:
    Blank Username / Password
    Which made me think, "I'll add a test AD username / password" and see what happens..
    With Username / Password
    Of course, "I'll add the domain before the username" and try again...
    With Username / Password (DOMAIN\Username & Password) - (tried both fully qualified domain & shortened)
    But.. It's still asking for the DOMAIN?
    The solution for now:
    In the meantime, I've resorted to enabling BASIC authentication on the SharePoint site, which accepts the request and returns a response, but realistically we don't want to enable this for a production environment.  It also doesn't help explain what the underlying issue is with LC, or even if it's a LC issue at all!
    I eagerly await some experienced person to help with knowledge on the subject..
    Thanks,
    Alex

    Our issue may be unrelated, but you will probably encounter issues with some of SP's native web services.
    I am also trying to set up processes in LC that insert list items into sharepoint, however some of SP's services in lists.asmx dont seem to have a properly exposed wsdl. I am able to get list items to properly insert (see below), and our server is set up with basic auth right now (behind the firewall).
    Once you get the right creds. over basic, do you have any issues publishing content (specifically using updatelistitems)?
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.microsoft.com/sharepoint/soap/">
       <soapenv:Header/>
       <soapenv:Body>
          <soap:UpdateListItems>
             <!--Optional:-->
             <soap:listName>Announcements</soap:listName>
             <!--Optional:-->
             <soap:updates>
    <Batch OnError="Continue" RootFolder="/Lists/Announcements">
    <Method ID='1' Cmd='New'>
    <Field Name='Title'>testforfields233</Field>
    <Field Name='Body'>!!!!!!!!!!!</Field>
    <Field Name='ApprovalStatus'>denied</Field>
    <Field Name='URL'>http://www.google.com</Field>
    </Method>
    </Batch>
             </soap:updates>
          </soap:UpdateListItems>
       </soapenv:Body>
    </soapenv:Envelope>

  • Accessing web services for leave process

    Hi,
    We are looking to make a webesrvice for the leave process in ESS.
    1. Are there any standard webservices that SAP provides for this process in ECC6? If yes, how do i access them in the portal?(I am unable to find the services in SICF)
    2. If there are no standard webservices then i would like to make the BAPI's that SAP uses in the standard ESS package in portal and make them as web services. When i try to make it as a web service i get a error that web service cannot be created. Any pointers to resolve  this error?
    3. Is there any standard URL that i can pass in the portal for a WSDL system and access all the webservices available in ECC6 through thus URL.(Something like a web service repository).
    Thanks in advance,
    Arun

    Hi Anton,
    Thanks a lot for you quick response. Thanks for the info while using a BAPI, will keep this in mind before we decide to use the BAPI. We are looking at the option of using Visual Composer for the development. We are triying to create the WSDL System as per you suggestion using the URL
    <b>http://<server>.<domain>:<httpport>/sap/bc/bsp/sap/webservicebrowser</b>
    But this system fails in the connection tests in the portal with the error message
    <b>Results
    Retrieval of default alias successful
    Connection failed. Make sure user mapping is set correctly and all connection properties are correct.</b>
    Iam sure of the user mapping because when i connect with the URL
    <b>http://<server>.<domain>:<httpport>/sap/bc/bsp/sap/webservicebrowser/search.html</b> i get a page that shows a huge list of services.
    But how can i access all these services in Visual Composer through a single system created in the portal?
    Thanks again
    Arun E V

  • OWB 11.2 CDC Web Service problem

    We are running OWB 11.2 on a Win x64 2008 database server and using XP clients
    Using the new ODI based method for configuring CDC we have created a cdc enabled Oracle module, and this is working as expected. The next step is to try to run "Extend", "Lock subscriber", "Purge" etc from our process flows. To accomplish this we have tried the following:
    - right click on the CDC module and create the web service for the module under "default_app_server" (the OWB agent)
    - Deploy the web service
    - Include the web service in a process flow to extend and lock subscriber
    - Deploy the process flow
    When trying to execute this process flow it fails with:
    javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Message send failed: Connection refused: connect                                        
    I get the same error if I try to execute the web service directly by right clicking it in the OWB client.
    There does not seem to be a problem with the web service itself. I have tried to execute it both from the "test page" on the OC4J server, and a simple BPEL process I created in Oracle SOA suite, and in both cases the service works as long as I supply the credentials for basic authentication
    I have tried creating a URI location to supply the credentials, and I have also tried to register a the web service as an external service under "Globals Navigator" so I'm running out of things to try...
    Any help would be greatly appreciated
    Thanks,
    Roald

    As Guenther mentioned it sounds like you have not defined the work schema. It can be just the same as the schema, but generally advised to have a different one since this will be where temporary work tables will be created.
    It should (at least) be in the description that the work schema must be granted the SELECT ANY TABLE privilege for this template/KM.
    Cheers
    David

  • Creating a Web Service to handle flow between BPEL process and XML Gateway

    I am new to Web Services. I have never created one, yet I have the task of designing the following for a project.
    Any help as to what steps I need to take would be very very helpful. There is a lot of information on XML, SOA and WSDL out there that it can get very confusing, and sometimes you just need someone to point the way
    What I need to do is create a Custom Send and a Custom Receive Program (both web services) handle the message flow between an Enterprise BPEL processes and a Deployed XML Gateway.
    BPEL compresses this XML business object document (for faster transmission), and sends remotely to this Custom Receive web service, which in turn calls a decompress java program and then send the document to the XML gateway inbound web service.
    The Custom Send web service does just the opposite. It needs to take the business object document from XML gateway, call the compress java program and then send to the Enterprise BPEL.
    In a nutshell...these Custom Send/Receive Web services handle the message flow between the Enterprise BPEL process and the Deployed XML Gateway.
    What I need help on...
    -Creating this in JDeveloper- where do I get started?
    -How does a web service receive a compressed file sent to me via BPEL? Does it just sit there waiting for it?
    -Is this a synchronous or asynchronous design?
    -Will this be 2 web services (Send and Receive) or do I make 1 with 2 functionalities
    -How do I call the java compress/decompress program within the web service? (this java function is already created and ready to be called)
    -Is this decompressed business object file an XML schema and an XML message? Or just a message?
    -I need to send this to the XML Gateway Web Service to load. How does that work?
    -I have a Generic XML Gateway WSDL file...I assume I need to take all the info I get and map it to this template? Is this true? How do I do that?
    Like I said, any help would be appreciated. Links answers to my many questions would be fabulous.
    -Jason

    If you are talking about simple XML transformation of the SOAP payload between the client calling your service and the final destination of the message you are routing, the ESB approach may be a better fit.
    If you have more complex transformation in mind, with major processing and rework of the message in the intermediary, you may be better of with using the POJO approach. Write your service and embed a callout to the other service in your implementation. If the two services share the same Java Model, you may even be able to re-use the same Java Bean.
    To get SOAP Element instead of Java bean, you just need to use the noDataBinding option with either genProxy and topDownAssemble (or assemble). See the WS-Guide [1] for details. Chapter 18 will give you all the details about the different WSA command line parameters.
    Hope this helps,
    -Eric
    [1] http://download-west.oracle.com/docs/cd/B31017_01/web.1013/b28974/toc.htm

  • Use web service to invoke a new process execution

    Hello,
    I'm using BPM 10g3, and i'm trying to invoke a fully automated process via a web service
    I've setup my web service http://<host>:<port>/albpmServices/<engine name>/ws/<process name>ServiceListener?wsdl
    I've accessed it from a C# application i wrote and visual studio did identify my functions and such.
    I can successfully start a new session (startSession(string password ,string username) and i get a sessionID back) with the web process.
    but when im trying to invoke my own function (which is defined in the Process web service as a Process Execution on my beginIn parameters) I get a response with a FaultException with no visible error code.
    In the BPM log I can see the folloowing lines:
    1) Invoking service with id:<Process Name>ServiceListener
    2) Executing item: IMMEDIATE Inst [-1, -1,-1] Act [No activity] Proc [No Process] Due 1318860646000000]
    3) TransactionAction: Rollback!
    while the TransactionAction: Rollback! means that something bad happened, i cant see the reason.
    any idea's?

    OK i've got it working.
    I did all the things you suggested before but when you said i need to see that the right activity is being started i understood what's wrong
    The chosen activity must be in a lane with the same role as the user login in to the session.
    So i added a role on Begin and created a participent for that role, logged in with it and now it works =)
    Edit: I'm the same guy that opened the threqad, just needed to make a new user for enterprise support (didn't get to use that though)
    Edited by: 891957 on 23:59 17/10/2011

  • WLI: Can't call synchronous web services from async business process?

    I have three web services, X, Y, and Z, that I want to call from a business process B. X is asynchronous, Y and Z are synchronous. Therefore, B must be asynchronous. B is called from another business process, A, that must be synchronous. So, I have A call B synchronously using the SyncAsync pattern described in "Best Practices for Oracle WebLogic Integration Application Life Cycle". This worked fine in earlier development when I was only calling X from B. However, when I try to add synchronous calls to Y or Z and run A, I get the following error message from B:
    com.bea.control.classic.ServiceControlException: Attempting to perform the client
    callback 'doY' while servicing a blocking request from the same client.  This can
    result in a deadlock condition.  An @jws:message-buffer tag should be placed on
    the synchronous operation or on this callback.This is obviously an old error message, since it recommends an annotation in the old style. Anyway, what can I do? Shouldn't it be possible to invoke web services synchronously from process B? If so, then how? I don't know what synchronous operation it's talking about -- is it A's call to B? As for the callback, I don't see a separate callback. Annotating the SBControl's method with weblogic.jws.MessageBuffer did no good, and I can't use com.bea.control.annotations.MessageBuffer because the method doesn't return void. Can I make this work without rewriting B, and if so, how? It'd be nice if I could call X, and then call Y and Z while waiting for X's callback.
    Alternatively, I could rewrite my processes so that A calls a new process C synchronously, which in turn calls B (which calls X), Y, and Z. That should work, right? Thanks for any help y'all can give me.

    Greetings everyone,
    We have found a solution to this problem, and it is very much like one offered by Trinidad, except there was some confusion in my understanding.
    http://sql-patch/B1WS/webreferences/LoginService.wsdl
    Indeed, the url http://localhost/Service.asmx appears in the WSDL files, as well as the web.config.
    I changed it to http://sql-patch/B1WS/webreferences/LoginService.wsdl in the WSDL files only.  This did not work.
    We then found it in the web.config file also, and changed it to http://sql-patch/B1WS/webreferences/LoginService.wsdl also.
    The reason I was using this URL is because the files exist there.  Looking at IIS, there is no Service.asmx anywhere in the B1WS path, and this confused me.
    This got us one step further, but now a new error was showing itself -- 405 Method Not Allowed.
    It turns out that the URL we needed to change it to is this:
    http://sql-patch/B1WS/Service.asmx
    That is, we replace localhost with the name of the machine, and NOTHING else.
    This seems to have solved it for us, and is hopefully useful for you.
    Thanks all,
    Mike

Maybe you are looking for

  • Sharing music between different accounts on a single computer

    I have read the instructions here: http://support.apple.com/kb/HT1203 , but I'm still having a problem. Scenario: Two Ipods, one PC (WinXP), one big music library, originally created and stored directly in C:\My Music, which is accessible to all user

  • Early watch alert task not created in SDCCN in satellite system

    Hello Everyone, I am trying to configure EWA in solution manger 7.0 ehp1. I have added the system in SMSY, created RFC SM_SIDCLNTXXX_READ and SM_SIDCLNTXXX_TRUSTED in solution manger and also created RFC SM_SIDCLNTXXX_TRUSTED and SM_SIDCLNTXXX_BACK i

  • Transfer of apps from ipod to itunes

    i click on 'file' then 'devices' then onto ' transfer purchases from my ipod' one i click on that it says: 'some of the purchased items could not be transfered to your itunes library because you are not authorised for them on this computer' then it s

  • Socket reading -writing

    hello friends i am new to this forum and looking forward for some help from you guys suppose i open a socket and made a connection to the remote server now i have one socket with me and another corrresponding socket with the server .i write a very lo

  • Unable to find managed files in Aperture 3

    Hi there, I have consildated the master files by copy them into the aperture library. The problem is that now aperture is now able to locate any of the master files. I tried to use the option of relocating the master file but it was impossible since