Skip to Content
Former Member
Nov 10, 2004 at 09:20 AM

java mapping & namespace issue



I am doing a java mapping from a flat file to an IDOC. After the document is mapped succesfully I call an RFC via the Adapter. When monitoring the adapter I get the error: failed to read funtionname from XML document: missing namespace declara

so I added the namespace reference to my java mapping to look like this :

<ns0:IDOC_INBOUND_ASYNCHRONOUS xmlns:ns0="urn:sap-com:document:sap:rfc:functions">

But when I test my java mapping in the builder (interface mapping) the namespace xmlns="urn:sap-com:document:sap:rfc:functions" is added to my above ns0:IDOC_INBOUND_ASYNCHRONOUS tag. The consequence is that while mapping in the integration engine the "ns0" prefix is then removed and I get the error:

Delivery of the message to the application using connection AFW failed, due to: error while processing message to remote functiontemplate from repository was.

Any help or sample code resolving the namespace issue is welcome.