cancel
Showing results for 
Search instead for 
Did you mean: 

missing

Former Member
0 Kudos

Hello,

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:

com.sap.aii.af.rfc.RfcAdapterException: 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 system:com.sap.aii.af.rfc.core.client.RfcClientException: functiontemplate from repository was.

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

Frank

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Frank,

You should be using the IDoc adapter not the RFC adapter to post your IDoc.

Regards,

Simon