9 Replies Latest reply: Feb 25, 2014 2:32 AM by Bibhuti Bhusan RSS

    dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0

    521236
      Hi experts,

      I would like to use the dynamic partner links in BPEL2.0 in SOA Suite 11.1.1.6.0 but I get this error:
      <env:Fault xmlns:ns0="http://docs.oasis-open.org/wsbpel/2.0/process/executable">
         <faultcode>ns0:selectionFailure</faultcode>
         <faultstring>fromValue is nota  sref:service-ref element</faultstring>
      As I know the dynamic partner link (in BPEL2.0) was not supported in 11.1.1.5.0 but it is in 11.1.1.6.0. So it should work but unfortunately it doesn't.
      Could anyone please help me?
      Thanks,
      V.
            <assign name="Assign_set_EndpointReference_InventoryConfirmation">
              <copy>
                <from><literal><sref:service-ref xmlns:sref="http://docs.oasisopen.org/wsbpel/2.0/serviceref"
                                                 reference-scheme="http://www.w3.org/2005/08/addressing">
      <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2004/08/addressing">
      <Address>http://localhost:8088/mockInventoryConfirmationBinding</Address>
      </EndpointReference>
      </sref:service-ref></literal></from>
                <to partnerLink="PL_InventoryConfirmation"/>
              </copy>
        • 1. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
          veejai24
          Are you having everthing as per the document ?

          1. Multiple services that use the same portType in webservice
          2. Created a webservice call in composite.
          3. Check whether you have the reference tag for the webservice in composite.xml file
          4. Do you have the xml frgament in assign.

          Thanks,
          Vijay
          • 2. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
            521236
            Hi Vijay,
            thanks for the answer!
            I was thinking that the dynamic partner link is good tool to change the endpoint URL in runtime. So I didn't change my BPEL process just added an assign operation before using the partner link. Am I mistaken? Do I have to change the WSDL as well? I want to use services which use the same WSDL but their endpoints are different.

            1. -> I think I don't have to define multilple services (I have just one kind of services / one WSDL)
            2. -> I am not sure what you are thinking of but I defined the partner link in composite.xml and linked to the BPEL process
            3. -> I have it
            4. -> I have it, I copied it into my original question.

            Thanks for the help!
            V.
            • 3. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
              Vamseeg-Oracle
              It should work as long as you are using below syntax:

              <assign>
              <copy>
              <from>
              <literal>
              <sref:service-ref>
              <EndpointReference xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">
              <!--Address>http://host:port/orabpel/default/UnitedLoan</Address-->
              <ServiceName xmlns:ns1="http://services.otn.com">ns1:UnitedLoan</ServiceName>
              </EndpointReference>
              </sref:service-ref>
              </literal>
              </from>
              <to partnerLink="LoanService"/>
              </copy>
              </assign>

              Edited by: vamseeg on Aug 2, 2012 3:39 PM
              • 4. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
                veejai24
                Please follow the below link

                http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_async.htm#BCGJBCCJ

                Thanks,
                Vijay
                • 5. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
                  521236
                  Thanks Vamseeg,
                  probably my problem was that I didn't put the ServiceName element in the EndpointReference as the other elements were the same.
                  Great, thanks again!
                  V.
                  • 6. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
                    KeithFosberg
                    That link leads to instructions for an async partner link. Is it appropriate for synchronous partner links?

                    Frankly -- this documentation is really irritating. It makes a lot of assumptions and is far to vague in places. The very first thing it says is "Create a WSDL file that contains multiple services that use the same portType." but it doesn't specify which wsdl (I have several in my project) and seems to be drawn from some example code with no explanation.

                    I have a wsdl for a partner link that looks like this:
                    <?xml version="1.0" encoding="UTF-8"?>
                    <wsdl:definitions
                         name="f17borrowerCheck"
                         targetNamespace="http://xmlns.oracle.com/f17cPriorCaseCheck/f17borrowerCheck/f17borrowerCheck"
                         xmlns:ns1="http://xmlns.oracle.com/A43ICSEF"
                         xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
                         xmlns:client="http://xmlns.oracle.com/f17cPriorCaseCheck/f17borrowerCheck/f17borrowerCheck"
                         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                         xmlns:wsa="http://schemas.xmlsoap.org/ws/2003/03/addressing">
                        <plnk:partnerLinkType name="f17borrowerCheck">
                            <plnk:role name="f17borrowerCheckProvider" portType="client:f17borrowerCheck"/>
                        </plnk:partnerLinkType>
                        <wsdl:types>
                            <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype"
                                 xmlns:client="http://xmlns.oracle.com/f17cPriorCaseCheck/f17borrowerCheck/f17borrowerCheck"
                                 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
                                <import namespace="http://xmlns.oracle.com/f17cPriorCaseCheck/f17borrowerCheck/f17borrowerCheck"
                                     schemaLocation="xsd/f17borrowerCheck.xsd"/>
                            </schema>
                            <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                                <xsd:import namespace="http://xmlns.oracle.com/A43ICSEF" schemaLocation="xsd/a43cisef.xsd"/>
                            </xsd:schema>
                        </wsdl:types>
                        <wsdl:message name="f17borrowerCheckRequestMessage">
                            <wsdl:part name="payload" element="client:process"/>
                        </wsdl:message>
                        <wsdl:message name="f17borrowerCheckResponseMessage">
                            <wsdl:part name="payload" element="client:processResponse"/>
                        </wsdl:message>
                        <wsdl:portType name="f17borrowerCheck">
                            <wsdl:operation name="process">
                                <wsdl:input message="client:f17borrowerCheckRequestMessage"/>
                                <wsdl:output message="client:f17borrowerCheckResponseMessage"/>
                            </wsdl:operation>
                        </wsdl:portType>
                    </wsdl:definitions>
                    Edited by: Keith Fosberg on Oct 29, 2012 7:31 AM
                    • 7. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
                      KeithFosberg
                      The answer is "no, this is inapplicable to synchronous links"
                      • 8. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
                        918815

                        Hi All,

                         

                        up to now 'am able to get the values as below except "PortName"

                         

                        <partnerRole>

                                <role name="ProcessProvider">

                                    <ServiceName>{http://xmlns.oracle.com/Service/Process}process_client_ep</ServiceName>

                                    <PortName/>

                                    <PortType>{http://xmlns.oracle.com/Service/Process}Process</PortType>

                                    <Address>http://xxxx/soa-infra/services/default/Service_1/process_client_ep</Address>

                                </role>

                            </partnerRole>

                         

                        please help me out to fetch value of a PortName.

                         

                        Thanks

                        Shankar

                        • 9. Re: dynamic partner link in BPEL2.0 in SOA Suite 11.1.1.6.0
                          Bibhuti Bhusan

                          Hi,

                           

                          I am using Oracle SOA Suite 11.1.1.7. While implementing the dynamic partner link using BPEL 2.0 getting the following exception.

                           

                          <bpelFault><faultType>0</faultType><selectionFailure xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"><part name="summary"><summary>fromValue is not a sref:service-ref element</summary></part></selectionFailure></bpelFault>

                           

                          I have followed the above thread but could not able to resolve the issue

                           

                          Your help would be appreciated. Thanks in advance.

                           

                          Regards, Bibhu