1 Reply Latest reply: Dec 30, 2013 5:38 AM by Nilesh Kumar Singh RSS

Have a requirement to consume a  SOAP webservice (wsdl file) using apex

Nilesh Kumar Singh Newbie
Currently Being Moderated

Hi,

I am using Application Express 4.2.2.00.11.
My requirement is to consume a soap web service (wsdl file).

I am pasting the wsdl fille.

]

<wsdl:message name="FulfillOrderResponseRequestMessage">

<wsdl:part name="payload" element="ffebm:ProcessFulfillmentOrderNotificationEBM"/>

</wsdl:message>

<wsdl:message name="FulfillOrderResponseResponseMessage">

<wsdl:part name="payload" element="ffebm:ProcessFulfillmentOrderNotificationResponseEBM"/>

</wsdl:message>

<wsdl:portType name="FulfillOrderResponse">

<wsdl:operation name="process">

<wsdl:input message="client:FulfillOrderResponseRequestMessage"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:portType name="FulfillOrderResponseCallback">

<wsdl:operation name="processResponse">

<wsdl:input message="client:FulfillOrderResponseResponseMessage"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="FulfillOrderResponseBinding" type="client:FulfillOrderResponse">

<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>

<wsp:PolicyReference URI="#wss11_saml_or_username_token_with_message_protection_service_policy" wsdl:required="false"/>

<wsp:PolicyReference URI="#wsaddr_policy" wsdl:required="false"/><wsdl:operation name="process">

 

 

and the xml file looks like this

 

<FulfillOrderResponseRequestMessage>

<part  name="payload">

<coreforderrocessFulfillmentOrderNotificationEBM>

<corecom:EBMHeader>

<corecom:EBMID>2d383135353332303931343330383630</corecom:EBMID>

<corecom:EBMName>{_http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/FulfillmentOrder/V1}ProcessFulfillmentOrderNotificationEBM</corecom:EBMName>

<corecom:EBOName>{_http://xmlns.oracle.com/EnterpriseObjects/Core/EBO/FulfillmentOrder/V1}ProcessFulfillmentOrderNotificationEBO</corecom:EBOName>

<corecom:CreationDateTime>2013-12-27T13:29:04.530+05:30</corecom:CreationDateTime>

<corecom:VerbCode>Update</corecom:VerbCode>

<corecom:MessageProcessingInstruction>

<corecom:EnvironmentCode>PRODUCTION</corecom:EnvironmentCode>

</corecom:MessageProcessingInstruction>

<corecomender>

<corecom:ID  schemeAgencyID="GPR">EBSVIS</corecom:ID>

<corecomenderMessageID/>

<corecom:CallingServiceName>{_http://xmlns.oracle.com/ApplicationBusinessFlow/OrderToCash/ProcessFulfillmentOrderNotificationEbizToFusionDOOABF/V1}ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</corecom:CallingServiceName>

<corecom:WSAddress>

<ns1:ReplyTo>

<ns1:Address/>

<ns1ortType>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1ortType>

<ns1erviceName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1erviceName>

</ns1:ReplyTo>

<ns1:FaultTo>

<ns1:Address/>

<ns1ortType>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1ortType>

<ns1erviceName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</ns1erviceName>

</ns1:FaultTo>

</corecom:WSAddress>

</corecomender>

<corecom:Target>

<corecom:ID  schemeAgencyID="GPR">GPR</corecom:ID>

</corecom:Target>

<corecom:BusinessScope/>

<corecom:EBMTracking>

<corecomequenceNumber>1</corecomequenceNumber>

<corecom:ExecutionUnitName>ProcessFulfillmentOrderNotificationEbizToFusionDOOABF</corecom:ExecutionUnitName>

<corecom:ImplementationCode>BPEL</corecom:ImplementationCode>

<corecom:ActivityDateTime>2013-12-27T13:29:04.531+05:30</corecom:ActivityDateTime>

</corecom:EBMTracking>

<xacml-context:Request/>

</corecom:EBMHeader>

<coreforderataArea>

<corecomrocess  operation="ProcessFulfillmentOrderNotification"/>

<coreforderrocessFulfillmentOrderNotification>

<corecom:Identification>

<corecom:BusinessComponentID/>

<corecom:ID  schemeID="ORDER_NUMBER"  schemeAgencyID="EBSVIS">66498</corecom:ID>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeID="HEADER_ID"  schemeAgencyID="EBSVIS">228338</corecom:ID>

</corecom:ApplicationObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeAgencyID="GPR">300000030196926</corecom:ID>

</corecom:AlternateObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeID="ExternalInteractionKey">228338</corecom:ID>

</corecom:AlternateObjectKey>

</corecom:Identification>

<coreforder:CurrencyCode  listAgencyID="EBSVIS">USD</coreforder:CurrencyCode>

<coreforder:TypeCode  listAgencyID="GPR">ORDER</coreforder:TypeCode>

<corecom:BusinessUnitReference>

<corecom:BusinessUnitIdentification>

<corecom:BusinessComponentID/>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeID="ORG_ID"  schemeAgencyID="EBSVIS">204</corecom:ID>

</corecom:ApplicationObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeAgencyID="GPR">300000028235904</corecom:ID>

</corecom:AlternateObjectKey>

</corecom:BusinessUnitIdentification>

</corecom:BusinessUnitReference>

<coreforder:FulfillmentOrderLine  actionCode="UPDATE">

<corecom:Identification>

<corecom:BusinessComponentID/>

<corecom:ID  schemeID="LINE_NUMBER"  schemeAgencyID="EBSVIS">1</corecom:ID>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeID="LINE_ID"  schemeAgencyID="EBSVIS">419300</corecom:ID>

</corecom:ApplicationObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeAgencyID="GPR">300000030196928</corecom:ID>

</corecom:AlternateObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeID="ExternalInteractionKey">419300</corecom:ID>

</corecom:AlternateObjectKey>

</corecom:Identification>

<coreforderrderQuantity>2</coreforderrderQuantity>

<coreforder:CurrencyCode  listAgencyID="EBSVIS">USD</coreforder:CurrencyCode>

<corecomtatus>

<corecom:Code  listAgencyID="GPR">AWAIT_SHIP</corecom:Code>

</corecomtatus>

<corecom:ItemReference>

<corecom:ItemIdentification>

<corecom:BusinessComponentID/>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeAgencyID="EBSVIS">225</corecom:ID>

</corecom:ApplicationObjectKey>

</corecom:ItemIdentification>

<corecom:TypeCode  listAgencyID="GPR">4</corecom:TypeCode>

</corecom:ItemReference>

<coreforder:FulfillmentOrderSchedule  actionCode="UPDATE">

<corecom:Identification>

<corecom:BusinessComponentID/>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeID="LINE_ID"  schemeAgencyID="EBSVIS">419300</corecom:ID>

</corecom:ApplicationObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeID="FulfillLineId"  schemeAgencyID="GPR">300000030196928</corecom:ID>

</corecom:AlternateObjectKey>

<corecom:AlternateObjectKey>

<corecom:ID  schemeID="ExternalInteractionKey">419300</corecom:ID>

</corecom:AlternateObjectKey>

</corecom:Identification>

<coreforder:FreightTermCode  listAgencyID="EBSVIS">Paid</coreforder:FreightTermCode>

<coreforderrderQuantity>2</coreforderrderQuantity>

<coreforderromisedShipDateTime>2013-12-27T19:30:00.000+00:00</coreforderromisedShipDateTime>

<corefordercheduledShipDateTime>2013-12-27T19:30:00.000+00:00</corefordercheduledShipDateTime>

<corecomtatus>

<corecom:Code  listAgencyID="GPR">AWAIT_SHIP</corecom:Code>

</corecomtatus>

<corecom:UnitListPrice>

<corecom:Amount>100</corecom:Amount>

</corecom:UnitListPrice>

<corecom:UnitSalePrice>

<corecom:Amount>100</corecom:Amount>

</corecom:UnitSalePrice>

<corecom:CarrierPartyReference>

<corecomartyIdentification>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeAgencyID="EBSVIS"/>

</corecom:ApplicationObjectKey>

</corecomartyIdentification>

</corecom:CarrierPartyReference>

<coreforder:FulfillmentOrderScheduleTax>

<corecom:Tax>

<corecom:Amount>0</corecom:Amount>

</corecom:Tax>

</coreforder:FulfillmentOrderScheduleTax>

<coreforder:FulfillmentOrderItem>

<corecom:ItemReference>

<corecom:ItemIdentification>

<corecom:BusinessComponentID/>

<corecom:ApplicationObjectKey>

<corecom:ID  schemeAgencyID="EBSVIS">225</corecom:ID>

</corecom:ApplicationObjectKey>

</corecom:ItemIdentification>

<corecom:TypeCode  listAgencyID="GPR">4</corecom:TypeCode>

</corecom:ItemReference>

</coreforder:FulfillmentOrderItem>

</coreforder:FulfillmentOrderSchedule>

</coreforder:FulfillmentOrderLine>

</coreforderrocessFulfillmentOrderNotification>

</coreforderataArea>

</coreforderrocessFulfillmentOrderNotificationEBM>

</part>

</FulfillOrderResponseRequestMessage>

 

I need to pass few of the above parameters from database using apex.

Any help will be very thankfull.

Please if anything more is required to be provided from my side

 

Thanks

Nilesh

 

 

 

 

 

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points