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.



[EMAIL PROTECTED] 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

Reply via email to