cancel
Showing results for 
Search instead for 
Did you mean: 

Error consuming a web service

Former Member
0 Kudos

I invoke a SAP web service from oracle with SOAP message

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

</soap:Header>

<soapenv:Body>

<paem:ReadEmployeePersonalDataRequest xmlns:paem="http://nga/fer/paem">

<HeaderMsgReq>

<functionalId>Str 1</functionalId>

<messageId>Str 2</messageId>

<timeStamp>2005-12-31T23:59:59Z</timeStamp>

<consumerApp>Str 3</consumerApp>

<consumerUsr>Str 4</consumerUsr>

</HeaderMsgReq>

<BodyMsgReq>

<Employee>

<employeeCode>1001</employeeCode>

</Employee>

</BodyMsgReq>

</paem:ReadEmployeePersonalDataRequest>

</soapenv:Body>

</soapenv:Envelope>

SAP response with this XML

<soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">

<soap-env:Header/>

<soap-env:Body>

<soap-env:Fault>

<faultcode>soap-env:Server</faultcode>

<faultstring xml:lang="en">WSRM:NH/WSRM: Consumer sent message for operation of type "asynchron reliable" without WS-RM sequence header/Language of error reason =E/Client =100/Location =Receiver/Class =CL_SOAP_WSRM_PROTOCOL/Method =WSRM_CHECK_SID_MNR_BEFORE_PRE/Use =WSRM: Consumer sent message for operation of type "asynchron reliable" without WS-RM sequence header/Sequence ID =/Persistent ID =3205FB4D72399977E10000000A340566/Message number =0 /Error key =5 /Error key name =wsrm/Namespace =http://schemas.xmlsoap.org/ws/20//WSRM:NH/WSRM: Consumer sent message for operation of type "asynchron reliable" without WS-RM sequence header/Language of error reason =E/Client =100/Location =Receiver/Class =CL_SOAP_WSRM_PROTOCOL/Method =WSRM_CHECK_SID_MNR_BEFORE_PRE/Use =WSRM: Consumer sent message for operation of type "asynchron reliable" without WS-RM sequence header/Sequence ID =/Persistent ID =3205FB4D72399977E10000000A340566/Message number =0 /Error key =5 /Error key name =wsrm/Namespace =http://schemas.xmlsoap.org/ws/2005/02/rm/Other information =/Other information =/Node name =http://schemas.xmlsoap.org/ws/2005/02/rm/Role =http://schemas.xmlsoap.org/ws/2005/02/rm</faultstring>

<faultactor>http://schemas.xmlsoap.org/ws/2005/02/rm</faultactor>

<detail/>

</soap-env:Fault>

</soap-env:Body>

</soap-env:Envelope>

If we change the invocation header section and remove the return carriage SAP responses correctly

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

</soap:Header>

<soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"></soap:Header>

I don't find some notes of patches for SAP

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

hemant_chahal
Contributor
0 Kudos

Hi

Are you using the UTL_HTTP package to achieve this?

Do you get the same error while using SOAP_UI tool?

Thanks,

Hemant

Former Member
0 Kudos

I test the web service with SOAP ui tool getting the results in the message

0 Kudos

Hello,

what is the version of SAP_BASIS ? Your example is so called Plain SOAP call. And if you have not very young patch, SAP basis supports only WS-RM for asynchronnous calls, which is something different.

More can be found on wikis, e.g. http://wiki.sdn.sap.com/wiki/display/ABAPConn/Plain+SOAP.

Rgds

Tomas