For Programmers: Free Programming Magazines  


Home > Archive > Microsoft Webservices > July 2005 > Error when creating a proxy class to call a web service









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Error when creating a proxy class to call a web service
MKnoth

2005-07-24, 9:05 pm

I am using Visual Basic 2003 and I am trying to create a proxy class to call
a Java web service and I am getting the following error when trying to add a
web reference to the WSDL to my project.

the url
http://dev-wiselife81.us.americas.i...WebService?wsdl was not recognized as a known document type.
The error message from each known type may help you fix the problem:
- Report from 'WSDL Document' is 'There is an error in XML document (27,
16).'.
- Namespace prefix 'impl:urn' is not defined.
- Report from 'DISCO Document' is 'Discovery document at the URL
http://dev-wiselife81.us.americas.i...WebService?wsdl could not be found.'.
- The document format is not recognized.
- Report from 'XML Schema' is 'Expected Schema root. Make sure that the root
element is <schema> and the namespace is 'http://www.w3.org/2001/XMLSchema'
for an XSD schema or 'urn:schemas-microsoft-com:xml-data' for an XDR schema.
An error occurred at , (2, 2).'.

I have also tried to create the proxy class with WSE 2.0 sp 3 and I get the
same error message. Can anyone help?

Below is a copy of the WSDL that I am trying to create the proxy class from.

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by Matthew (ING)
-->
<wsdl:definitions
targetNamespace="http://dev-wiselife81.us.americas.intranet/lifeworkflow/axis/services/urn:CaseWebService"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://dev-wiselife81.us.americas.intranet/lifeworkflow/axis/services/urn:CaseWebService"
xmlns:intf="http://dev-wiselife81.us.americas.intranet/lifeworkflow/axis/services/urn:CaseWebService"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns1="urn:CaseWebService"
xmlns:tns2="http://valueobject.interfaces.life.wf.app.ia3.ing.com"
xmlns:tns3="http://valueobject.interfaces.base.wf.app.ia3.ing.com"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema
targetNamespace="http://valueobject.interfaces.base.wf.app.ia3.ing.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="BaseCaseValueObject">
<sequence>
<element name="LOBCode" nillable="true" type="xsd:string"/>
<element name="noteLevelCode" nillable="true" type="xsd:string"/>
<element name="noteText" nillable="true" type="xsd:string"/>
<element name="noteTypeCode" nillable="true" type="xsd:string"/>
<element name="originationCode" nillable="true" type="xsd:string"/>
<element name="receivedDateTime" nillable="true" type="xsd:dateTime"/>
<element name="restrictedAccessIndicator" nillable="true"
type="xsd:boolean"/>
</sequence>
</complexType>
<complexType name="BatchCaseValueObject">
<complexContent>
<extension base="tns3:BaseCaseValueObject">
<sequence>
<element name="workItemTypeCode" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ScanCaseValueObject">
<complexContent>
<extension base="tns3:BaseCaseValueObject">
<sequence>
<element name="backEndScanIndicator" nillable="true"
type="xsd:boolean"/>
<element name="businessAttributes" nillable="true"
type="apachesoap:Map"/>
<element name="priority" nillable="true" type="xsd:int"/>
<element name="scanDocumentValueObjects" nillable="true"
type=" impl:ArrayOf_tns1_ScanDocumentValueObjec
t"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<schema
targetNamespace="http://valueobject.interfaces.life.wf.app.ia3.ing.com"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="LifeBatchCaseValueObject">
<complexContent>
<extension base="tns3:BatchCaseValueObject">
<sequence>
<element name="listBillNumber" nillable="true" type="xsd:string"/>
<element name="policyNumber" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<schema targetNamespace="urn:CaseWebService"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="RASRBatchCaseValueObject">
<complexContent>
<extension base="tns2:LifeBatchCaseValueObject">
<sequence>
<element name="frame" nillable="true" type="xsd:string"/>
<element name="roll" nillable="true" type="xsd:string"/>
</sequence>
</extension>
</complexContent>
</complexType>
<complexType name="ScanDocumentValueObject">
<sequence>
<element name="batchIdentifier" nillable="true" type="xsd:int"/>
<element name="batchUserId" nillable="true" type="xsd:string"/>
<element name="boxNumber" nillable="true" type="xsd:string"/>
<element name="createdByUserID" nillable="true" type="xsd:string"/>
<element name="documentDetailCode" nillable="true" type="xsd:string"/>
<element name="documentSourceCode" nillable="true" type="xsd:string"/>
<element name="documentTypeCode" nillable="true" type="xsd:string"/>
<element name="externalBatchId" nillable="true" type="xsd:int"/>
<element name="imageRepositoryId" nillable="true" type="xsd:string"/>
<element name="liveCheckIndicator" nillable="true" type="xsd:boolean"/>
<element name="pageQuantity" nillable="true" type="xsd:int"/>
<element name="restrictedDocumentAccessIndicator" nillable="true"
type="xsd:boolean"/>
<element name="rightFaxId" nillable="true" type="xsd:string"/>
<element name="scanStationId" nillable="true" type="xsd:string"/>
<element name="universalDocumentId" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ScanCaseValueObject">
<complexContent>
<extension base="tns3:ScanCaseValueObject">
<sequence>
<element name="accountNumber" nillable="true" type="xsd:string"/>
<element name="billDate" nillable="true" type="xsd:string"/>
<element name="frame" nillable="true" type="xsd:string"/>
<element name="listBillNumber" nillable="true" type="xsd:string"/>
<element name="mailSortCode" nillable="true" type="xsd:string"/>
<element name="policyNumber" nillable="true" type="xsd:string"/>
<element name="reportDate" nillable="true" type="xsd:string"/>
<element name="roll" nillable="true" type="xsd:string"/>
<element name="routingNumber" nillable="true" type="xsd:string"/>
<element name="variableIndicator" nillable="true" type="xsd:boolean"/>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
<schema targetNamespace="http://xml.apache.org/xml-soap"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="mapItem">
<sequence>
<element name="key" nillable="true" type="xsd:string"/>
<element name="value" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="Map">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item"
type="apachesoap:mapItem"/>
</sequence>
</complexType>
</schema>
<schema
targetNamespace="http://dev-wiselife81.us.americas.intranet/lifeworkflow/axis/services/urn:CaseWebService" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOf_tns1_ScanDocumentValueObject">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType"
wsdl:arrayType="tns1:ScanDocumentValueObject[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="createCaseRequest">
<wsdl:part name="in0" type="tns3:BaseCaseValueObject"/>
</wsdl:message>
<wsdl:message name="createCaseResponse">
</wsdl:message>
<wsdl:portType name="LifeCaseWebServiceRemote">
<wsdl:operation name="createCase" parameterOrder="in0">
<wsdl:input message="impl:createCaseRequest" name="createCaseRequest"/>
<wsdl:output message="impl:createCaseResponse" name="createCaseResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="urn:CaseWebServiceSoapBinding"
type="impl:LifeCaseWebServiceRemote">
<wsdlsoap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="createCase">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="createCaseRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://ejb.interfaces.life.wf.app.ia3.ing.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="createCaseResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
namespace="http://dev-wiselife81.us.americas.intranet/lifeworkflow/axis/services/urn:CaseWebService" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="LifeCaseWebServiceRemoteService">
<wsdl:port binding="impl:urn:CaseWebServiceSoapBinding"
name="urn:CaseWebService">
<wsdlsoap:address
location="http://dev-wiselife81.us.americas.intranet/lifeworkflow/axis/services/urn:CaseWebService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com