How to call an  encrypted webservice in  BPEL process?

If i need to call a J2EE webservice which need to authenticate,like need to provide the username and password,or need to provide the signature,how can i discribe it in a BPEL process? Is there any article addressing this problem?
Thank you!

OWSM can mange both ways. You have the option of using the gateway or using the OWSM gateway. The gateway is easier to configure but data is decrypted between the gateway and the SOA Suite / BPEL so depending on your use case and security you may need to use agents.
cheers
James

Similar Messages

  • How to call AIAAsyncErrorHandlingBPELProcess in my custom BPEL Process

    Hello
    We want to use AIA Foundation pack Error Handling capability to our SOA Interface. I installed & configured Foundation Pack (Notification). I would like to know
    1) How to invoke AIAAsyncErrorHandlingBPELProcess in my interface?
    2) What variables to pass?
    3) What error tables to look?
    4) Any other configuration I need to do before I start to invoke AIAAsyncErrorHandlingBPELProcess ?
    As this would be the first time we would be using AIA(FP). If you have any samples - would you share?
    Thanks
    Babu

    1) How to invoke AIAAsyncErrorHandlingBPELProcess in my interface?
    Its like calling a webservice endpoint, you need to construct AIAFault (found in meta.xsd) and then pass it to AIAAsyncErrorHandlingBPELProcess.
    2) What variables to pass?
    You have to construct AIAFault variable.
    3) What error tables to look?
    You can see WL JMS topic - AIAErrorTopic (configured - OOB after installing FP)
    4) Any other configuration I need to do before I start to invoke AIAAsyncErrorHandlingBPELProcess ?
    You might want to look @ AIA error notificaiton setup (using the AIAApplication - setup pages available ). But its optional, i.e. if you do not setup anything, still the default values will be picked up from the AIAConfigurationProperties.xml file.
    You can look @ AIADemo that gets shipped with FP for more information on how to call AIAAsyncErrorHandlingBPELProcess. You could also use AIA Service Constructor JDeveloper plugin which will autogenerate lot of code for you including EH, CAVS code.

  • How to call XI exposed webservice from J2ee

    How to call XI exposed webservice from J2EE , and how to pass UserID and Password to it.

    hi sapuser,
    i do not know on which j2ee stack you currently run. Description Link comes from CE:
    // consuming webservices in j2ee
    http://help.sap.com/saphelp_nwce10/helpdata/en/46/a95353005d371ae10000000a11466f/content.htm
    // user & password
    configure the client in the nwa by changing logical port settings:
    http://help.sap.com/saphelp_nwce10/helpdata/en/46/a86ac5f9ee371ce10000000a11466f/content.htm
    Regards, Jens

  • How to get response from an asynchronous BPEL process in Java

    I'm experimenting with BPEL and doesn't seem to be able to get response from an asynchronous BPEL process. Here's the deal:
    I have a BPEL process that takes a string as input, and gives another string as output. This is a asyncronous process.
    I want to initiate this BPEL process as a web service so I generate a Webservice Proxy in JDeveloper 10g (10.1.3.0.4). The function to call the process is now called "initiate" and takes three arguments: the input string, a "org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType replyTo" and a
    "org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI messageID".
    HTTP-Analyzer shows that invoking the BPEL process with initiate("somestring", null, null) results in sending a SOAP message to the BPEL process, which returns a "202 Accepted". How do I get the response from the process? My intuition tells me that I have to use that second argument, that EnpointReferenceType thing. How do I use that?
    Another question: If a asynchronous BPEL process does not exists (so the endpoint does not exist) the Java proxy does not throw an error when runned. It does not even sends a message. It exits with status 0! (This happens for example when deploying a new version of a process and when the "old" version is undeployed). Calling a non-existing synchronous BPEL process, the Java proxy DOES throw an error.

    Clemens,
    That all sounds logical. But somehow it is still a mystery for me ... Somehow I don't see what should be done.
    To call the async BPEL process I have the following procedure:
    initiate(String input, org.xmlsoap.schemas.ws._2003._03.addressing.EndpointReferenceType replyTo, org.xmlsoap.schemas.ws._2003._03.addressing.AttributedURI messageID)
    The first argument is the input for my BPEL process. The second is the address to a webservice that should handle the callback, right? The third is a messageID (makes sense, but why of the type AttributedURI?).
    Here lies my problem. It is not clear to me how these EndpointReferenceType & AttributedURI work. I can't find anything on the net about it. The AXIS examples as where mentioned earlier use other types (namely the "org.xmlsoap.schemas.ws.addressing.MessageID" and "org.xmlsoap.schemas.ws.addressing.ReplyTo") which are completely different.
    What I did so far:
    - I created an webservice proxy that listens on the onResult endpoint of the BPEL process.
    - I created an webservice proxy that calls the BPEL process through the initiate procedure, but it is not completely clear to me how to construct the EndPointreferenceType replyTo, and the MessageID. I did something like this:
    EndpointReferenceType replyTo = new EndpointReferenceType();
    // callback service running on local machine
    // This URI class is the java.net's version
    URI replyToURI = new URI("http://vaccinatie:8988/syncro-callback-context-root/stringconcatCallbackBindingPort");
    // This AttributedURI is the org.xmlsoap.schemas.ws._2003._03.addressing's version
    AttributedURI address = new AttributedURI();
    // the only public methos that made sense to me:
    address.set_value(replyToURI);
    replyTo.setAddress(address);
    // call the BPEL process
    myPort.initiate("test123", replyTo, address);
    But the above doesn't work (largely because I don't know what I'm doing here prob.:-) ) It does send the "test123" message, and the BPEL process does process it, but I don't seem to get the callback right.
    I hope this makes my problems somewhat clearer. I hope someone can help me, because I'm just a beginner in this whole "web service area" and seems to do something terribly wrong here, because it should be very simple. Thx.

  • Not able to get the data from synchronous Webservice To BPEL process

    Hi All,
    My requirement is : Third party has some webservice.They are pushing data to that Webservice(Wsdl).
    Third part WSDL example : http://ipaddress:port/name/Service.svc?wsdl ( This is just example format of their WSDL)
    After that I need to get that data into my BPEL process and update my system.
    When I built My Snchronous BPEL process I imported third party WSDL(http://ipaddress:port/name/Service.svc?wsdl) through 'import WSDL' in dialog.After that I automatically got the (request and response schema elements) parameters from that WSDL.I gave input and output of the BPEL process from those elements.
    I pasted that third party URL iin SOAPUI and I got their operations and schemas.Based on that I had choosen the elements for 'input' and 'output' of the BPEL processes.I am also getting the schema structures in 'Assign' or 'Transform' activity.
    I built the whole process.
    I have the Process.
    Now Client is pushing data to their WSDL(http://ipaddress:port/name/Service.svc?wsdl) as it is their data pushing interface.But that data is not coming to my BPEL process and instance is not being created in EM console.
    As I have imported their WSDL into my BPEL process,I need to get the data.But I am not getting the data.
    Is there any problem in MY BPEL process?
    (or)
    DO I need to use 'Webservice' Adapter in 'Exposed Services' Swimlane in Composite Editor to have the third party URL, so that they Can push the data to that WSDL in turn that data comes into my BPEL process?
    Can anybody help me this case?
    once again my requirement is :
    Client pushes the data through their WSDL url -----> I need to get that data into MY BPEL process --> I have my own WSDl to take that details into my system.

    I will explain the requirement in small paragraph:
    There are two applications.One is our application(X) and another one is third party application(Y).
    I need to update in my application(X) based on data coming from application(Y).
    I am using SOA as a middle tier to have communication between Y and X.
    (Ex: if they send some info like event type 'event1' from Y ,I need to update that 'event1' data in my X application)
    The work at third party application is :
    According their info,They will push data from their end to their WSDL( http://ipaddress:port/name/Service.svc?wsdl ).
    They are telling they can only send the data to their WSDL( http://ipaddress:port/name/Service.svc?wsdl ).
    They will not consume our BPEL process(I think they might be wrong at this point of time).They have one WSDL to send or push the data from their end.
    The work at from our side(SOA & X application)
    From that point ,our BPEL process has to receive that data and update that data into my application(X).
    I hope You understand my requirement.
    Can you guide me through how to achieve this task as they are telling they have to use their WSDL to push the data?
    (or)
    Do I need to take 'Webservice' adapter into Exposed Services Swimlane in Jdeveloper to have their webservice(third party WSDL),If it is So Can you tell me the details how to take 'input' and 'output' for BPEL process?
    (or)
    Can YOu suggest me to talk to them to consume my BPEL process directly?
    Thanks
    Edited by: 899283 on Aug 17, 2012 4:55 AM

  • Doubt: How to get Instance Id of a BPEL Process

    Hi All,
    I have a doubt in BPEL as to how we can get the Instance Id of a particular faulted process.
    Business Scenario
    We have a process which does the following:
    1. Dequeue message from a queue.
    2. Do the Transformation
    3. Insert the Output message into a Database Table by calling a Stored Procedure
    The BPEL Process will create multiple instances of the process after successful completion.
    Now we want to add fault handlers at each of the above steps which will catch any exception that will basically get the Instance Id of the particular faulted process and send it to a mailing list using E-mail notification Service mentioning the Instance Id of the Faulted Process.
    Currently we could not find any way on how to capture the Instance Id of the Faulted Process. We have this requirement because in Production Environment many instances of the process will be spawned and it will be difficult to know which Instance has faulted.
    Anybody familiar with a similar requirement or any pointers on how to achieve this, please post it and let us know.
    Thanks In Advance,
    Dibya

    This xpath function returns current instance id of running process ora:getInstanceId().
    But in your case I would do this flow in ESB. Because this kind of "provisioning" of data can be done in ESB. Each execution I would define as async. And when exception occurs it will be logged by ESB and moved to error hospital. Administrator can easily use ESB console to query faulted instances and if neccesary he can resubmit them.
    Just an idea how to make it faster, without doing some special development.

  • How to give multiple inputs to syn BPEL process in Jdeveloper

    Hi,
    I am new to BPEL . I have created programs which takes single input and after processing displays single output. I want to give more than one input at run time (for ex. employee name,age, salary ) and want to display Multiple output after processing them Instead of Just one that I am doing currently. How I can do that using Synchronous BPEL process . Can some one tell that What will be learning time for BPEL using google and forums, for a 3 year exeperienced person in JAVA and new to BPEL.
    Yogendra Rishishwar

    Hi,
    You just need to change the XSD of your process.
    Someone posted something similar last week : How to change the input and output schema in BPEL process
    Hope it will help you ..
    romain.

  • Calling Human Workflow Webservices from BPEL

    Hello,
    I am using J Developer 11.1.1.6 to develop a BPEL process that calls the TaskQueryService Human Workflow webservice. When I compile the SOA project, I get the following errors:
    Error: oracle.xml.parser.schema.XSDException: Can not build schema 'http://xmlns.oracle.com/bpel/workflow/common' located at 'http://xmlns.oracle.com/bpel/workflow/common.__OAUX_GENXSD_.TOP.XSD' [Cause=Can not build schema 'http://xmlns.oracle.com/bpel/workflow/common' located at 'http://xmlns.oracle.com/bpel/workflow/common.__OAUX_GENXSD_.TOP.XSD']
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskQueryServiceFaultResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}successResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}queryViewTasksRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}credentialOnBehalfOfRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/task}task
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}doesViewTaskExistRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/common}workflowContext
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}queryTaskErrorsRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}countTasksRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}queryAggregatedTasksRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}getPermittedAssigneesResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskDetailsByIdRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskErrorsResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskListResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}getTaskSequenceRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskDetailsByNumberRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}getPermittedAssigneesRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskListRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}aggregatedTasksResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}countViewTasksRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskVersionDetailsRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}updateWorkflowContextRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}queryViewAggregatedTasksRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskExistsResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskHistoryRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/common}credential
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}doesTaskExistRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskSequence
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}taskCountResponse
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/bpel/workflow/taskQueryService}workflowContextRequest
    Error: Message part "payload" is undefined [element = {http://xmlns.oracle.com/FuelLogIntegrations/HWFTaskService/FindTasks}process
    I've tried implementing some of the recommendations I found by Googling the error message. I haven't been able to find a workable solution.
    I would appreciate some direction on how to fix the problem.
    Thanks

    I tried the Oracle patch. After installation, I am getting the following error in place of the multiple errors I was getting previously.
    java.lang.VerifyError: Cannot inherit from final class
    Sep 24, 2012 3:55:13 PM oracle.mds
    NOTIFICATION: PManager instance is created without multitenancy support as JVM flag "oracle.multitenant.enabled" is not set to enable multitenancy support.
    Sep 24, 2012 3:55:15 PM oracle.fabric.common.wsdl.SchemaManager isIncrementalBuildSupported
    INFO: XMLSchema incremental build enabled.
    Sep 24, 2012 3:55:18 PM com.collaxa.cube.CubeLogger info
    INFO: validating "InvoiceProcessing.bpel" ...
    Exception in thread "main" java.lang.VerifyError: Cannot inherit from final class
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    at com.collaxa.cube.lang.compiler.bpel.XPathExprValidatorVisitor.<init>(XPathExprValidatorVisitor.java:122)
    at com.collaxa.cube.lang.compiler.bpel.AssignValidator.<init>(AssignValidator.java:89)
    at com.collaxa.cube.lang.compiler.bpel.BpelParser.<init>(BpelParser.java:452)
    at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:60)
    at com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)
    at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)
    at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)
    at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)
    at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1117)
    at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:500)
    at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:150)
    at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:135)
    Please do let me know in case I am doing something wrong.

  • How to call the Salesforce  webservice  create api ?

    Hello Friends,
    I am using Oracle BPEL process manager 10.1.2 .
    I have created the BPEL process project.
    In it I have deployed the Salesforce webservice.
    I have assigned the session id ,URL according to the as given in
    demos->salesforceflow .
    I have called the login api , query api that is successfully called.
    But when I call the Create api then it gives the error at run time that
    "Invalid session id found in session header".
    so please tell me what could be reason for this..
    Thanks and regards
    Ram Krishna Tripathi
    [email protected]
    ====================
    BPEL file is as follows:--
    <process name="SalesforceFlow" targetNamespace="http://samples.otn.com" suppressJoinFailure="yes" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:tns="http://samples.otn.com" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:salesforce="urn:enterprise.soap.sforce.com" xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:ns1="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:salesObject="urn:sobject.enterprise.soap.sforce.com" xmlns:ns3="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc" xmlns:ns2="http://schemas.oracle.com/xpath/extension/ldap" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension"><!-- ================================================================= --><!-- PARTNERLINKS --><!-- List of services participating in this BPEL process --><!-- ================================================================= -->
    <partnerLinks><!--
    The 'client' role represents the requester of this service. It is
    used for callback. The location and correlation information associated
    with the client role are automatically set using WS-Addressing.
    -->
    <partnerLink name="client" partnerLinkType="tns:SalesforceFlow" myRole="SalesforceFlowProvider" partnerRole="SalesforceFlowRequester"/>
    <partnerLink name="salesforce" partnerLinkType="salesforce:SoapLink" partnerRole="SoapProvider"/>
    </partnerLinks><!-- ================================================================= --><!-- VARIABLES --><!-- List of messages and XML documents used within this BPEL process --><!-- ================================================================= -->
    <variables><!-- Reference to the message passed as input during initiation -->
    <variable name="input" messageType="tns:SalesforceFlowRequestMessage"/><!-- Reference to the message that will be sent back to the
    requester during callback
    -->
    <variable name="output" messageType="tns:SalesforceFlowResponseMessage"/>
    <variable name="createinput" messageType="salesforce:queryRequest"/>
    <variable name="createoutput" messageType="salesforce:queryResponse"/>
    <variable name="Invoke_1_create_InputVariable" messageType="salesforce:createRequest"/>
    <variable name="Invoke_1_create_OutputVariable" messageType="salesforce:createResponse"/>
    </variables><!-- ================================================================= --><!-- ORCHESTRATION LOGIC --><!-- Set of activities coordinating the flow of messages across the --><!-- services integrated within this business process --><!-- ================================================================= -->
    <sequence name="main"><!-- Receive input from requestor.
    Note: This maps to operation defined in SalesforceFlow.wsdl
    -->
    <receive name="receiveInput" partnerLink="client" portType="tns:SalesforceFlow" operation="initiate" variable="input" createInstance="yes"/>
    <scope name="customerPreference">
    <variables>
    <variable messageType="salesforce:loginRequest" name="loginRequest"/>
    <variable messageType="salesforce:loginResponse" name="loginResponse"/>
    <variable messageType="salesforce:Header" name="headerRequest"/>
    <variable messageType="salesforce:queryRequest" name="queryRequest"/>
    <variable messageType="salesforce:queryResponse" name="queryResponse"/>
    <variable name="partnerReference" element="wsa:EndpointReference"/>
    <variable name="Variable_1" messageType="salesforce:Header"/>
    </variables>
    <sequence>
    <assign name="setSalesforceAuthorization">
    <copy>
    <from variable="input" part="payload" query="/tns:SalesforceFlowRequest/tns:username"/>
    <to variable="loginRequest" part="parameters" query="/salesforce:login/salesforce:username"/>
    </copy>
    <copy>
    <from variable="input" part="payload" query="/tns:SalesforceFlowRequest/tns:password"/>
    <to variable="loginRequest" part="parameters" query="/salesforce:login/salesforce:password"/>
    </copy>
    </assign>
    <invoke partnerLink="salesforce" portType="salesforce:Soap" operation="login" inputVariable="loginRequest" outputVariable="loginResponse"/>
    <assign name="readSessionConfig">
    <copy>
    <from variable="loginResponse" part="parameters" query="/salesforce:loginResponse/salesforce:result/salesforce:sessionId"/>
    <to variable="headerRequest" part="SessionHeader" query="/salesforce:SessionHeader/salesforce:sessionId"/>
    </copy>
    <copy>
    <from>
    <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
    <Address/>
    </EndpointReference>
    </from>
    <to variable="partnerReference"/>
    </copy>
    <copy>
    <from expression="string(bpws:getVariableData('loginResponse', 'parameters', '/salesforce:loginResponse/salesforce:result/salesforce:serverUrl'))"/>
    <to variable="partnerReference" query="/wsa:EndpointReference/wsa:Address"/>
    </copy>
    <copy>
    <from variable="partnerReference"/>
    <to partnerLink="salesforce"/>
    </copy>
    <copy>
    <from expression="concat( 'select Fax from account where AccountNumber=',ora:addQuotes( string(bpws:getVariableData('input','payload','/tns:SalesforceFlowRequest/tns:accountNumber'))) )"/>
    <to variable="queryRequest" part="parameters" query="/salesforce:query/salesforce:queryString"/>
    </copy>
    </assign>
    <invoke partnerLink="salesforce" portType="salesforce:Soap" operation="query" inputVariable="queryRequest" outputVariable="queryResponse" bpelx:inputHeaderVariable="headerRequest"/>
    <assign name="Assign_1">
    <copy>
    <from variable="loginResponse" part="parameters" query="/salesforce:loginResponse/salesforce:result/salesforce:sessionId"/>
    <to variable="Variable_1" part="SessionHeader" query="/salesforce:SessionHeader/salesforce:sessionId"/>
    </copy>
    </assign>
    <invoke name="Invoke_1" partnerLink="salesforce" portType="salesforce:Soap" operation="create" inputVariable="Invoke_1_create_InputVariable" outputVariable="Invoke_1_create_OutputVariable"/>
    </sequence>
    </scope><!-- Asynchronous callback to the requester.
    Note: the callback location and correlation id is transparently handled
    using WS-addressing.
    -->
    <invoke name="callbackClient" partnerLink="client" portType="tns:SalesforceFlowCallback" operation="onResult" inputVariable="output"/>
    </sequence>
    </process>
    =====================
    WSDL FILE
    =============
    <definitions
    name="SalesforceFlow"
    targetNamespace="http://samples.otn.com"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns="http://samples.otn.com"
    xmlns:ns1="urn:enterprise.soap.sforce.com"
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    >
    <import namespace="urn:enterprise.soap.sforce.com" location="services/enterprise.wsdl"/>
    <types>
    <schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://samples.otn.com"
    xmlns="http://www.w3.org/2001/XMLSchema">
    <import namespace="http://schemas.xmlsoap.org/ws/2003/03/addressing" schemaLocation="http://abo-server:9700/orabpel/xmllib/ws-addressing.xsd"/>
    <element name="SalesforceFlowRequest">
    <complexType>
    <sequence>
    <element name="username" type="string"/>
    <element name="password" type="string"/>
    <element name="accountNumber" type="string"/>
    </sequence>
    </complexType>
    </element>
    <element name="SalesforceFlowResponse">
    <complexType>
    <sequence>
    <element name="price" type="double"/>
    </sequence>
    </complexType>
    </element>
    </schema>
    </types>
    <message name="SalesforceFlowRequestMessage">
    <part name="payload" element="tns:SalesforceFlowRequest"/>
    </message>
    <message name="SalesforceFlowResponseMessage">
    <part name="payload" element="tns:SalesforceFlowResponse"/>
    </message>
    <portType name="SalesforceFlow">
    <operation name="initiate">
    <input message="tns:SalesforceFlowRequestMessage"/>
    </operation>
    </portType>
    <portType name="SalesforceFlowCallback">
    <operation name="onResult">
    <input message="tns:SalesforceFlowResponseMessage"/>
    </operation>
    </portType>
    <plnk:partnerLinkType name="SalesforceFlow">
    <plnk:role name="SalesforceFlowProvider">
    <plnk:portType name="tns:SalesforceFlow"/>
    </plnk:role>
    <plnk:role name="SalesforceFlowRequester">
    <plnk:portType name="tns:SalesforceFlowCallback"/>
    </plnk:role>
    </plnk:partnerLinkType>
    </definitions>

    On your Invoke, click the "adapter" tab and make sure the header variable is selected.

  • How to use own created WebService in BPEL?

    Hello!
    I have a problem using an own created Web Service (a wsdl file) in BPEL Process Manager.
    At the moment I have a Java program which is getting values from SAP via SAPJConnector. From this Java program I generate an WebService File (wsdl) via Axis (on my local Tomcat Server).
    Now I want to use this own created WebService (wsdl file) in BPEL. I don't know how to bulid it to my BPEL Server so that I can use it in JDeveloper.
    Does anyone know what I have to do?
    Would be nice if someone could help me, because its very important
    Thank you

    Hi.
    Thanks for your reply.
    The way to invoke the WebService in BPEL Designer is not the problem i have.
    The problem i have is how to deploy my own created WebService (from a Java class with AXIS) to the BPEL server (OC4J).
    Do you know a solution for this?
    I described my Problem detailed in another thread "Thread: Issues Publishing Web Service to OJ4J"
    Tanks and Regards
    Benjamin

  • How to call Apache CXF webservice/Spring/jms from Oracle BPM 10g

    Hi , I am new to Oracle BPM and trying to develop simple POC. Can anybody give me some pointers on how to call a webservice whcich is based on Apache CXF/Spring/WSDL/jms as transport from oracle bpm 10g

    You should ask this question in the JDeveloper or BI Publisher forum.

  • How to call a web service from BPEL that requires HTTP basic authentication

    Hi All,
    I need to calling some Web Services from BPEL (SOA 10.1.3.1 production running on XP machine). The services require HTTP basic authentication.
    I have tried adding httpUsername and httpPassword properties to the ParnterLink, and I see in BPEL Console that they are deployed by checking the descriptor page. But I still get a SOAP fault, HTTP 401: Unathenticated.
    I have also tried using basicHeaders (from memory) = credentials, httpBasicUsername, and httpBasicPassword. Same result.
    I have done a packet trace using Ethereal, and the headers do not seem to contain the userid and password at all.
    Can anyone help?
    Thanks,
    Mark Nelson

    Thanks Bas,
    I have resolved the issue. The provider of the Web Service had not configured if for Basic Authentication. For some reason it worked when they tested, or maybe the did not test. The only thing I had to change was to use:
    <property name="basicHeaders">credentials</property>
    <property name="basicUsername">WMDATA</property>
    <property name="basicPassword">WMDATA</property>
    Instead of:
    <property name="httpUsername">WMDATA</property>
    <property name="httpPassword">WMDATA</property>
    I don’t know why this is, maybe because it is an Axis Web Service.
    Sorry for wasting your time.
    Regards Pete

  • How to pass multiple values while invoking bpel process from ADF?

    Hi,
    I want to call a bpel process from my ADF application. The bpel process is having one input parameter. I have created webservice data control by using WSDL url.
    Lets say, I have an Emp multi select table. I drag and drop the data control into Emp table selection facet to create an "Invoke" button.
    I am able to pass single value (lets say Empid) to the bpel process after clicking the "Invoke" button.
    But, my requirement is to pass all the selected values ( as its a multi select table) to the bpel process after clicking the "Invoke" button once.
    How can I achieve this?
    --Abhijit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Hi,
    if the BPEL method that you access allows you to pass arrays or lists, then you can get a list of selectedRowKeys from the table, which then you use to get the value from the underlying binding or the table. This however requires some Java coding instead of directly invoking the executable on the binding layer
    - you create the BPEL method in the binding layer
    - from a Java managed bean you call ADFBindingContext --> get current instance and access Binding container
    - OperationBinding oper = (OperationBinding ) bindings.get("method to invoke");
    oper.gerParamsMap().put("the BPel argument name", value);
    oper.execute();
    - To access the table selected rows
    RowKeySet rks = _table.getSelectedRowKeys();
      //iterate over the set of selected row keys and delete
      //each of the found rows
      Iterator selectedRowIterator = rks.iterator();
      while (selectedRowIterator.hasNext()){
        //get the first key
        Object key = selectedRowIterator.next();
        //make the row current
        _table.setRowKey(key);
        //the row is an instance of the ADF node binding class
        JUCtrlHierNodeBinding rowWrapper = null;
        rowWrapper = (JUCtrlHierNodeBinding) _table.getRowData();
        //get the actual oracle.jbo.Row object
        Row row = rowWrapper.getRow();
        ... get attribute values by calling row.getAttribute("name"); assuming you used ADF BC to build the tableFrank

  • Invoking webservice through bpel process

    Hi, I created a webservice for a java code. I created a simple bpel process to invoke the webservice. Its throwing below error when running the bpel process. I tested the webservice alone. it works fine. Any help is highly apreciated.
    Thanks, Ram....
    when invoking locally the endpoint 'http://wtus081806-6:9700/Hrinfo-java_test_1-context-root/default', ; nested exception is: ORABPEL-05210 No BPEL archive files. The process domain cannot locate any BPEL archives for process "unknown". If you have deployed a process please check that it is located in the directory "C:\OraHome_1\integration\orabpel\domains\default\deploy".</summary>
    </part>
    <part name="detail">
    <detail>ORABPEL-05210 No BPEL archive files. The process domain cannot locate any BPEL archives for process "unknown". If you have deployed a process please check that it is located in the directory "C:\OraHome_1\integration\orabpel\domains\default\deploy".</detail>
    </part>

    I remember this being a bug in 10.1.2.0.2 - as somehow the servlet thinks the call would be for the bpel engine, instead of the webservice endpoint,
    so I recommend 2 things .. don/t name the operation default
    'http://wtus081806-6:9700/Hrinfo-java_test_1-context-root/default'
    and if this does not help, try to set optSOAPShortcut -> false on the BPEL Domain ..

  • How to invoke TaskService updateTask from within BPEL Process

    Hi
    I have to call the updateTask method defined within TaskService to update the BPEL payload. I initiate the Task in the same BPEL process but I want to update the payload somewhere down in the same BPEL process. Can someone assist me in finding out how I should do that without writing Java code? I want to know which task values I need to set before using the invoke activity and assigning the updateTask method to it.
    Regards,
    Jayesh
    MCSE, MCSD, SCJP, PMP

    I saw a bug reported for this issue
    here is the metalink
    https://metalink.oracle.com/metalink/plsql/f?p=130:15:4302376104022705627::::p15_database_id,p15_docid,p15_show_header,p15_show_help,p15_black_frame,p15_font:BUG,5751185,1,1,1,helvetica
    Bug No. 5751185
    I have attached the text in metalink for those who do not have access to the metalink
    Bookmark Fixed font Go to End Monitor Bug
    Bug No. 5751185
    Filed 08-JAN-2007 Updated 23-JAN-2007
    Product Oracle(R) BPEL Process Manager Product Version 10.1.3.1
    Platform Microsoft Windows XP Platform Version No Data
    Database Version N/A Affects Platforms Generic
    Severity Severe Loss of Service Status Code Bug (Response/Resolution)
    Base Bug N/A Fixed in Product Version No Data
    Problem statement:
    (LOCAL) USERTASK FAILING WITH JAVAX.NAMING.NAMENOTFOUNDEXCEPTION TASKSERVICEBEAN
    *** 01/08/07 03:24 pm *** When creating a usertask in BPEL 10.1.3.1 - I get 2 possible bindings - one SOAP based and the other one java based. When running locally the JAVA Binding is called - and fails with . < 2007-01-08 12:09:44,061> < ERROR> < oracle.bpel.services.workflow> < ::> java:comp/env/ejb/local/TaskServiceBean not found in ActivityManagerBean javax.naming.NameNotFoundException: java:comp/env/ejb/local/TaskServiceBean not found in ActivityManagerBean at com.evermind.server.ApplicationContext.lookupInJavaContext(ApplicationContext. java:306) at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext. java:230) at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:195) at javax.naming.InitialContext.lookup(InitialContext.java:351) at oracle.bpel.services.workflow.task.client.TaskServiceLocalClient.initiateTask( TaskServiceLocalClient.java:48) at oracle.bpel.services.workflow.task.impl.TaskServiceWSIF.initiateTask(TaskServi ceWSIF.java:99) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at *** 01/08/07 03:27 pm *** After looking into the EJB refs of ActivityManagerBean .. exactly this one is missing .. . < session-deployment name="ActivityManagerBean" min-instances="50" location="ejb/collaxa/system/ActivityManagerBean" local-location="ejb_ob_engine_ActivityManagerBeanLocal" persistence-filename="ejb/collaxa/system/ActivityManagerBean.home_default_grou p_1"> < ejb-ref-mapping name="ejb/local/DispatcherLocalBean" /> < ejb-ref-mapping name="ejb/local/ProcessManagerLocalBean" /> < ejb-ref-mapping name="ejb/local/CubeDeliveryLocalBean" /> < ejb-ref-mapping name="ejb/local/MessageLocalBean" /> < ejb-ref-mapping name="ejb/local/ServerLocalBean" /> < resource-ref-mapping name="jms/collaxa/BPELInvokerQueueFactory" location="BPELjms/BPELInvokerQueueFactory" /> < resource-env-ref-mapping name="jms/collaxa/BPELInvokerQueue" location="BPELjms/BPELInvokerQueue" /> < /session-deployment> . and here are the missing entries .. . < ejb-local-ref id="EjbRef_ActivityManager_TaskServiceBean"> < ejb-ref-name>ejb/local/TaskServiceBean< /ejb-ref-name> < ejb-ref-type>Session< /ejb-ref-type> < local-home>oracle.bpel.services.workflow.task.ejb.TaskServiceLocalHome< /local -home> < local>oracle.bpel.services.workflow.task.ejb.TaskServiceLocal< /local> < ejb-link>TaskServiceBean< /ejb-link> < /ejb-local-ref> *** 01/08/07 03:27 pm *** (CHG: FixBy-&gt;10.1.3.3) *** 01/08/07 03:34 pm *** also in the orion-ejb-jar.xml < ejb-ref-mapping name="ejb/local/TaskServiceBean" /> . is missing *** 01/08/07 03:51 pm *** *** 01/18/07 09:22 am *** (CHG: Sta-&gt;16) *** 01/18/07 09:22 am *** *** 01/18/07 10:38 am *** (CHG: Confirmed Flag-&gt;Y) *** 01/18/07 10:38 am *** (CHG: Sta-&gt;11 Asg-&gt;NEW OWNER) *** 01/18/07 10:38 am *** *** 01/18/07 10:39 am *** (CHG: Asg-&gt;NEW OWNER) *** 01/23/07 01:09 pm *** (CHG: FixBy-&gt;10.1.3.4) *** 01/23/07 01:09 pm ***
    .

Maybe you are looking for

  • Pjc for client-server mode

    hi, i have been using pjc for customized text field and text area and have successfully implemented it on windows and sun solaris. we have used pjc for working in non english character set so that the user can directly type in the required character

  • IMac Insomnia?

    I have a May 2011 iMac 27 inch that has been experiencing some sleeping problems.  I was having trouble with my previous keyboard (not related to this problem), so I called AppleCare and they sent out a new keyboard.  Ever since, my iMac will not sle

  • I accidentally purchased an app, iTunes says I have to download it fully, I want to get rid of this permanently, how?

    The 'download' icon appears at the top right, and when I click on it, it comes up with the app asking if I want to complete the download, but I don't, so I try to delete it but iTunes won't remove it permanently, how do I get rid of it?

  • Regarding Import opening balance for GL  using DTW

    Can you give me a  template  example? and I should use which objects to Import  opening balance? Thank you

  • Exception Message 10 / 15 in MD04 ????

    Hi In what cases do we get exception message 10 & 15 in MD04? Say i have a S.O which is to be deliverd on 30.12.2008. My planned delivery time is 90 days, purchasing processing time is 3 days and GR Processing time is also 3 days. In addition i need