cancel
Showing results for 
Search instead for 
Did you mean: 

data in the header of a SOAP Request

Former Member
0 Kudos

hello

I have a WSDL that include data in the header. (see below). when I try to map it, I recieve only what is in the body under VendorPayment_MT.

is there a way to include also the header so I will be able to map it all?

do I need to change the WSDL or how it is created?

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

<SOAP-ENV:Header>

<m:AuthHeader xmlns:m="http://projectName/VendorPaymentsService">

<TargetService>String</TargetService>

<OriginatorName>String</OriginatorName>

<OriginatorIdentity>String</OriginatorIdentity>

<OriginatorEntity>String</OriginatorEntity>

<AuthMechanism>String</AuthMechanism>

<Token>String</Token>

</m:AuthHeader>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<m:VendorPayment_MT xmlns:m="http://projectName/VendorPaymentsService">

<Safe>

<SafeName>String</SafeName>

<UserName>String</UserName>

<Password>String</Password>

<SafePath>String</SafePath>

<FileName>String</FileName>

</Safe>

<Data>

<Item>

<ComponyNum>String</ComponyNum>

<LawSuiteNum>String</LawSuiteNum>

<PaymentNum>String</PaymentNum>

<SystemType>String</SystemType>

</Item>

</Data>

</m:VendorPayment_MT>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can achieve it by using XSLT mapping.

You can fetch values from either header part or body part.

Some XSLT resources:

Regards

Liang

Answers (0)