cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP runtime error - WebService Provider

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

jitendra_it
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.

Answers (0)