Hi All,
I have requirement SOAP to Proxy synchronous interface. PFB Requirement.
SOAP Request:Username, Password and Accesscode and Sales order number(this is the SOAP Request) based on sales order number we should get below in response.
In Response: Gross value, Net value and Tax amount should Come
PFB Example XMLs:
SOAP Request:
<SOAP-ENV:Header>
<Authentication xmlns="urn:schemas-royalmail-com/webservice/epro" >
<AccessCode>12</AccessCode>
<Username>Customer</Username>
<Password>E</Password>
<Version>1</Version>
</Authentication>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<GetSOPrice xmlns="urn:schemas-royalmail-com/webservice/epro" />
<SalesOrder>5123467712</SalesOrder>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
The SOAP response of this Request will be:
<SOAP-ENV:Body>
<GetSOPriceResponse xmlns="urn:schemas-royalmail-com/webservice/epro" >
<GetSOPriceResult Version="1" >
<SOPrice>
<GrossValue="11.21 NetValue="£9.92" TaxAmount="£1.29" />
</SOPrice>
</GetSOPriceResult>
</GetSOPriceResponse>
</SOAP-ENV:Body>
If the sales order is not Valid should get below :
<SOAP-ENV:Body>
<GetSOPriceResponse xmlns="urn:schemas-royalmail-com/webservice/epro" >
<Errors>
<Error>
<Message>xxxxxxxxxx is not a valid sales order number</Message>
</Error>
</Errors>
</GetSOPriceResponse>
</SOAP-ENV:Body>
Please help me to achieve this requirement.
Thanks,
Gopi