Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP: Consuming a Web Service: CX_ST_GROUP_MISSING_CASE:XSLT Exception.Element missing

Former Member
0 Kudos

Hi

I am trying to consume a WebService. I loaded the WSDL from a file. With "validwsdl.com" I can access the WebService and the answer can be recognized, but with my generated ABAP-Proxy Object I always get the following error:

CX_ST_GROUP_MISSING_CASE:XSLT exception in offset 231 and XPath SOAP-ENV:Envelope(1)SOAP-ENV:Body(1)ns1:sayHelloResponse(1).Element '{http://www.clxpreview.ch/index/soap}return' missing

In the response from the WebService the element 'return' is not missing. The Response looks like this:

<?xml version='1.0' encoding='UTF-8'?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:ns1='http://www.any_server.com/index/soap'>

   <SOAP-ENV:Body>

      <ns1:sayHelloResponse>

         <return>

            Say Hello Test

         </return>

      </ns1:sayHelloResponse>

   </SOAP-ENV:Body>

</SOAP-ENV:Envelope>

From the WSDL:

<?xml version="1.0"?>

<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://www.clxpreview.ch/index/soap" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Service_Soap" targetNamespace="http://www.clxpreview.ch/index/soap">

  <types>

    <xsd:schema targetNamespace="http://www.clxpreview.ch/index/soap">

      <xsd:complexType name="User">

        <xsd:all>

          <xsd:element name="username" type="xsd:string" nillable="true"/>

          <xsd:element name="password" type="xsd:string" nillable="true"/>

        </xsd:all>

      </xsd:complexType>

    </xsd:schema>

  </types>

  <message name="sayHelloIn">

    <part name="who" type="xsd:string"/>

  </message>

  <message name="sayHelloOut">

    <part name="return" type="xsd:string"/>

  </message>

  <portType name="Service_SoapPort">

    <operation name="sayHello">

      <documentation>sayHello</documentation>

      <input message="tns:sayHelloIn"/>

      <output message="tns:sayHelloOut"/>

    </operation>

  </portType>

  <binding name="Service_SoapBinding" type="tns:Service_SoapPort">

    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>

    <operation name="sayHello">

      <soap:operation soapAction="http://www.any_server.com/index/soap#sayHello"/>

      <input>

        <soap:body use="literal" namespace="http://clxpreview.ch/index/soap"/>

      </input>

      <output>

        <soap:body use="literal" namespace="http://clxpreview.ch/index/soap"/>

      </output>

    </operation>

  </binding>

  <service name="Service_SoapService">

    <port name="Service_SoapPort" binding="tns:Service_SoapBinding">

      <soap:address location="http://www.any_server.com/index/soap"/>

    </port>

  </service>

</definitions>

The coding is:

gs_request-who = 'Test'.
CALL METHOD go_clientproxy->say_hello
  EXPORTING
    input  = gs_request
  IMPORTING
    output = gs_response.

SAP_BASIS is:701

Can anyone give me a hint how to solve these problems?

Regards,

Frowin

1 REPLY 1

Former Member
0 Kudos

Hi, do you manage to solve this?

I encountered the same error when trying to consume a webservice from external system.

Error message:

SOAP:1,001 CX_ST_GROUP_MISSING_CASE:.Element 'sys_id' missing