on 05-14-2008 7:21 AM
Hi all, we're excperienced with a problem during the creation of an external definition with this WSDL file:
<wsdl:definitions targetNamespace="http://www.webserviceX.NET">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET">
<s:element name="SendSMSToIndia">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="MobileNumber" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="FromEmailAddress" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Message" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="SendSMSToIndiaResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="SendSMSToIndiaResult" type="tns:SMSResult"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="SMSResult">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="FromEmailAddress" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="MobileNumber" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Provider" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="State" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string"/>
</s:sequence>
</s:complexType>
<s:element name="SMSResult" nillable="true" type="tns:SMSResult"/>
</s:schema>
</wsdl:types>
<wsdl:message name="SendSMSToIndiaSoapIn">
<wsdl:part name="parameters" element="tns:SendSMSToIndia"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaSoapOut">
<wsdl:part name="parameters" element="tns:SendSMSToIndiaResponse"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpGetIn">
<wsdl:part name="MobileNumber" type="s:string"/>
<wsdl:part name="FromEmailAddress" type="s:string"/>
<wsdl:part name="Message" type="s:string"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpGetOut">
<wsdl:part name="Body" element="tns:SMSResult"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpPostIn">
<wsdl:part name="MobileNumber" type="s:string"/>
<wsdl:part name="FromEmailAddress" type="s:string"/>
<wsdl:part name="Message" type="s:string"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpPostOut">
<wsdl:part name="Body" element="tns:SMSResult"/>
</wsdl:message>
<wsdl:portType name="SendSMSSoap">
<wsdl:operation name="SendSMSToIndia">
<documentation>
Send unlimited free SMS to India - Maximum message size is 120 characters<br><br><b>Usage:</b>If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX<br><b>Network Covered:</b> Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch,Celforce / Fascel,BPL Mobile,Escotel
</documentation>
<wsdl:input message="tns:SendSMSToIndiaSoapIn"/>
<wsdl:output message="tns:SendSMSToIndiaSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="SendSMSHttpGet">
<wsdl:operation name="SendSMSToIndia">
<documentation>
Send unlimited free SMS to India - Maximum message size is 120 characters<br><br><b>Usage:</b>If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX<br><b>Network Covered:</b> Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch,Celforce / Fascel,BPL Mobile,Escotel
</documentation>
<wsdl:input message="tns:SendSMSToIndiaHttpGetIn"/>
<wsdl:output message="tns:SendSMSToIndiaHttpGetOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="SendSMSHttpPost">
<wsdl:operation name="SendSMSToIndia">
<documentation>
Send unlimited free SMS to India - Maximum message size is 120 characters<br><br><b>Usage:</b>If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX<br><b>Network Covered:</b> Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch,Celforce / Fascel,BPL Mobile,Escotel
</documentation>
<wsdl:input message="tns:SendSMSToIndiaHttpPostIn"/>
<wsdl:output message="tns:SendSMSToIndiaHttpPostOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SendSMSSoap" type="tns:SendSMSSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="SendSMSToIndia">
<soap:operation soapAction="http://www.webserviceX.NET/SendSMSToIndia" style="document"/>
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="SendSMSHttpGet" type="tns:SendSMSHttpGet">
<http:binding verb="GET"/>
<wsdl:operation name="SendSMSToIndia">
<http:operation location="/SendSMSToIndia"/>
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="SendSMSHttpPost" type="tns:SendSMSHttpPost">
<http:binding verb="POST"/>
<wsdl:operation name="SendSMSToIndia">
<http:operation location="/SendSMSToIndia"/>
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded"/>
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SendSMS">
<wsdl:port name="SendSMSSoap" binding="tns:SendSMSSoap">
<soap:address location="http://www.webservicex.net/SendSMS.asmx"/>
</wsdl:port>
<wsdl:port name="SendSMSHttpGet" binding="tns:SendSMSHttpGet">
<http:address location="http://www.webservicex.net/SendSMS.asmx"/>
</wsdl:port>
<wsdl:port name="SendSMSHttpPost" binding="tns:SendSMSHttpPost">
<http:address location="http://www.webservicex.net/SendSMS.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
The error is:
Unable to convert imported document to WSDL
Reason: Error when parsing the XML document (Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XMLParser: Prefix 'wsdl' is not mapped to a namespace(:main:, row:1, col:63))
Check the selected category
Can any one help us?
with best regards
Karthik.J
hey
please try this, hope it useful:
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:tns="http://www.webserviceX.NET" targetNamespace="http://www.webserviceX.NET">
<types>
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.webserviceX.NET" xmlns="http://www.webserviceX.NET" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="SendSMSToIndia">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="1" name="MobileNumber" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="FromEmailAddress" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="Message" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SendSMSToIndiaResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="1" name="SendSMSToIndiaResult" type="tns:SMSResult"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:complexType name="SMSResult">
<xsd:sequence>
<xsd:element minOccurs="0" maxOccurs="1" name="FromEmailAddress" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="MobileNumber" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="Provider" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="State" type="xsd:string"/>
<xsd:element minOccurs="0" maxOccurs="1" name="Status" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="SMSResult" nillable="true" type="tns:SMSResult"/>
</xsd:schema>
</types>
<wsdl:message name="SendSMSToIndiaSoapIn">
<wsdl:part name="parameters" element="tns:SendSMSToIndia"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaSoapOut">
<wsdl:part name="parameters" element="tns:SendSMSToIndiaResponse"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpGetIn">
<wsdl:part name="MobileNumber" type="xsd:string"/>
<wsdl:part name="FromEmailAddress" type="xsd:string"/>
<wsdl:part name="Message" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpGetOut">
<wsdl:part name="Body" element="tns:SMSResult"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpPostIn">
<wsdl:part name="MobileNumber" type="xsd:string"/>
<wsdl:part name="FromEmailAddress" type="xsd:string"/>
<wsdl:part name="Message" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="SendSMSToIndiaHttpPostOut">
<wsdl:part name="Body" element="tns:SMSResult"/>
</wsdl:message>
<wsdl:portType name="SendSMSSoap">
<wsdl:operation name="SendSMSToIndia">
<documentation>
Send unlimited free SMS to India - Maximum message size is 120 characters
Usage:If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX
Network Covered: Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch,Celforce / Fascel,BPL Mobile,Escotel
</documentation>
<wsdl:input message="tns:SendSMSToIndiaSoapIn"/>
<wsdl:output message="tns:SendSMSToIndiaSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="SendSMSHttpGet">
<wsdl:operation name="SendSMSToIndia">
<documentation>
Send unlimited free SMS to India - Maximum message size is 120 characters
Usage:If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX
Network Covered: Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch,Celforce / Fascel,BPL Mobile,Escotel
</documentation>
<wsdl:input message="tns:SendSMSToIndiaHttpGetIn"/>
<wsdl:output message="tns:SendSMSToIndiaHttpGetOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="SendSMSHttpPost">
<wsdl:operation name="SendSMSToIndia">
<documentation>
Send unlimited free SMS to India - Maximum message size is 120 characters
Usage:If your mobile number is 098XXXXXXXX ,Please enter as 98XXXXXXXX
Network Covered: Airtel,Idea Cellular,Skycell ,RPG Cellular,Hutch,Celforce / Fascel,BPL Mobile,Escotel
</documentation>
<wsdl:input message="tns:SendSMSToIndiaHttpPostIn"/>
<wsdl:output message="tns:SendSMSToIndiaHttpPostOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SendSMSSoap" type="tns:SendSMSSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<wsdl:operation name="SendSMSToIndia">
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="SendSMSHttpGet" type="tns:SendSMSHttpGet">
<http:binding verb="GET"/>
<wsdl:operation name="SendSMSToIndia">
<wsdl:input>
<http:urlEncoded/>
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="SendSMSHttpPost" type="tns:SendSMSHttpPost">
<http:binding verb="POST"/>
<wsdl:operation name="SendSMSToIndia">
<wsdl:input>
<mime:content type="application/x-www-form-urlencoded"/>
</wsdl:input>
<wsdl:output>
<mime:mimeXml part="Body"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SendSMS">
<wsdl:port name="SendSMSSoap" binding="tns:SendSMSSoap">
<soap:address location="http://www.webservicex.net/SendSMS.asmx"/>
</wsdl:port>
<wsdl:port name="SendSMSHttpGet" binding="tns:SendSMSHttpGet">
<http:address location="http://www.webservicex.net/SendSMS.asmx"/>
</wsdl:port>
<wsdl:port name="SendSMSHttpPost" binding="tns:SendSMSHttpPost">
<http:address location="http://www.webservicex.net/SendSMS.asmx"/>
</wsdl:port>
</wsdl:service>
</definitions>
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.