cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/ws

Former Member
0 Kudos

Hi,

I am trying to execute an ABAP client proxy created for an ABAP Web Service. I have created the Service Endpoint for the ABAP Service provider in SOAMANAGER. Also I have created the logical port for the service consumer in SOAMANAGER of the consumer system.

I obtained the target host, port number & the URL access path from the WSDL URL (by clicking on the Display selected Binding's WSDL URL in SOAMANAGER for service provider) and assigned it to Logical port.

On execution of the client proxy method, i get a system exception "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/ws".

I also tried to create a logical port using LPCONFIG & SM59 using the same target host, port number & the URL access path information from the WSDL URL. I get the same error.

Is there some additional configuration i need to maintain?

Regards,

Krithika.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

you are calling the service at the address of the WSDL.

of course thats wrong.

you should get your self a little familiar with the things you do and learn that the adress of the WSDL is the address of the WSDL and the address of the service is the address of the service which can be found in the WSDL. if you want to read the WSDL call the URL of the WSDL, if you want to call the service call the URL of the service.

The service's URL is found in the WSDL in the field


<wsdl:service name="SomeServiceName">
  <wsdl:port name="SomePortName" binding="tns:SomeBindingName">
    <soap:address location="http:some_url/with/some/path" /> 
  </port>
</service>

anton