Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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 NameMethod NameText
CL_SOAP_MESSAGEIF_SOAP_MESSAGE_PART~DESERIALIZE_BODYCX_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_MESSAGEIF_SOAP_MESSAGE_PART~DESERIALIZE_BODYCX_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_SERVEREXECUTE_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_SERVEREXECUTE_PROCESSINGA 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_SERVEREXECUTE_PROCESSINGA 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_ERRORmap_core_exception_to_faultXSLT 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

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question