HI

Can someone help me out here....
  I am trying to generate proxy client class with wsdl
file. But getting javax.wsdl.WSDLException exception.
I have pasted that message down. 
Here is what I am doing...
I am using apache soap2.2 with ibm webservices tool
kit. I have a service class. First I have generated
.wsdl file from the service class using ibm tool
"wsdlgen". It went on fine. Now I am trying to
generate proxy class with this wsdl file. For proxy
generation, ibm tool kit provides a tool called
"proxygen".  While generating  its giving the follwing
exception message. Its on Win2k prof machine.

*** Pasted message begin ******

E:\Sastry\webservices\wsdemo>proxygen
TaxCalculator_Service.wsdl
An exception javax.wsdl.WSDLException has occured.
WSDLException (at /definitions/import): faultCode
=OTHER_ERROR: Unable to resolve imported document at
'http://localhost:8080/wsdl/TaxCalculator_Servi
ce-interface.wsdl'..
Stacktrace:
WSDLException (at /definitions/import):
faultCode=OTHER_ERROR: Unable to resolve imported
document a
t
'http://localhost:8080/wsdl/TaxCalculator_Service-interface.wsdl'.:
java.lang.NullPointerException

        at
java.net.URLConnection.stripOffParameters(URLConnection.java:1016)
        at
java.net.URLConnection.getContentHandler(URLConnection.java:984)
        at
java.net.URLConnection.getContent(URLConnection.java:559)
        at java.net.URL.getContent(URL.java:812)
        at
com.ibm.wsdl.util.StringUtils.getContentAsReader(StringUtils.java:356)
        at
com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1027)
        at
com.ibm.wsdl.xml.WSDLReader.parseImport(WSDLReader.java:185)
        at
com.ibm.wsdl.xml.WSDLReader.parseDefinitions(WSDLReader.java:116)
        at
com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1063)
        at
com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1030)
        at
com.ibm.wstk.wsdl.WSDLDocument.read(WSDLDocument.java:141)
        at
com.ibm.wstk.wsdl.WSDLDocument.<init>(WSDLDocument.java:66)
        at
com.ibm.wstk.tools.gen.Parser$MyWSDLDOC.<init>(Parser.java:33)
        at
com.ibm.wstk.tools.gen.Parser.parse(Parser.java:48)
        at
com.ibm.wstk.tools.gen.ui.Main.main(Main.java:48)

        at
com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1040)
        at
com.ibm.wsdl.xml.WSDLReader.parseImport(WSDLReader.java:185)
        at
com.ibm.wsdl.xml.WSDLReader.parseDefinitions(WSDLReader.java:116)
        at
com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1063)
        at
com.ibm.wsdl.xml.WSDLReader.readWSDL(WSDLReader.java:1030)
        at
com.ibm.wstk.wsdl.WSDLDocument.read(WSDLDocument.java:141)
        at
com.ibm.wstk.wsdl.WSDLDocument.<init>(WSDLDocument.java:66)
        at
com.ibm.wstk.tools.gen.Parser$MyWSDLDOC.<init>(Parser.java:33)
        at
com.ibm.wstk.tools.gen.Parser.parse(Parser.java:48)
        at
com.ibm.wstk.tools.gen.ui.Main.main(Main.java:48)

**** Pasted message end *********

  I have started the tomcat web server. I mean web
server is up and running and I am ablt to access the
interface file
'http://localhost:8080/wsdl/TaxCalculator_Service-interface.wsdl";

Can someone can help me out here. 

Thanks in advance ...
Sastry





__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com

Reply via email to