Skip to Content
0
Jan 31, 2007 at 10:41 AM

How to have Header and body in reciever SOAP adapter channel

24 Views

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"?>

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>

http://onefile.cyzone.co.uk/webservices/proactive">

<PortalID>int</PortalID>

<Username>string</Username>

<Password>string</Password>

</SecurityHeader>

</soap:Header>

<soap:Body>

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">

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