You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Hoying, Ken" <KH...@tiaa-cref.org> on 2005/08/08 19:35:37 UTC
WSDL Error
I am getting the following error:
[wsdl2java] WSDL2Java dsv.wsdl
[wsdl2java] Parsing XML file: dsv.wsdl
[wsdl2java] Running Wsdl2javaAntTask with parameters:
[wsdl2java] verbose:true
[wsdl2java] server-side:false
[wsdl2java] skeletonDeploy:false
[wsdl2java] helperGen:false
[wsdl2java] factory:null
[wsdl2java] testCase:false
[wsdl2java] noImports:false
[wsdl2java] NStoPkg:{http://dsv.tiaacref.org=org.tiaa.j2eeinfra.dsvwrapper.wsdl}
[wsdl2java] output:C:\Projects\DSVWrapper\implementation\temp\src
[wsdl2java] deployScope:session
[wsdl2java] URL:dsv.wsdl
[wsdl2java] all:false
[wsdl2java] typeMappingVersion:1.1
[wsdl2java] timeout:45000
[wsdl2java] failOnNetworkErrors:false
[wsdl2java] printStackTraceOnFailure:true
[wsdl2java] java.io.IOException: Element {http://dsv.tiaacref.org}getNetDocumentResponse is referenced but not defined.
[wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:489)
[wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:384)
[wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:371)
[wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:358)
[wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243)
[wsdl2java] at java.lang.Thread.run(Thread.java:536)
My WSDL file looks like this:
Any ideas?
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://dsv.tiaacref.org" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://dsv.tiaacref.org-impl" xmlns:intf="http://dsv.tiaacref.org" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 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://xml.apache.org/xml-soap" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Map">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item">
<complexType>
<all>
<element name="key" type="xsd:anyType"/>
<element name="value" type="xsd:anyType"/>
</all>
</complexType>
</element>
</sequence>
</complexType>
<element name="Map" nillable="true" type="apachesoap:Map"/>
<element name="getNetDocument">
<complexType>
<sequence>
<element name="document" type="xsd:string" />
<element name="paramKeys" type="apachesoap:ArrayOfString" />
<element name="paramVals" type="apachesoap:ArrayOfString" />
</sequence>
</complexType>
</element>
<element name="getNetDocumentResponse">
<complexType>
<sequence>
<element name="xmlVal" type="xsd:string" />
</sequence>
</complexType>
</element>
<complexType name="ArrayOfString">
<complexContent>
<restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
</restriction>
</complexContent>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="getDocumentResponse">
<wsdl:part name="return" type="soapenc:string"/>
</wsdl:message>
<wsdl:message name="getDocumentRequest">
<wsdl:part name="in0" type="soapenc:string"/>
<wsdl:part name="in1" type="apachesoap:Map"/>
</wsdl:message>
<wsdl:message name="getNetDocumentRequest">
<wsdl:part name="params" element="intf:getNetDocument"/>
</wsdl:message>
<wsdl:message name="getNetDocumentResponse">
<wsdl:part name="rtrn" element="intf:getNetDocumentResponse"/>
</wsdl:message>
<wsdl:portType name="DSVWebService">
<wsdl:operation name="getDocument" parameterOrder="in0 in1">
<wsdl:input message="intf:getDocumentRequest" name="getDocumentRequest"/>
<wsdl:output message="intf:getDocumentResponse" name="getDocumentResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:portType name="DSVNetWebService">
<wsdl:operation name="getNetDocument">
<wsdl:input message="intf:getNetDocumentRequest" name="getNetDocumentRequest"/>
<wsdl:output message="intf:getNetDocumentResponse" name="getNetDocumentResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="DSVWebServiceImplSoapBinding" type="intf:DSVWebService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getDocument">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getDocumentRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://dsv.tiaacref.org" use="encoded"/>
</wsdl:input>
<wsdl:output name="getDocumentResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://dsv.tiaacref.org" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="DSVNetWebServiceImplSoapBinding" type="intf:DSVNetWebService">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getNetDocument">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getNetDocumentRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getNetDocumentResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="DSVWebServiceService">
<wsdl:port binding="intf:DSVWebServiceImplSoapBinding" name="DSVWebServiceImpl">
<wsdlsoap:address location="http://10.17.9.67:8011/axis/DSVWebServiceImpl.jws"/>
</wsdl:port>
</wsdl:service>
<wsdl:service name="DSVNetWebServiceService">
<wsdl:port binding="intf:DSVNetWebServiceImplSoapBinding" name="DSVNetWebServiceImpl">
<wsdlsoap:address location="http://10.17.9.67:8011/axis/DSVNetWebServiceImpl.jws"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thank you,
Ken Hoying
**************************************************************
This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited.
TIAA-CREF
**************************************************************
Re: WSDL Error
Posted by Anne Thomas Manes <at...@gmail.com>.
You have a namespace problem. You've defined your elements in the
apachesoap namespace (http://xml.apache.org/xml-soap), but you're
trying referencing them by the intf namespace
(http://dsv.tiaacref.org).
Anne
On 8/8/05, Hoying, Ken <KH...@tiaa-cref.org> wrote:
>
>
> I am getting the following error:
>
> [wsdl2java] WSDL2Java dsv.wsdl
> [wsdl2java] Parsing XML file: dsv.wsdl
> [wsdl2java] Running Wsdl2javaAntTask with parameters:
> [wsdl2java] verbose:true
> [wsdl2java] server-side:false
> [wsdl2java] skeletonDeploy:false
> [wsdl2java] helperGen:false
> [wsdl2java] factory:null
> [wsdl2java] testCase:false
> [wsdl2java] noImports:false
> [wsdl2java]
> NStoPkg:{http://dsv.tiaacref.org=org.tiaa.j2eeinfra.dsvwrapper.wsdl}
> [wsdl2java]
> output:C:\Projects\DSVWrapper\implementation\temp\src
> [wsdl2java] deployScope:session
> [wsdl2java] URL:dsv.wsdl
> [wsdl2java] all:false
> [wsdl2java] typeMappingVersion:1.1
> [wsdl2java] timeout:45000
> [wsdl2java] failOnNetworkErrors:false
> [wsdl2java] printStackTraceOnFailure:true
> [wsdl2java] java.io.IOException: Element
> {http://dsv.tiaacref.org}getNetDocumentResponse is referenced but not
> defined.
> [wsdl2java] at
> org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:489)
> [wsdl2java] at
> org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:384)
> [wsdl2java] at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:371)
> [wsdl2java] at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:358)
> [wsdl2java] at
> org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:243)
> [wsdl2java] at java.lang.Thread.run(Thread.java:536)
>
> My WSDL file looks like this:
>
> Any ideas?
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions targetNamespace="http://dsv.tiaacref.org"
> xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:apachesoap="http://xml.apache.org/xml-soap"
> xmlns:impl="http://dsv.tiaacref.org-impl"
> xmlns:intf="http://dsv.tiaacref.org"
> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
> 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://xml.apache.org/xml-soap"
> xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
>
> <import
> namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
> <complexType name="Map">
> <sequence>
> <element maxOccurs="unbounded"
> minOccurs="0" name="item">
> <complexType>
> <all>
> <element
> name="key" type="xsd:anyType"/>
> <element
> name="value" type="xsd:anyType"/>
> </all>
> </complexType>
> </element>
> </sequence>
> </complexType>
>
> <element name="Map" nillable="true"
> type="apachesoap:Map"/>
>
> <element name="getNetDocument">
> <complexType>
> <sequence>
> <element name="document"
> type="xsd:string" />
> <element name="paramKeys"
> type="apachesoap:ArrayOfString" />
> <element name="paramVals"
> type="apachesoap:ArrayOfString" />
> </sequence>
> </complexType>
> </element>
>
> <element name="getNetDocumentResponse">
> <complexType>
> <sequence>
> <element name="xmlVal"
> type="xsd:string" />
> </sequence>
> </complexType>
> </element>
>
> <complexType name="ArrayOfString">
> <complexContent>
> <restriction base="soapenc:Array">
> <attribute
> ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" />
> </restriction>
> </complexContent>
> </complexType>
> </schema>
> </wsdl:types>
>
> <wsdl:message name="getDocumentResponse">
> <wsdl:part name="return" type="soapenc:string"/>
> </wsdl:message>
>
> <wsdl:message name="getDocumentRequest">
> <wsdl:part name="in0" type="soapenc:string"/>
> <wsdl:part name="in1" type="apachesoap:Map"/>
> </wsdl:message>
>
> <wsdl:message name="getNetDocumentRequest">
> <wsdl:part name="params" element="intf:getNetDocument"/>
> </wsdl:message>
>
> <wsdl:message name="getNetDocumentResponse">
> <wsdl:part name="rtrn"
> element="intf:getNetDocumentResponse"/>
> </wsdl:message>
>
> <wsdl:portType name="DSVWebService">
> <wsdl:operation name="getDocument" parameterOrder="in0 in1">
> <wsdl:input message="intf:getDocumentRequest"
> name="getDocumentRequest"/>
> <wsdl:output message="intf:getDocumentResponse"
> name="getDocumentResponse"/>
> </wsdl:operation>
> </wsdl:portType>
>
> <wsdl:portType name="DSVNetWebService">
> <wsdl:operation name="getNetDocument">
> <wsdl:input message="intf:getNetDocumentRequest"
> name="getNetDocumentRequest"/>
> <wsdl:output message="intf:getNetDocumentResponse"
> name="getNetDocumentResponse"/>
> </wsdl:operation>
> </wsdl:portType>
>
> <wsdl:binding name="DSVWebServiceImplSoapBinding"
> type="intf:DSVWebService">
> <wsdlsoap:binding style="rpc"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="getDocument">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="getDocumentRequest">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://dsv.tiaacref.org" use="encoded"/>
>
> </wsdl:input>
> <wsdl:output name="getDocumentResponse">
> <wsdlsoap:body
> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> namespace="http://dsv.tiaacref.org" use="encoded"/>
>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
>
> <wsdl:binding
> name="DSVNetWebServiceImplSoapBinding"
> type="intf:DSVNetWebService">
> <wsdlsoap:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
> <wsdl:operation name="getNetDocument">
> <wsdlsoap:operation soapAction=""/>
> <wsdl:input name="getNetDocumentRequest">
> <wsdlsoap:body use="literal"/>
> </wsdl:input>
> <wsdl:output name="getNetDocumentResponse">
> <wsdlsoap:body use="literal"/>
> </wsdl:output>
> </wsdl:operation>
> </wsdl:binding>
>
> <wsdl:service name="DSVWebServiceService">
> <wsdl:port
> binding="intf:DSVWebServiceImplSoapBinding"
> name="DSVWebServiceImpl">
> <wsdlsoap:address
> location="http://10.17.9.67:8011/axis/DSVWebServiceImpl.jws"/>
> </wsdl:port>
> </wsdl:service>
>
> <wsdl:service name="DSVNetWebServiceService">
> <wsdl:port
> binding="intf:DSVNetWebServiceImplSoapBinding"
> name="DSVNetWebServiceImpl">
> <wsdlsoap:address
> location="http://10.17.9.67:8011/axis/DSVNetWebServiceImpl.jws"/>
> </wsdl:port>
> </wsdl:service>
>
> </wsdl:definitions>
>
> Thank you,
> Ken Hoying
>
> **************************************************************
> This message, including any attachments, contains confidential information
> intended for a specific individual and purpose, and is protected by law. If
> you are not the intended recipient, please contact sender immediately by
> reply e-mail and destroy all copies. You are hereby notified that any
> disclosure, copying, or distribution of this message, or the taking of any
> action based on it, is strictly prohibited.
> TIAA-CREF
> **************************************************************
>