cancel
Showing results for 
Search instead for 
Did you mean: 

Error in RFC channel -failed to read funtionname from XML document: missing namespace declaration(1)

Former Member
0 Kudos

Hello All,

I have a scenario JDBC->PI->RFC

where i am uploading BOM data to SAP.

I am getting error in receiver RC channel

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: could not get functionname from XML requst: com.sap.aii.adapter.rfc.RfcAdapterException: failed to read funtionname from XML document: missing namespace declaration(1)

RFC    ZMM_BOM_UPLOAD  is a customized RFC which my abap guy has created for me.

Payload in SAP looks as below:


<?xml version="1.0" encoding="UTF-8" ?>

- <ns1:ZMM_BOM_UPLOAD xmlns:ns1="urn:sap-com:document:sap:rfc:functions">

<BOM_UPLOAD>

<item>

 

<MATERIAL>1103006</MATERIAL>

 

<PLANT>1107</PLANT>

 

<BASE_QUANTITY>100</BASE_QUANTITY>

 

<COMPONENT>1103615</COMPONENT>

<QUANTITY>1</QUANTITY>

 

<LOT_FROM>0</LOT_FROM>

 

<LOT_TO>9999</LOT_TO>

 

<VALID_FROM>13.12.2012</VALID_FROM>

</item>

</BOM_UPLOAD>

<RETURN />

</ns1:ZMM_BOM_UPLOAD>

Please suggest how to remove this error

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sharma,

Check the below link.

http://scn.sap.com/thread/1489100

Thanks,

Satish

Former Member
0 Kudos

Hello Satish,

I have already seen this link. That is not of any use for me and there is no solution in this thread.

Please suggest

Former Member
0 Kudos

Hi Sharma,

How you imported the BAPI into PI using imported objects only right.  Can you check the BAPI namespace what it is showing in PI.

Thanks,

Satish.

Former Member
0 Kudos

Satish

ya i imported using imported objects.

its ns is    urn:sap-com:document:sap:rfc:functions

Former Member
0 Kudos

Dear All,

I have identified the error.

I am using encrypt and decrypt adapter module as suggested by william li

Developing Adapter User-Module to Encrypt XML Elements in Process Integration 7.1

Once i use this module in my adapter then adapter throws error > if i remove this adapter module then it works fine.

Please suggest me how i can remove this error while using this adapter module also.

Regards

Sandeep

former_member200386
Active Participant
0 Kudos

Dear Sharma,

I am also facing same issue. MY scenario is SOAP to RFC(SYNCH)

I can see my payload in encrypted In SXMB_MONI. When i use Adapter module.  But my interface is not working fine when i use adapter module.

Regards,

Pavan

Former Member
0 Kudos

Dear Pawan,

I have run XPI inspector and checked step by step

This error is coming since decryption is not happening.

During decryption I am getting below error :

javax.crypto.illegalBlock.SizeExcepion: Input data length not a multiple of blocksize

at iaik.security.cipher.z.a(Unknown Source)

at.javax.crypto.cipher.doFinal(DashoA13")

I have used standard code which is given in Mr william Li's Guide.

Experts please suggest me how to solve this issue.

Regards

Sandeep Sharma

former_member200386
Active Participant
0 Kudos

Hi Sharma,

I created 1 simple file 2 file scenario using adapter module encryption & Decryption . The scenario is working fine. But when it comes to actual scenario (SOAP to RFC (Sync) the  Interface is not working fine. I am not able see any error in communication channels.  i also used the standard code which was given by William. i already posted a thread http://scn.sap.com/thread/3284420 . If problem is solved please help me to resolve my issue.

Thanks & regards

Pavan

Former Member
0 Kudos

I raised OSS to SAP and my problem got resolved.

There were few changes to code

Sooner i will update a blog on this so that other person may get help from that.

Thanks a Ton to Mr wiliiam li

Thanks all

Regards

Sandeep

JaySchwendemann
Active Contributor
0 Kudos

I know it's been a while but for the sake of completeness: Could you please share your solution?

Thanks and Cheers

Jens