axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dushshantha Chandradasa" <dushshantha.chandarad...@gmail.com>
Subject Re: Regarding running of wsdl2c tool
Date Thu, 07 Jun 2007 09:58:08 GMT
It seems to me that your wsdl is wrong. I cant simply open it even with a
web browser. It is not formatted well.

I can see that the following comment is wrong.

<!
WSDL created by Apache Axis version: 1.2.1
Built on Jun 14, 2005 (09:15:57 EDT)

 >

A comment should go like <!--  and end with -->

Regards,
Dushshantha

On 6/7/07, Sushmita Sahu <Sushmita_Sahu@infosys.com> wrote:
>
>  Hi,
>
> I am a novice in web services. I am running the wsdl2c tool on a .wsdl
> (attached file) to get the client side stubs. I am getting the following
> error on running the tool on wsdl:
>
>
>
> *C:\axis2c-1\samples\client\getMachines>java -cp
> %AXIS2_CLASSPATH%;%AXIS2_CLASSPATH2% org.a*
>
> *pache.axis2.wsdl.WSDL2C -uri JobManagement.wsdl -d adb -u*
>
> *Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException: Error pa*
>
> *rsing WSDL*
>
> *        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> .<init>(CodeGenerationEngine.*
>
> *java:140)*
>
> *        at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)*
>
> *        at org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)*
>
> *Caused by: javax.wsdl.WSDLException: WSDLException:
> faultCode=PARSER_ERROR: Parser SAX Err*
>
> *or: org.xml.sax.SAXException: Fatal Error:
> URI=file:///C:/axis2c-1/samples/client/getMachi*
>
> *nes/JobManagement.wsdl Line=3: The content of elements must consist of
> well-formed charact*
>
> *er data or markup.*
>
> *        at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile
> (CodeGenera*
>
> *tionEngine.java:300)*
>
> *        at org.apache.axis2.wsdl.codegen.CodeGenerationEngine
> .<init>(CodeGenerationEngine.*
>
> *java:97)*
>
> *        ... 2 more*
>
> *Caused by: org.xml.sax.SAXException: Fatal Error:
> URI=file:///C:/axis2c-1/samples/client/g*
>
> *etMachines/JobManagement.wsdl Line=3: The content of elements must
> consist of well-formed*
>
> *character data or markup.*
>
> *        at org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(
> XMLUtils.java:381)*
>
> * *
>
> *        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown
> Source)*
>
> *        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)*
>
> *        at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)*
>
> *        at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown
> Source)*
>
> *        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher
> *
>
> *.dispatch(Unknown Source)*
>
> *        at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Sour*
>
> *ce)*
>
> *        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)*
>
> *        at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)*
>
> *        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)*
>
> *        at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)*
>
> *        at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
> Source)*
>
> *        at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:196)*
>
> *        at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:241)*
>
> *        at org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:224)*
>
> *        at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile
> (CodeGenera*
>
> *tionEngine.java:294)*
>
> *        ... 3 more.*
>
> * *
>
> Can you tell me where exactly the problem is?
>
>
>
> Thanks and regards
>
> Sushmita
>
>
>
>
>  **************** CAUTION - Disclaimer *****************
> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended
> solely for the use of the addressee(s). If you are not the intended
> recipient, please notify the sender by e-mail and delete the original
> message. Further, you are not to copy, disclose, or distribute this e-mail
> or its contents to any other person and any such actions are unlawful. This
> e-mail may contain viruses. Infosys has taken every reasonable precaution to
> minimize this risk, but is not liable for any damage you may sustain as a
> result of any virus in this e-mail. You should carry out your own virus
> checks before opening the e-mail or attachment. Infosys reserves the right
> to monitor and review the content of all messages sent to or from this
> e-mail address. Messages sent to or from this e-mail address may be stored
> on the Infosys e-mail system.
> ***INFOSYS******** End of Disclaimer ********INFOSYS***
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
>

Mime
View raw message