cancel
Showing results for 
Search instead for 
Did you mean: 

How to have Header and body in reciever SOAP adapter channel

mona_mehta
Participant
0 Kudos

Hi Experts,

Please help me with the following scenario.

I am designing a webservice scenario and have the WSDL available .

The webservice expect the SOAP message as follows

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

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header>

<SecurityHeader xmlns="http://onefile.cyzone.co.uk/webservices/proactive">

<PortalID>int</PortalID>

<Username>string</Username>

<Password>string</Password>

</SecurityHeader>

</soap:Header>

<soap:Body>

<OrganisationCreate xmlns="http://onefile.cyzone.co.uk/webservices/proactive">

<Organisation>

<Title>string</Title>

<Standards>

<Standard>

<StandardID>int</StandardID>

</Standard>

<Standard>

<StandardID>int</StandardID>

</Standard>

</Standards>

</Organisation>

</OrganisationCreate>

</soap:Body>

</soap:Envelope>

I imported the WSDL as external definition and can see all messages in XI

In the corresponding operation( from WSDL) as given below, it indicates SecurityHeader to be used as SOAP header. However, the WSDL has OrganisationCreate and OrganisationSecurityHeader as separete messages. How do we combine these two in Message Interface.

- <wsdl:operation name="OrganisationCreate">

<soap:operation soapAction="http://onefile.cyzone.co.uk/webservices/proactive/OrganisationCreate" style="document" />

- <wsdl:input>

<soap:body use="literal" />

<soap:header message="tns:OrganisationCreateSecurityHeader" part="SecurityHeader" use="literal" />

</wsdl:input>

- <wsdl:output>

<soap:body use="literal" />

</wsdl:output>

</wsdl:operation>

Please advice.

Thanks in advance,

Mona

Accepted Solutions (0)

Answers (3)

Answers (3)

mona_mehta
Participant
0 Kudos

Hello,

Thanks for you replies, but can you elaborate how can i include whole message here.

Mona

Former Member
0 Kudos

Hi,

Yes you are not supposed to create SOAP envelop, you have to cerate whole.

See below links Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii

Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a...

/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client

/people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12

Regards

Chilla..

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can use "not use SOAP envelope" option

and you can create a whole SOAP message in your mapping

Regards,

michal