SOAP request and http request , configuration. from postman, also. SAP BTP training.
The differences between the two SOAP requests can be broken down into the specific elements and namespaces involved in the SOAP message structure.
Original SOAP Request:
xml<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:Add>
<tem:intA>3</tem:intA>
<tem:intB>5</tem:intB>
</tem:Add>
</soapenv:Body>
</soapenv:Envelope>
Modified SOAP Request:
xml<p1:Add xmlns:p1="http://tempuri.org/">
<p1:intA>4</p1:intA>
<p1:intB>2</p1:intB>
</p1:Add>
Differences:
Envelope and Body Tags:
- Original Request: Contains the
EnvelopeandBodytags from the SOAP 1.1 protocol. - Modified Request: Directly starts with the
Addoperation without theEnvelopeandBodytags.
- Original Request: Contains the
Namespace Prefixes:
- Original Request: Uses
temas the namespace prefix for elements specific to the web service. - Modified Request: Uses
p1as the namespace prefix.
- Original Request: Uses
Namespaces Declaration:
- Original Request: The namespaces
soapenvandtemare declared in theEnvelopetag. - Modified Request: The namespace
p1is declared directly within theAddelement.
- Original Request: The namespaces
Values of
intAandintB:- Original Request: The values of
intAandintBare3and5, respectively. - Modified Request: The values of
intAandintBare changed to4and2, respectively.
- Original Request: The values of
SOAP Protocol Differences:
The original request follows the SOAP 1.1 structure, which includes an Envelope containing optional Header and required Body elements. The modified request, as presented, is not wrapped in the typical SOAP envelope and body, and is rather a direct payload of the operation. This can be appropriate if the service endpoint expects a direct XML payload instead of a full SOAP envelope.
Configuration Details in SAP CPI:
- Address:
http://www.dneonline.com/calculator.asmx - Proxy Type:
Internet - WSDL URL: Uploaded
- Service:
p1:Calculator - Endpoint:
p1:CalculatorSoap - Operation Name:
p1:Add - Sender: HTTP with context
httpadd
This configuration indicates that SAP CPI is set up to call the Add operation on the CalculatorSoap endpoint. The p1 prefix is mapped to the namespace http://tempuri.org/, consistent with the web service's WSDL definitions.
Summary:
- The main difference lies in the SOAP message structure: full SOAP envelope vs. direct operation payload.
- Both requests are valid but serve different contexts of SOAP messaging based on the endpoint's expected input.
- The configuration in SAP CPI is designed to ensure the correct namespace and endpoint operation are called, aligning the payload accordingly.