Skip to Content
avatar image
Former Member

SOAP runtime error - WebService Provider

Hi all,

I created a WebService in SAP, and now I'm testing it in soapUi, but I get the following errors (I took these errors from SOAMANAGER):

Class Name Method Name Text CL_SOAP_MESSAGE IF_SOAP_MESSAGE_PART~DESERIALIZE_BODY CX_SXMLP : XSLT exception in offset 240 and XPath soapenv:Envelope(1)soapenv:Body(2)urn:ZirnwsfiInterfaceSiff(1) | program: CL_SXMLP_DATA_ST==============CP include: CL_SXMLP_DATA_ST==============CM004 line: 58 CL_SOAP_MESSAGE IF_SOAP_MESSAGE_PART~DESERIALIZE_BODY CX_ST_MATCH_ELEMENT : Fim de elemento '{urn:sap-com:document:sap:soap:functions:mc-style}ZirnwsfiInterfaceSiff' esperado | program: CL_SXMLP_DATA_ST==============CP include: CL_SXMLP_DATA_ST==============CM004 line: 25 CL_SOAP_RUNTIME_SERVER EXECUTE_PROCESSING

CX_SXMLP : XSLT exception in offset 240 and XPath soapenv:Envelope(1)soapenv:Body(2)urn:

ZirnwsfiInterfaceSiff(1) | program: CL_SXMLP_DATA_ST==============CP include:

CL_SXMLP_DATA_ST==============CM004 line: 58

CL_SOAP_RUNTIME_SERVER EXECUTE_PROCESSING A SOAP Runtime Core Exception occurred in method CL_SXMLP_DATA_ST==============CM004 of class CL_SXMLP_DATA_ST==============CP at position id 58 with internal error id 1001 and error text CX_ST_MATCH_ELEMENT:XSLT exception in offset 240 and XPath soapenv:Envelope(1)soapenv:Body(2)urn:ZirnwsfiInterfaceSiff(1).Fim de elemento '{urn:sap-com:document:sap:soap:functions:mc-style}ZirnwsfiInterfaceSiff' esperado (fault location is 1 ). CL_SOAP_RUNTIME_SERVER EXECUTE_PROCESSING A SOAP Runtime Core Exception occurred in method CL_SXMLP_DATA_ST==============CM004 of class CL_SXMLP_DATA_ST==============CP at position id 58 with internal error id 1001 and error text CX_ST_MATCH_ELEMENT:XSLT exception in offset 240 and XPath soapenv:Envelope(1)soapenv:Body(2)urn:ZirnwsfiInterfaceSiff(1).Fim de elemento '{urn:sap-com:document:sap:soap:functions:mc-style}ZirnwsfiInterfaceSiff' esperado (fault location is 1 ). CL_SOAP_RUNTIME_ERROR map_core_exception_to_fault XSLT exception in offset 240 and XPath soapenv:Envelope(1)soapenv:Body(2)urn:ZirnwsfiInterfaceSiff(1) Fim de elemento '{urn:sap-com:document:sap:soap:functions:mc-style}ZirnwsfiInterfaceSiff' esperado

Translating the Portuguese text: "Fim de elemento esperado" means "End of element expected".

I have the following parameters in my RFC:

*"*"Interface local:

*" IMPORTING

*" VALUE(ID) TYPE ZIDFICH OPTIONAL

*" VALUE(DOCUMENT) TYPE ZFI_DOC_INT_SIFF_T OPTIONAL

*" EXPORTING

*" VALUE(STATUS) TYPE ZSTATUS_SIFF

*" TABLES

*" RETURN STRUCTURE ZBAPIRETURN OPTIONAL

I put them all optional, so I won't have errors when the WebService is called outside.

The value "Document" is a table type with two fields:

- Header: that is a structure.

- Items: that is a table type.

Do you think this kind of structure is causing the errors above? Or is something wrong in my WebService test?

It's the first time I'm creating WebServices in SAP, so I will really need some help on this.

Thanks in advance.

Regards,

Sónia Gonçalves

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Jan 03, 2013 at 04:30 AM

    Hi Sónia ,

    try creating service without 'Tables' parameter. Put the 'Return' in Export section.

    The value "Document" is a table type with two fields:

    - Header: that is a structure.

    - Items: that is a table type.

    Do you think this kind of structure is causing the errors above? Or is something wrong in my WebService test?

    No i dont think so. Complex structures are allowed in web services.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I put the "Return" in export section, but still I'm not able to test this is soapUi.

      Anyway, I'm able to test with the external system, so my problem is solved.

      Thanks for your answer.