cancel
Showing results for 
Search instead for 
Did you mean: 

XML TAGS ISSUE - WEB_SERVICE TO RFC

0 Kudos
236

Hi Community,

I am facing w=some issues with XML tags not sure why it is poping up.

The scenario is Sender- SOAP and Receiver - RFC

If i am keeping the item field blank or adding any spaces the message gets successfully sent.

<LONG_TEXT>

<item></item> or <item> </item>

</LONG_TEXT>

but if do add any value in it , the message comes as :

<LONG_TEXT>

<item>A</item>

</LONG_TEXT>

com.sap.aii.adapter.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.adapter.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$Exception: (130) JCO_ERROR_XML_PARSER: Expecting a tag to begin with '<' instead of 'A', in "EXT><item>A</item></"

If any help.

Thanks a lot 🙂

Accepted Solutions (0)

Answers (1)

Answers (1)

r_herrmann
Active Contributor
0 Kudos

Hi shubhro.chakravarty,

I can think of two possible sources for this error:

  1. The CPA cache isn't up to date. Try to do a dummy change (e.g. add space to description) in the receiver channel, save and activate. This may lead to refresh of the datatype/rfc definition.
  2. The RFC you are calling uses datatypes which can't be handled properly by the RFC adapter. (I never experienced it myself, but I read that for example the "packed number" type isn't compatible with the RFC adapters conversion engine.)