Hi,
Im trying to consume a webservice described by the WSDL below, however
When i try to add the WSDL it does not work, tried to run it through WSDL.EXE
It validates in XMLSpy, but WSDL.exe pukes on it, as does when i try to
use it in a Vs.Net project... Any ideas how to go forward with this?
Output from WSDL.EXE;
Error: Unable to import binding
'NNNWarrantyClaimManagement_WebServices_Document
PollerBinding' from namespace 'TEST.com/'.
- Unable to import operation 'PollForDocumentRequest'.
- The datatype '' is missing.
Seems like I just have to modify somewhat the WSDL structure or fix
some namespace issue to resolve this problem? Since there is no
imports or includes statements in the wsdl file i would assume its
some parsing error related to microsoft way of seeing things?
- Andreas
--------------
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="NNNWarrantyClaimManagement_WebServices_Docum entPoller"
targetNamespace="TEST.com/"
xmlns:wsdns1="http://localhost/NNNWarrantyClaimManagement/WebServices/DocumentPoller/PollForDocumentRequest"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="TEST.com/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://localhost/NNNWarrantyClaimManagement/WebServices/DocumentPoller/PollForDocumentRequest"
xmlns:tns="http://localhost/NNNWarrantyClaimManagement/WebServices/DocumentPoller/PollForDocumentRequest">
<xsd:complexType name="__PollForDocumentRequest">
<xsd:sequence>
<xsd:element name="PollForDocumentRequest"
type="tns:__PollForDocumentRequest2"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="__PollForDocumentRequest2">
<xsd:sequence>
<xsd:element name="Action" type="tns:__Action"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="__Action">
<xsd:restriction>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:whiteSpace value="collapse"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:enumeration value="GetCount"/>
<xsd:enumeration value="GetDocument"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="__PollForDocumentResponse">
<xsd:sequence>
<xsd:element name="PollForDocumentResponse"
type="tns:__PollForDocumentResponse2"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="__PollForDocumentResponse2">
<xsd:sequence>
<xsd:element name="RemainingCount"
type="xsd:nonNegativeInteger"/>
<xsd:element name="Document" type="tns:__Document"
minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="__Document">
<xsd:sequence>
<xsd:element name="DocumentType" nillable="true"
type="xsd:string"/>
<xsd:element name="DocumentXML" nillable="true"
type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</wsdl:types>
<wsdl:message name="PollForDocumentRequestInput">
<wsdl:part name="PollForDocumentRequest"
type="wsdns1:__PollForDocumentRequest2"/>
</wsdl:message>
<wsdl:message name="PollForDocumentRequestOutput">
<wsdl:part name="PollForDocumentResponse"
type="wsdns1:__PollForDocumentResponse2"/>
</wsdl:message>
<wsdl:portType
name="NNNWarrantyClaimManagement_WebServices_Docum entPollerPortType">
<wsdl:operation name="PollForDocumentRequest">
<wsdl:input message="tns:PollForDocumentRequestInput"/>
<wsdl:output message="tns:PollForDocumentRequestOutput"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding
name="NNNWarrantyClaimManagement_WebServices_Docum entPollerBinding"
type="tns:NNNWarrantyClaimManagement_WebServices_D ocumentPollerPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="PollForDocumentRequest">
<soap:operation soapAction=""/>
<wsdl:input>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="TEST.com/NNNWarrantyClaimManagement.WebServices.DocumentPol ler"
use="encoded"/>
</wsdl:input>
<wsdl:output>
<soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="TEST.com/NNNWarrantyClaimManagement.WebServices.DocumentPol ler"
use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service
name="NNNWarrantyClaimManagement_WebServices_Docum entPollerService">
<wsdl:port
name="NNNWarrantyClaimManagement_WebServices_Docum entPollerPort0"
binding="tns:NNNWarrantyClaimManagement_WebService s_DocumentPollerBinding">
<soap:address location="http://TEST.com:80/soap/NNNRPC"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>