Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

namespaces and mappings error

Scenario: ABAP Proxy => XI => WebService

Communication: asynchronous.

When I'm sending request from ABAP Proxy to WebService through XI, request is mapped and send correctly. The problem is answer.

I'm receiving following XML from WebService:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Request Message Mapping --> 
<Result xmlns:A='http://schemas.xmlsoap.org/soap/encoding/' 
xmlns:s='http://www.w3.org/2001/XMLSchema-instance' 
xmlns:E='http://schemas.xmlsoap.org/soap/envelope/' 
xmlns:y='http://www.w3.org/2001/XMLSchema'>
<Function s:type='y:string'>Sd2Ids_SzfExport</Function>
<r>
<SZF>
<DATRKAKT>there a lot of subelements</DATRKAKT>
</SZF>
</r>
</Result>

but SAP is expecting for message with namespace ns0! (tested in IR)

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!-- Request Message Mapping -->
<ns0:Result xmlns:A='http://schemas.xmlsoap.org/soap/encoding/' xmlns:s='http://www.w3.org/2001/XMLSchema-instance' 
xmlns:E='http://schemas.xmlsoap.org/soap/envelope/' 
xmlns:y='http://www.w3.org/2001/XMLSchema'>
<Function s:type='y:string'>Sd2Ids_SzfExport</Function>
<r>
<SZF>
<DATRKAKT>there a lot of subelements</DATRKAKT>
</SZF>
</r>
</ns0:Result>

How can I add ns0 into response form WebService or how should I modify my definitions in IR to ommit this namespace ns0?

Edited by: Tomasz Suchanek on Oct 7, 2008 11:28 AM

Not what you were looking for? View more on this topic or Ask a question