cancel
Showing results for 
Search instead for 
Did you mean: 

Create Soap envelop in Receiver Soap Adaptor

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member190293
Active Contributor
0 Kudos

Hi Puneet!

Take a look at this blog:

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

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.

Former Member
0 Kudos

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>
former_member190293
Active Contributor
0 Kudos

Hi Puneet!

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

Regards, Evgeniy.

Former Member
0 Kudos

Hi Evgeniy, I used XPI Instector to trace it.

Regards,

Puneet Aggarwal

former_member190293
Active Contributor
0 Kudos

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.