on 04-04-2011 4:06 PM
Hello Experts,
I created proxy from local WSDL. Than I assigned local port into proxy class.
When I tried call method i got following error message:
SOAP:14 - Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/
Below you can find definition from wsdl:
<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
name="IWebXServiceservice"
targetNamespace="http://localhost/"
xmlns:tns="http://localhost/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
(...)
Could you help?
Thanks in advance,
Ed
hi,
I've created a full how-to in the wiki:
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=250513414
Roland
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No this is not part of the WSDL but the SOAP Message is created during runtime and it should have a root tag <env:Envelope>.
Your wsdl is a service type , correct? How did you start the WS call, via SPROXY or an application report?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Re,
as I followed this how-to:
http://www.sapdev.co.uk/sap-webapps/sap-webservices/ws_abapproxy.htm
In step 4, the URL to enter into the "Call Parameters" of LPCONFIG was equal to the WSDL location.
But the URL should NOT end with "?WSDL". Otherwise you might get the error "Unexpected element -el=definitions ns =http://schemas.xmlsoap.org/" (or similar, as this does not run the webservice, furthermore it returns the WSDL which starts with definitions...)
Hi, the error means that it is not sent a SOAP Envelope or SOAP message which starts with <env:Envelope> element , some header and body SOAP elements.
How did you configure the Logical Port for your Web Service consumer. Please use SOAMANAGER transaction to configura a LP from a WSDL file and use this LP when you execute the call. If you set LP = default this LP will be automatically used when you execute the WS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.