- This topic has 11 replies, 5 voices, and was last updated 16 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
schanamoluMemberHi,
cvc-elt.1: Cannot find the declaration of element ‘wsdl:definitions’
The following error is coming from *.wsdl file
Any help would be appreciated.
Thanks,
Sreedhar
Riyad KallaMemberSreedhar,
Please post your WSDL and setup information from MyEclipse > INstallation Summary > Installation Details
ottonielMemberHi all!!!
I have the same problem….my wsdl is
<wsdl:definitions targetNamespace=”http://gsms.netcom.com” xmlns:xs=”http://www.w3.org/2001/XMLSchema” xmlns:wsdl=”http://www.w3.org/2003/06/wsdl/wsdl12.xsd” xmlns:wsdlsoap=”http://schemas.xmlsoap.org/wsdl/soap/”>
<!–
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
–>
<wsdl:message name=”enviarSMSResponse”>
<wsdl:part name=”enviarSMSReturn” type=”xsd:string”/>
</wsdl:message>
<wsdl:message name=”enviarSMSRequest”>
<wsdl:part name=”xml” type=”xsd:string”/>
</wsdl:message>
<wsdl:portType name=”GatewaySMS”>
<wsdl:operation name=”enviarSMS” parameterOrder=”xml”>
<wsdl:input name=”enviarSMSRequest” message=”impl:enviarSMSRequest”/>
<wsdl:output name=”enviarSMSResponse” message=”impl:enviarSMSResponse”/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name=”GatewaySMSSoapBinding” type=”impl:GatewaySMS”>
<wsdlsoap:binding style=”rpc” transport=”http://schemas.xmlsoap.org/soap/http”/><wsdl:operation name=”enviarSMS”>
<wsdlsoap:operation soapAction=””/>
<wsdl:input name=”enviarSMSRequest”>
<wsdlsoap:body use=”literal” namespace=”http://gsms.netcom.com”/>
</wsdl:input>
<wsdl:output name=”enviarSMSResponse”>
<wsdlsoap:body use=”literal” namespace=”http://gsms.netcom.com”/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name=”GatewaySMSService”>
<wsdl:port name=”GatewaySMS” binding=”impl:GatewaySMSSoapBinding”>
<wsdlsoap:address location=”http://192.168.201.5:8080/gsms/services/GatewaySMS”/>
</wsdl:port>
</wsdl:service></wsdl:definitions>
Riyad KallaMemberGuys the problem is explained here:
http://www.junlu.com/msg/135954.htmlyour headers are incomplete, you need to list namespace/URI pairs, right nwo you are just listing namespaces.
ottonielMemberExcuse me, I have a wsdl file from a web service and is exactly like this
<wsdl:definitions targetNamespace=”http://gsms.netcom.com”>
<!–
WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)
–><wsdl:message name=”enviarSMSResponse”>
<wsdl:part name=”enviarSMSReturn” type=”xsd:string”/>
</wsdl:message><wsdl:message name=”enviarSMSRequest”>
<wsdl:part name=”xml” type=”xsd:string”/>
</wsdl:message><wsdl:portType name=”GatewaySMS”>
<wsdl:operation name=”enviarSMS” parameterOrder=”xml”>
<wsdl:input name=”enviarSMSRequest” message=”impl:enviarSMSRequest”/>
<wsdl:output name=”enviarSMSResponse” message=”impl:enviarSMSResponse”/>
</wsdl:operation>
</wsdl:portType><wsdl:binding name=”GatewaySMSSoapBinding” type=”impl:GatewaySMS”>
<wsdlsoap:binding style=”rpc” transport=”http://schemas.xmlsoap.org/soap/http”/><wsdl:operation name=”enviarSMS”>
<wsdlsoap:operation soapAction=””/><wsdl:input name=”enviarSMSRequest”>
<wsdlsoap:body use=”literal” namespace=”http://gsms.netcom.com”/>
</wsdl:input><wsdl:output name=”enviarSMSResponse”>
<wsdlsoap:body use=”literal” namespace=”http://gsms.netcom.com”/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding><wsdl:service name=”GatewaySMSService”>
<wsdl:port name=”GatewaySMS” binding=”impl:GatewaySMSSoapBinding”>
<wsdlsoap:address location=”http://192.168.201.5:8080/gsms/services/GatewaySMS”/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>is worst?
the people that give me the file say me is correct 🙁
ottonielMemberhaa the error is :
the prefix wsdl for elements “wsdl:definitions” is not bound.
Thank you
ottonielMemberis based on W3C (http://www.w3schools.com/wsdl/wsdl_syntax.asp).
mschenkMemberThis message has not been recovered.
Riyad KallaMemberThis message has not been recovered.
Riyad KallaMemberBruce,
I got your email and created a web service project without a hickup with that WSDL and sent it back to you, let me know if it works.
sreekanth_suruvuMemberI have got the same error “The prefix “wsdl” for element “wsdl:definitions” is not bound.”
Infact this is my first Wsdl…Here is the wsdl file
<?xml version=”1.0″ encoding=”UTF-8″?>
<wsdl:definitions name=”FP”
targetNamespace=”http://localhost:8001/FP.wsdl”
xmlns:tns=”http://localhost:8001/FP.wsdl”
xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:ns=”urn:FP”
xmlns:SOAP=”http://schemas.xmlsoap.org/wsdl/soap/”
xmlns:MIME=”http://schemas.xmlsoap.org/wsdl/mime/”
xmlns:DIME=”http://schemas.xmlsoap.org/ws/2002/04/dime/wsdl/”
xmlns:WSDL=”http://schemas.xmlsoap.org/wsdl/”
xmlns=”http://schemas.xmlsoap.org/wsdl/”><wsdl:types>
<xsd:schema targetNamespace=”urn:FP”
xmlns:SOAP-ENV=”http://schemas.xmlsoap.org/soap/envelope/”
xmlns:SOAP-ENC=”http://schemas.xmlsoap.org/soap/encoding/”
xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”
xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
xmlns:ns=”urn:FP”
xmlns=”http://www.w3.org/2001/XMLSchema”
elementFormDefault=”unqualified”
attributeFormDefault=”unqualified”>
<xsd:import namespace=”http://schemas.xmlsoap.org/soap/encoding/”/>
</xsd:schema></wsdl:types>
<wsdl:message name=”handlerequestRequest”>
<wsdl:part name=”request” type=”xsd:string”/>
</wsdl:message><wsdl:message name=”handlerequestResponse”>
<wsdl:part name=”result” type=”xsd:string”/>
</wsdl:message><wsdl:portType name=”FPPortType”>
<wsdl:operation name=”handlerequest”>
<wsdl:input message=”tns:handlerequestRequest”/>
<wsdl:output message=”tns:handlerequestResponse”/>
</wsdl:operation>
</wsdl:portType><wsdl:binding name=”FP” type=”tns:FPPortType”>
<SOAP:binding style=”rpc” transport=”http://schemas.xmlsoap.org/soap/http”/>
<wsdl:operation name=”handlerequest”>
<SOAP:operation style=”rpc” soapAction=””/>
<wsdl:input>
<SOAP:body use=”encoded” namespace=”urn:FP” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/”/>
</wsdl:input>
<wsdl:output>
<SOAP:body use=”encoded” namespace=”urn:FP” encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/”/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding><wsdl:service name=”FP”>
<wsdl:port name=”FP” binding=”tns:FP”>
<SOAP:address location=”http://localhost:8001/FPserver.cgi”/>
</wsdl:port>
<wsdl:/service></wsdl:definitions>
2)Also how do I determine the ‘targetNamespace’ value in definitions tag during runtime. Coz I do not know the server or port it would be hosted?
Thanks
Sreekanth
Riyad KallaMemberSreekanth,
The issue is explained in my previous post a few posts up. -
AuthorPosts