[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-c-user
Subject:    Re: Regarding running of wsdl2c tool
From:       "Dushshantha Chandradasa" <dushshantha.chandaradasa () gmail ! com>
Date:       2007-06-07 9:58:33
Message-ID: b4b0ae830706070258n6056b44jbce5287675f6c588 () mail ! gmail ! com
[Download RAW message or body]

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
>
>

[Attachment #3 (text/html)]

It seems to me that your wsdl is wrong. I cant simply open it even with a web \
browser. It is not formatted well.&nbsp; <br><br>I can see that the following comment \
is wrong.<br><br>&lt;! <br>WSDL created by Apache Axis version:  1.2.1<br>Built on \
Jun 14, 2005 (09:15:57 EDT)<br><br>&nbsp;&gt; <br><br>A comment should go like \
&lt;!--&nbsp; and end with --&gt;<br><br>Regards,<br>Dushshantha<br><br><div><span \
class="gmail_quote">On 6/7/07, <b class="gmail_sendername"> Sushmita Sahu</b> &lt;<a \
href="mailto:Sushmita_Sahu@infosys.com">Sushmita_Sahu@infosys.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">









<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">Hi,</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">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:</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">&nbsp;</span></font></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
                bold;">C:\axis2c-1\samples\client\getMachines&gt;java
-cp %AXIS2_CLASSPATH%;%AXIS2_CLASSPATH2% org.a</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
                font-family: Perpetua; color: purple; font-weight: \
                bold;">pache.axis2.wsdl.WSDL2C
-uri JobManagement.wsdl -d adb -u</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">Exception in thread \
                &quot;main&quot;
org.apache.axis2.wsdl.codegen.CodeGenerationException: Error pa</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">rsing \
WSDL</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.&lt;init&gt;(CodeGenerationEngine.</span></font></b></p>


<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">java:140)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.wsdl.WSDL2C.main(WSDL2C.java:28)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
                font-family: Perpetua; color: purple; font-weight: bold;">Caused
by: javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Parser SAX
Err</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
                font-family: Perpetua; color: purple; font-weight: bold;">or:
org.xml.sax.SAXException: Fatal Error:
URI=file:///C:/axis2c-1/samples/client/getMachi</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">nes/JobManagement.wsdl \
Line=3: The content of elements must consist of well-formed \
charact</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">er data or \
markup.</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenera</span></font></b></p>


<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">tionEngine.java:300)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.&lt;init&gt;(CodeGenerationEngine.</span></font></b></p>


<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">java:97)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
                bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
... 2 more</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
                font-family: Perpetua; color: purple; font-weight: bold;">Caused
by: org.xml.sax.SAXException: Fatal Error:
URI=file:///C:/axis2c-1/samples/client/g</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">etMachines/JobManagement.wsdl Line=3: The content of elements must consist of \
well-formed</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">character data or \
markup.</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.util.XMLUtils$ParserErrorHandler.fatalError(XMLUtils.java:381)</span></font></b></p>


<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher</span></font></b></p>


<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">.dispatch(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown \
Sour</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: bold;">ce)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.parsers.XML11Configuration.parse(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.parsers.XML11Configuration.parse(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.parsers.XMLParser.parse(Unknown Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.parsers.DOMParser.parse(Unknown Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown \
Source)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:196)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:241)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at \
org.apache.axis2.util.XMLUtils.newDocument(XMLUtils.java:224)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.readInTheWSDLFile(CodeGenera</span></font></b></p>


<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">tionEngine.java:294)</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
                bold;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
... 3 more.</span></font></b></p>

<p><b><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple; font-weight: \
bold;">&nbsp;</span></font></b></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">Can you tell me where exactly the problem \
is?</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">&nbsp;</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">Thanks and regards</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">Sushmita</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">&nbsp;</span></font></p>

<p><font color="purple" face="Perpetua" size="3"><span style="font-size: 12pt; \
font-family: Perpetua; color: purple;">&nbsp;</span></font></p>

</div>

</div>



<table><tbody><tr><td bgcolor="#ffffff"><font color="#000000">**************** \
CAUTION - Disclaimer *****************<br> 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. <br>
***INFOSYS******** End of Disclaimer ********INFOSYS***<br>
</font></td></tr></tbody></table><br>---------------------------------------------------------------------<br>To \
unsubscribe, e-mail: <a onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:axis-c-user-unsubscribe@ws.apache.org"> \
axis-c-user-unsubscribe@ws.apache.org</a><br>For additional commands, e-mail: <a \
onclick="return top.js.OpenExtLink(window,event,this)" \
href="mailto:axis-c-user-help@ws.apache.org">axis-c-user-help@ws.apache.org</a><br><br \
clear="all"> </blockquote></div><br>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic