You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by NY...@aol.com on 2004/06/24 20:18:06 UTC
Funny WSDL2Java Error
I cannot get the WSDL2Java to work. I have created and deployed axis
programs before. Here is the error and the file:
WSDLException (at /wsdl:definitions): faultCode=INVALID_WSDL: Expected
element '
{http://schemas.xmlsoap.org/wsdl/}definitions'.:
at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:406)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
a:393)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------------------------
-
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions xmlns="_http://schemas.xmlsoap.org/wsdl/_
(http://schemas.xmlsoap.org/wsdl/) "
xmlns:impl = "_http://localhost:8080/axis/services/ClientDirectServicePort_
(http://localhost:8080/axis/services/ClientDirectServicePort) "
xmlns:wsdl = "_http://schemas.xmlsoap.org/wsdl_
(http://schemas.xmlsoap.org/wsdl) "
xmlns:soap = "_http://schemas.xmlsoap.org/wsdl/soap_
(http://schemas.xmlsoap.org/wsdl/soap) "
xmlns:xs = "_http://www.w3.org/2001/XMLSchema_
(http://www.w3.org/2001/XMLSchema) "
xmlns:data = "_http://localhost:8080/axis/service/ClientDirectServicePort_
(http://localhost:8080/axis/service/ClientDirectServicePort) "
targetNamespace =
"_http://localhost:8080/axis/services/ClientDirectServicePort_ (http://localhost:8080/axis/services/ClientDirectServicePort) " name =
"clientDirect">
<wsdl:documentation>
!! clientDirectService.wsdl !!
!! Created by James Crosson !!
!! Kledaras Technologies !!
!! June 23, 2004 !!
</wsdl:documentation>
<wsdl:import namespace =
"_http://localhost:8080/axis/services/ClientDirectServicePort_ (http://localhost:8080/axis/services/ClientDirectServicePort) "
location = "clientDirectBinding.wsdl"/>
<wsdl:service name = "clientDirectService">
<wsdl:port name = "clientHandlerServicePort" binding =
"impl:clientDirectBinding">
<soap:address location =
"_http://locations:8080/axis/services/ClientDirectServicePort"/_ (http://locations:8080/axis/services/ClientDirectServicePort"/) >
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
It would be stupendous if some of you could help me! Thanks,James
Re: Funny WSDL2Java Error
Posted by Jim Murphy <jm...@mindreef.com>.
Your WSDL namespace is wrong...but very close!
you had:
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl"
you need:
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
Note the trailing slash. :) Since namespaces are opaque strings one is
!= to the other.
Jim Murphy
Mindreef, Inc.
NYY96@aol.com wrote:
> I cannot get the WSDL2Java to work. I have created and deployed axis
> programs before. Here is the error and the file:
>
> WSDLException (at /wsdl:definitions): faultCode=INVALID_WSDL: Expected
> element '
> {http://schemas.xmlsoap.org/wsdl/}definitions'.:
> at com.ibm.wsdl.xml.WSDLReaderImpl.checkElementName(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
> at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:406)
> at
> org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav
> a:393)
> at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
> at java.lang.Thread.run(Unknown Source)
>
> -------------------------------------------------------------------------------
>
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
> xmlns:impl = "http://localhost:8080/axis/services/ClientDirectServicePort"
> xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl"
> xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap"
> xmlns:xs = "http://www.w3.org/2001/XMLSchema"
> xmlns:data = "http://localhost:8080/axis/service/ClientDirectServicePort"
>
> targetNamespace =
> "http://localhost:8080/axis/services/ClientDirectServicePort" name =
> "clientDirect">
>
>
> <wsdl:documentation>
> !! clientDirectService.wsdl !!
> !! Created by James Crosson !!
> !! Kledaras Technologies !!
> !! June 23, 2004 !!
> </wsdl:documentation>
>
>
> <wsdl:import namespace =
> "http://localhost:8080/axis/services/ClientDirectServicePort" location =
> "clientDirectBinding.wsdl"/>
>
> <wsdl:service name = "clientDirectService">
> <wsdl:port name = "clientHandlerServicePort" binding =
> "impl:clientDirectBinding">
> <soap:address location =
> "http://locations:8080/axis/services/ClientDirectServicePort"/>
> </wsdl:port>
> </wsdl:service>
>
> </wsdl:definitions>
>
> It would be stupendous if some of you could help me! Thanks,James
>
>