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>(CodeGeneration Engine. 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(Cod eGenera tionEngine.java:300) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGeneration Engine. 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.ja va: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$FragmentContentDis patcher .dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno wn 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(Cod eGenera 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***
JobManagement.wsdl
Description: JobManagement.wsdl
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]