cancel
Showing results for 
Search instead for 
Did you mean: 

Get sales Order price SOAP to Proxy Sync Requirement

Former Member
0 Kudos

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



Accepted Solutions (0)

Answers (1)

Answers (1)

nitindeshpande
Active Contributor
0 Kudos

Hello Gopinath,

For this you need to create a SOAP to Proxy sync scenario. Create both Outbound and Inbound Interface as synchronous. Outbound interface must have the request and response structure for SOAP. using this request and response structure you need to create a Function module in ECC system.

In function module you need to write the code to get the data for your sales order and populate the response and if there is no data then the error message can be populated in one of the fields. Use this response structure and map it accordingly to your web-service response structure.

Regards,

Nitin