cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with RFC-XI_SOAP Scenario

former_member55105
Participant
0 Kudos

Hello Guru's,

I am stuck with a scenario in RFC-XI-SOAP. Its a simple scenario where in I am trying to pass in two numbers to a web service and the web service will return the addition of two numbers back to the RFC.

The scenario configuration looks perfect. I have referred all the related blogs (blogs related to RFC-XI-SOAP scenarios) after I configured the scenario. The RFC destination which I created was tested successful.

When I executed the RFC at the destination, it threw a dump saying "call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException:". When I checked the sender RFC adapter in RWB, this is the message what I got

-


- Error: 2008-01-09 12:04:29 GMT+05:30: Message processed for interface ZRFC_SAMPLE_ADD: com.sap.aii.af.mp.module.ModuleException: call to messaging system failed: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:ADAPTER.SOAP_EXCEPTION:soap fault: Server was unable to read request. ---> There is an error in XML document (1, 166). ---> Input string was not in a correct format. caused by: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapter:ADAPTER.SOAP_EXCEPTION:soap fault: Server was unable to read request. ---> There is an error in XML document (1, 166). ---> Input string was not in a correct format.

-


For the message it quite clear that there is something wrong with the format. But when I tested WSDL in XML spy, it ran fine.

Could anybody help me with the cause of this problem?

Thanking you in advance,

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vijaya,

U might have error in the RFC itself.The error is saying that there is an error in the request XML message i.e. the message coming from sender system to XI server.

So check the RFC structure.. there might hahe some error.

Regards

Biplab

former_member55105
Participant
0 Kudos

Hi Biplab,

Thanks for getting back !!!

The structure of the RFC is quite simple. It just has two import parameters and one export parameters.

Fyi.... I am pasting down the structure of the RFC and WSDL below.

-


Structure of RFC----


*"----


""Local interface:

*" IMPORTING

*" VALUE(INPUT1) TYPE I

*" VALUE(INPUT2) TYPE I

*" EXPORTING

*" VALUE(OUTPUT) TYPE STRING

-


-


Structure of WSDL----


<xsd:element name="Addition">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="a" type="xsd:int" />

<xsd:element name="b" type="xsd:int" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:element name="AdditionResponse">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="AdditionResult" type="ResultClass" minOccurs="0" />

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:complexType name="ResultClass">

<xsd:sequence>

<xsd:element name="c" type="xsd:string" minOccurs="0" />

</xsd:sequence>

</xsd:complexType>

-


Any suggestions plz !!!!

Thanks,

Vijay

former_member55105
Participant
0 Kudos

Solved on my own....The problem was with the data type.

Thanks to all.