Skip to Content
0

Create Soap envelop in Receiver Soap Adaptor

Dec 14, 2016 at 08:45 PM

43

avatar image

I need to send call SYNC SOAP service and it require Soap envelop to be attached with Payload. Can anybody help me??

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

puneet aggarwal Dec 15, 2016 at 04:28 AM
0

HI Evgeniy,

In my Case it's not wrapped in Soap Envelope. below is example of my Payload. it's only sending payload to WS without soap envelope but when i am debugging this using XPI inspector, SOAP envelope is first coming and then payload. I try to send below XML and it got successfully passed to WS. Now my question is how to add SOAP envelope along with payload. i read so many blogs and the suggested that i need to create Soap envelope using Java/XSLT mapping and set "Do not use SOAP Envelope" option in adapter's properties. let me know if i clarify you.

I marked the lines with Code which is not coming as part of payload.

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsor="http://www.abc.com/wsdl/WSOrder" xmlns:xs="http://www.abc.com/schema/XMLSchema">
<soapenv:Header/>
<soapenv:Body>
<wsor:post> 

<ns0:SalesOrder xmlns:ns0="http://www.abc.com/wsdl/WSOrder" id="7687896075" Customer="7687896075"><ns1:Order_No xmlns:ns1="http://www.abc.com/schema/XMLSchema">5654792099</ns1:Order_No><ns1:Order_Type xmlns:ns1="http://www.abc.com/schema/XMLSchema">ZQT</ns1:Order_Type><ns1:Sales_Organisation xmlns:ns1="http://www.abc.com/schema/XMLSchema">1000</ns1:Sales_Organisation><ns1:Distribution_Channel xmlns:ns1="http://www.abc.com/schema/XMLSchema">01</ns1:Distribution_Channel><ns1:Product_Division xmlns:ns1="http://www.abc.com/schema/XMLSchema">01</ns1:Product_Division><ns1:Order_Date xmlns:ns1="http://www.abc.com/schema/XMLSchema">2015-11-13</ns1:Order_Date><ns1:Created_By xmlns:ns1="http://www.abc.com/schema/XMLSchema">puneet.aggarwal_ex@abc.com</ns1:Created_By><ns1:Customer_No xmlns:ns1="http://www.abc.com/schema/XMLSchema">11968660</ns1:Customer_No><ns1:Ordered_By xmlns:ns1="http://www.abc.com/schema/XMLSchema">AGGPX002</ns1:Ordered_By><ns1:Customer_PO_No xmlns:ns1="http://www.abc.com/schema/XMLSchema">0002665104:0023892701</ns1:Customer_PO_No><ns1:Customer_PO_Date xmlns:ns1="http://www.abc.com/schema/XMLSchema">2016-12-16</ns1:Customer_PO_Date><ns1:Requested_Delivery_Date xmlns:ns1="http://www.abc.com/schema/XMLSchema">2016-12-16</ns1:Requested_Delivery_Date><ns1:Currency xmlns:ns1="http://www.abc.com/schema/XMLSchema">USD</ns1:Currency><ns1:Payment_Terms xmlns:ns1="http://www.abc.com/schema/XMLSchema">0043</ns1:Payment_Terms><ns1:Company_Code xmlns:ns1="http://www.abc.com/schema/XMLSchema">1000</ns1:Company_Code><ns1:SalesOrderItem xmlns:ns1="http://www.abc.com/schema/XMLSchema"><ns1:Product Product_No="000000000020021130" Name=""></ns1:Product><ns1:Order_Item_No>000020</ns1:Order_Item_No><ns1:Product_No>000000000020021130</ns1:Product_No><ns1:Product_Type>ZFA1</ns1:Product_Type><ns1:Net_Price>17.89</ns1:Net_Price><ns1:Quantity type="SalesUnit" unit="CS" value="1.00">84.000</ns1:Quantity><ns1:Customer_PO_ItemNo>5654792099</ns1:Customer_PO_ItemNo></ns1:SalesOrderItem><ns1:SalesOrderItem xmlns:ns1="http://www.abc.com/schema/XMLSchema"><ns1:Product Product_No="000000000010001048" Name=""></ns1:Product><ns1:Order_Item_No>000010</ns1:Order_Item_No><ns1:Product_Type>ZFA1</ns1:Product_Type><ns1:Net_Price>6.25</ns1:Net_Price><ns1:Quantity type="SalesUnit" unit="CS" value="1.00">100.000</ns1:Quantity><ns1:Customer_PO_ItemNo>5654792099</ns1:Customer_PO_ItemNo></ns1:SalesOrderItem><ns1:SalesOrderItem xmlns:ns1="http://www.abc.com/schema/XMLSchema"><ns1:Product Product_No="000000000010001037" Name=""></ns1:Product><ns1:Order_Item_No>000030</ns1:Order_Item_No><ns1:Product_Type>ZFA1</ns1:Product_Type><ns1:Net_Price>6.25</ns1:Net_Price><ns1:Quantity type="SalesUnit" unit="CS" value="1.00">100.000</ns1:Quantity><ns1:Customer_PO_ItemNo>5654792099</ns1:Customer_PO_ItemNo></ns1:SalesOrderItem></ns0:SalesOrder>

</wsor:post>
</soapenv:Body>
</soapenv:Envelope>
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Puneet!

Why did you decide that your message came to WS without SOAP Envelope? Where do you trace that?

Regards, Evgeniy.

0

Hi Evgeniy, I used XPI Instector to trace it.

Regards,

Puneet Aggarwal

0
Evgeniy Kolmakov Dec 15, 2016 at 03:12 AM
0

Hi Puneet!

Wouldn't you please clarify your requirement? When you use SOAP adapter, your message is wrapped with SOAP Envelope tags by default, unless you set "Do not use SOAP Envelope" option in adapter's properties.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Dec 16, 2016 at 06:01 AM
0

Hi Puneet!

Take a look at this blog:

https://blogs.sap.com/2015/10/26/http-tracing-in-soap-receiver-adapters-with-tracehttp-module-parameter/

It describes the way to see the message trace in receiver SOAP adapter. There you can check if the message comes with SOAP Envelope or without it.

Regards, Evgeniy.

Share
10 |10000 characters needed characters left characters exceeded