Note the assign activity in

6-40 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite assign name=Assign_1 copy fromtest-type-variablefrom toVar1to copy assign reply name=replyOutput partnerLink=test_client portType=client:Test operation=process toParts toPart part=payload fromVariable=Var1 toParts reply sequence Example 6–75 WSDL File that Defines the Operation wsdl:types schema attributeFormDefault=unqualified elementFormDefault=qualified targetNamespace=http:xmlns.oracle.comRT_Validate_P_02_jwsch10_ 3toParts_1Test xmlns=http:www.w3.org2001XMLSchema element name=process complexType sequence element name=input type=string sequence complexType element element name=processResponse complexType sequence element name=result type=string sequence complexType element schema wsdl:types -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ MESSAGE TYPE DEFINITION - Definition of the message types used as part of the port type defintions ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- wsdl:message name=TestRequestMessage wsdl:part name=payload element=client:process wsdl:message wsdl:message name=TestResponseMessage wsdl:part name=payload type=xsd:string wsdl:message -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PORT TYPE DEFINITION - A port type groups a set of operations into a logical service unit. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-- -- portType implemented by the Test BPEL process -- wsdl:portType name=Test wsdl:operation name=process wsdl:input message=client:TestRequestMessage wsdl:output message=client:TestResponseMessage wsdl:operation wsdl:portType -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PARTNER LINK TYPE DEFINITION Manipulating XML Data in a BPEL Process 6-41 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-- plnk:partnerLinkType name=Test plnk:role name=TestProvider plnk:portType name=client:Test plnk:role plnk:partnerLinkType wsdl:definitions Example 6–76 shows a .bpel file with toPart elements defined in invoke and reply activities. This maps to the operation defined in the WSDL file shown in Example 6–77 . The copy operation in the invoke activity copies data from the variable indicated in the fromVariable attribute into the part of the anonymous, temporary WSDL variable, request. The copy operation in the reply activity copies data from the variable indicated in the fromVariable attribute into the part of the anonymous, temporary WSDL variable, output. Example 6–76 BPEL File with ToParts Elements sequence -- receive input from requestor -- receive name=receiveInput partnerLink=client portType=tns:Test operation=process variable=input createInstance=yes assign copy frominput.payloadfrom torequestto copy assign invoke name=invokeDummyService partnerLink=DummyService portType=tns:DummyPortType operation=process outputVariable=response toParts toPart part=payload fromVariable=request toParts invoke assign copy fromresponsefrom tooutputto copy assign -- respond output to requestor -- reply name=replyOutput partnerLink=client portType=tns:Test operation=process toParts toPart part=payload fromVariable=output toParts reply sequence Example 6–77 WSDL File that Defines the Operation ?xml version=1.0? definitions name=ch10.3toParts targetNamespace=http:samples.otn.combpel2.0ch10.3 xmlns:tns=http:samples.otn.combpel2.0ch10.3 xmlns:plnk=http:docs.oasis-open.orgwsbpel2.0plnktype xmlns=http:schemas.xmlsoap.orgwsdl