Business Service Issue for OSB 10.3.1 when call web service of SAP ECC 710
702969Oct 19 2010 — edited Oct 20 2010Hello,
1 . I was doing unit test for a business service which called a web service from SAP ECC 710 (This service is published directly from a RFC function module via SOA Manager);
2 .The problem is when i use the OSB test console , which generate request message below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
*<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">*
*</soap:Header>*
<soapenv:Body>
<urn:Zmmjf503 xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
<ContractInfo>string</ContractInfo>
</urn:Zmmjf503>
</soapenv:Body>
</soapenv:Envelope>
the response message is :
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header>
<n0:MessageID xmlns:n0="http://schemas.xmlsoap.org/ws/2004/08/addressing">
uuid:4cbe5b84-474c-9abe-e100-00000ad00164
</n0:MessageID>
<n1:Action soap-env:mustUnderstand="1" xmlns:n1="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope"/>
</soap-env:Header>
<soap-env:Body/>
</soap-env:Envelope>
Above response indicates that the BS called the SAP Web server successfully , but seems the service didn't get the request message.
3. The Web service can be called successfully via SoapUI . and i have checked the request message of soapUI; and it can work if i simply modify the request:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
*<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"></soap:Header>*
<soapenv:Body>
<urn:Zmmjf503 xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
<ContractInfo>string</ContractInfo>
</urn:Zmmjf503>
</soapenv:Body>
</soapenv:Envelope>
and i got the correct response :
<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
<soap-env:Header/>
<soap-env:Body>
<n0:Zmmjf503Response xmlns:n0="urn:sap-com:document:sap:soap:functions:mc-style">
<Recmsg><![CDATA[<?xml version="1.0" encoding="utf-8"?><DocumentResponse><STATE>0</STATE><HTBH></HTBH><MESSAGE></MESSAGE></DocumentResponse>]]></Recmsg>
</n0:Zmmjf503Response>
</soap-env:Body>
</soap-env:Envelope>
4 It bother me , as the only difference between the above two request messages is the Header(the first one contains a "carriage returns"):
------------------------------------------------------------------------------------------------------------------------------
*<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">*
*</soap:Header>*
-------------------------------------------------------------------------------------------------------------------------------
VS
--------------------------------------------------------------------------------------------------------------------------------------
*<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"></soap:Header>*
----------------------------------------------------------------------------------------------------------------------------------------
5 i thought that the soap engine should ignore the "carriage returns", seems it's a problem of SAP ECC710.
DID anyone encouter this problem?? Thanks
Regards
Wen