cancel
Showing results for 
Search instead for 
Did you mean: 

Generating SOAP Envelope when DO NOT USE ENVELOPE option is marked

former_member737583
Participant
0 Kudos
1,711

My scenario: SPROXY => XI => 3rdParty WebService. Communication is synchronous. I've a problem with soap envelope. It is required by webservice, but when I use standard soap envelope generated by SAP I've a problem with receiving response from webservice.

So I want to create my own envelope. For this reason I've used DO NOT USE SOAP ENVELOPE option. Now the challenge comes. How can I create my own soap envelope?

Do you have any working example? Soap envelope should be added to message send from XI to 3rdParty WebService.

Helping answers => a lot of points

View Entire Topic
stefan_grube
Active Contributor
0 Kudos

You can do this with xslt, which you put after your mapping:

<?xml version="1.0" encoding="UTF-8" ?> 
  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
 <xsl:template match="/">
 <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
  <SOAP:Header /> 
 <SOAP:Body>
  <xsl:copy-of select="*" /> 
  </SOAP:Body>
  </SOAP:Envelope>
  </xsl:template>
  </xsl:stylesheet>

Does the response of the webservice not have an envelope?

Regards

Stefan