Re: WSDL2C tool
Hi, When you use -d none the operations are generated as axiom_node input and axiom_node output. If you want to generate c native types instead of that drop -d none part in the command (or just -d adb). And possibly add the -uw flag if you are using a nightly build. java org.apache.axis2.wsdl.WSDL2C -uri wsdl_file -ss -uw Thanks Dimuthu On Fri, Apr 3, 2009 at 5:10 PM, ramesh Gopal fatuzorin2...@yahoo.comwrote: Hello. I am having the following wsdl. ?xml version=1.0 encoding=UTF-8 ? wsdl:definitions targetNamespace=http://xxx/visa_valid; xmlns= http://schemas.xmlsoap.org/wsdl/; xmlns:tns=http://xxx/visa_valid; name=visa_valid xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:wsdl= http://schemas..xmlsoap.org/wsdl/; xmlns:wsdlsoap= http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd= http://www.w3.org/2001/XMLSchema; wsdl:types schema elementFormDefault=qualified targetNamespace=http:/xxx/visa_valid xmlns= http://www.w3.org/2001/XMLSchema; element name=visa_valid complexType sequence element name=in0 type=xsd:string / element name=in1 type=xsd:string / element name=in2 type=xsd:string / /sequence /complexType /element element name=visa_validresponse complexType sequence element name=out0 type=xsd:string / element name=out1 type=xsd:decimal / element name=out2 type=xsd:decimal / /sequence /complexType /element /schema /wsdl:types wsdl:message name=visa_validresp wsdl:part name=body element=tns:visa_validresponse / /wsdl:message wsdl:message name=visa_validreq wsdl:part name=body element=tns:visa_valid / /wsdl:message wsdl:portType name=visa_validporttype wsdl:operation name=visa_valid wsdl:input message=tns:visa_validreq name=visa_validrequest / wsdl:output message=tns:visa_validresp name=visa_validresponse / /wsdl:operation /wsdl:portType wsdl:binding name=visa_validsoapbinding type=tns:visa_validporttype wsdlsoap:binding style=document transport= http://schemas.xmlsoap.org/soap/http; / wsdl:operation name=visa_valid wsdlsoap:operation soapAction= / wsdl:input wsdlsoap:body use=literal / /wsdl:input wsdl:output wsdlsoap:body use=literal / /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=ws_visa wsdl:port binding=tns:visa_validsoapbinding name=visa_validservice wsdlsoap:address location=http://ip:port/axis2/services/ws_visa / /wsdl:port /wsdl:service /wsdl:definitions Now when I try to generate the client code using the command: java org.apache.axis2.wsdl.WSDL2C -uri wsdl_file -sd -d none it generates the client stub. However, there is a lot of difference between the WSDL2JAVA and WSDL2C tools. The WSDL2C generates the code taking a node as an input value. Then it becomes imperative that the user forms the xml request and sends it. But in WSDL2Java, it just needs a value for input (The value can be either a string / integer/ decimal etc value). Is this a expected behaviour with WSDL2C Does WSDL2C only cater to SOAP requests ? I dont see any code being generated for HTTP / MQ requests ? --- On Thu, 2/4/09, ramesh Gopal fatuzorin2...@yahoo.com wrote: From: ramesh Gopal fatuzorin2...@yahoo.com Subject: WSDL2C tool To: Apache AXIS C User List axis-c-user@ws.apache.org Date: Thursday, 2 April, 2009, 11:20 AM Hello, I have used WSDL2C (taking input as a wsdl file) to generate the a client code using the command mentioned below : java org.apache.axis2.wsdl.WSDL2C -uri wsdl_file -sd -d none Does the WSDL2C parse the wsdl to a point where it can get more information about what the input/output datatypes are ??? input/output message tags are (eg ... if max is an input tag does WSDL2C retrieve this information too) I have used a Web Services explorer tool on Eclipse, and saw that this gets all the specific information from a wsdl file. Its my understanding that expecting the user to know all this information from a wsdl (and that too from someone who is new to Web service world), how do we see all this happening ??? Rgds, Ramesh. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org
Re: WSDL2C tool
Hello. I am having the following wsdl. ?xml version=1.0 encoding=UTF-8 ? wsdl:definitions targetNamespace=http://xxx/visa_valid; xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:tns=http://xxx/visa_valid; name=visa_valid xmlns:apachesoap=http://xml.apache.org/xml-soap; xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/; xmlns:wsdl=http://schemas..xmlsoap.org/wsdl/; xmlns:wsdlsoap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; wsdl:types schema elementFormDefault=qualified targetNamespace=http:/xxx/visa_valid xmlns=http://www.w3.org/2001/XMLSchema; element name=visa_valid complexType sequence element name=in0 type=xsd:string / element name=in1 type=xsd:string / element name=in2 type=xsd:string / /sequence /complexType /element element name=visa_validresponse complexType sequence element name=out0 type=xsd:string / element name=out1 type=xsd:decimal / element name=out2 type=xsd:decimal / /sequence /complexType /element /schema /wsdl:types wsdl:message name=visa_validresp wsdl:part name=body element=tns:visa_validresponse / /wsdl:message wsdl:message name=visa_validreq wsdl:part name=body element=tns:visa_valid / /wsdl:message wsdl:portType name=visa_validporttype wsdl:operation name=visa_valid wsdl:input message=tns:visa_validreq name=visa_validrequest / wsdl:output message=tns:visa_validresp name=visa_validresponse / /wsdl:operation /wsdl:portType wsdl:binding name=visa_validsoapbinding type=tns:visa_validporttype wsdlsoap:binding style=document transport=http://schemas.xmlsoap.org/soap/http; / wsdl:operation name=visa_valid wsdlsoap:operation soapAction= / wsdl:input wsdlsoap:body use=literal / /wsdl:input wsdl:output wsdlsoap:body use=literal / /wsdl:output /wsdl:operation /wsdl:binding wsdl:service name=ws_visa wsdl:port binding=tns:visa_validsoapbinding name=visa_validservice wsdlsoap:address location=http://ip:port/axis2/services/ws_visa / /wsdl:port /wsdl:service /wsdl:definitions Now when I try to generate the client code using the command: java org.apache.axis2.wsdl.WSDL2C -uri wsdl_file -sd -d none it generates the client stub. However, there is a lot of difference between the WSDL2JAVA and WSDL2C tools. The WSDL2C generates the code taking a node as an input value. Then it becomes imperative that the user forms the xml request and sends it. But in WSDL2Java, it just needs a value for input (The value can be either a string / integer/ decimal etc value). Is this a expected behaviour with WSDL2C Does WSDL2C only cater to SOAP requests ? I dont see any code being generated for HTTP / MQ requests ? --- On Thu, 2/4/09, ramesh Gopal fatuzorin2...@yahoo.com wrote: From: ramesh Gopal fatuzorin2...@yahoo.com Subject: WSDL2C tool To: Apache AXIS C User List axis-c-user@ws.apache.org Date: Thursday, 2 April, 2009, 11:20 AM Hello, I have used WSDL2C (taking input as a wsdl file) to generate the a client code using the command mentioned below : java org.apache.axis2.wsdl.WSDL2C -uri wsdl_file -sd -d none Does the WSDL2C parse the wsdl to a point where it can get more information about what the input/output datatypes are ??? input/output message tags are (eg ... if max is an input tag does WSDL2C retrieve this information too) I have used a Web Services explorer tool on Eclipse, and saw that this gets all the specific information from a wsdl file. Its my understanding that expecting the user to know all this information from a wsdl (and that too from someone who is new to Web service world), how do we see all this happening ??? Rgds, Ramesh. Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/ Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
Where is WSDL2C Tool
I am looking for the WSDL2C Tool and I am not seeing it in the Java version of Axis2 1.4.1 and I am not seeing it anywhere in the download from this link: http://ws.apache.org/axis2/download/1_4_1/download.cgi Where might I find the WSDL2C Tool? Sam
Re: Where is WSDL2C Tool
Well, There is no script to load the wsdl2c tool in the axis2/java pack. But all the relevent classes are there. You can either use the script in the axis2/c disto (inside tools directory) or change the wsdl2java.sh/bat to use WSDL2C class instead of WSDL2Java class Thanks Dimuthu On Sat, Mar 28, 2009 at 7:06 PM, Sam Carleton scarle...@miltonstreet.comwrote: I am looking for the WSDL2C Tool and I am not seeing it in the Java version of Axis2 1.4.1 and I am not seeing it anywhere in the download from this link: http://ws.apache.org/axis2/download/1_4_1/download.cgi Where might I find the WSDL2C Tool? Sam -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org
Re: Where is WSDL2C Tool
Dimuthu, Thank you. I actually figured out exactly that about an hour ago and I just blogged about it so that if others have the same question, hopefully my experience will help them find it faster;) http://photoparata.blogspot.com/2009/03/where-did-wsdl2c-tool-go-in-axis2java.html Sam On Sat, Mar 28, 2009 at 12:50 PM, Dimuthu Gamage dimut...@gmail.com wrote: Well, There is no script to load the wsdl2c tool in the axis2/java pack. But all the relevent classes are there. You can either use the script in the axis2/c disto (inside tools directory) or change the wsdl2java.sh/bat to use WSDL2C class instead of WSDL2Java class Thanks Dimuthu On Sat, Mar 28, 2009 at 7:06 PM, Sam Carleton scarle...@miltonstreet.com wrote: I am looking for the WSDL2C Tool and I am not seeing it in the Java version of Axis2 1.4.1 and I am not seeing it anywhere in the download from this link: http://ws.apache.org/axis2/download/1_4_1/download.cgi Where might I find the WSDL2C Tool? Sam -- Thanks, Dimuthu Gamage http://www.dimuthu.org http://www.wso2.org
[AXIS2C] [WSDL2C] Tool usage problem.
Dear Axis users, I have an issue about creation ANSI C code from WSDL file with usage of WSDL2C.bat script on Windows machine. I have downloaded, unpacked and went through installation notes of: axis2-1.4-bin.zip axis2c-bin-1.4.0-win32.zip distribution-SNAPSHOT-bin.zip Unfortunately I can not make it work, still. For command: C:\axis2c-bin-1.4.0-win32\siri-1.0java org.apache.axis2.wsdl.WSDL2C -uri my_file.wsdl -ss -sd -d none I got a response: Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/WSDL2C Caused by: java.lang.ClassNotFoundException: org.apache.axis2.wsdl.WSDL2C at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) And for command: WSDL2C.bat -uri my_file.wsdl -ss -sd -d adb -u I got response: C:\axis2c-bin-1.4.0-win32echo off Unrecognized option: -uri Could not create the Java virtual machine. I did not find any helpful information on Internet. Any suggestions, please? Best regards, Daniel Gorodowienko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : [AXIS2C] [WSDL2C] Tool usage problem.
Hello, I believe that exception means that the CLASSPATH environment variable needs fixing. It should include a reference to the Axis2 directory that contains the jar files for WSDL2C. I had the same problems when beginning to use WSDL2C. Keep at it, it works well eventually! hth -Message d'origine- De : Daniel Gorodowienko [mailto:[EMAIL PROTECTED] Envoyé : lundi, juin 16, 2008 10:56 À : axis-c-user@ws.apache.org Objet : [AXIS2C] [WSDL2C] Tool usage problem. Dear Axis users, I have an issue about creation ANSI C code from WSDL file with usage of WSDL2C.bat script on Windows machine. I have downloaded, unpacked and went through installation notes of: axis2-1.4-bin.zip axis2c-bin-1.4.0-win32.zip distribution-SNAPSHOT-bin.zip Unfortunately I can not make it work, still. For command: C:\axis2c-bin-1.4.0-win32\siri-1.0java org.apache.axis2.wsdl.WSDL2C -uri my_file.wsdl -ss -sd -d none I got a response: Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/WSDL2C Caused by: java.lang.ClassNotFoundException: org.apache.axis2.wsdl.WSDL2C at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) And for command: WSDL2C.bat -uri my_file.wsdl -ss -sd -d adb -u I got response: C:\axis2c-bin-1.4.0-win32echo off Unrecognized option: -uri Could not create the Java virtual machine. I did not find any helpful information on Internet. Any suggestions, please? Best regards, Daniel Gorodowienko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Ce message est confidentiel, à l'usage exclusif du destinataire ci-dessus et son contenu ne représente en aucun cas un engagement de la part de AXA, sauf en cas de stipulation expresse et par écrit de la part de AXA. Toute publication, utilisation ou diffusion, même partielle, doit être autorisée préalablement. Si vous n'êtes pas destinataire de ce message, merci d'en avertir immédiatement l'expéditeur. This e-mail message is confidential, for the exclusive use of the addressee and its contents shall not constitute a commitment by AXA, except as otherwise specifically provided in writing by AXA. Any unauthorized disclosure, use or dissemination, either whole or partial, is prohibited. If you are not the intended recipient of the message, please notify the sender immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : [AXIS2C] [WSDL2C] Tool usage problem.
Hi Carl and axis mailing group, My CLASSPATH is equal to .;C:\Programmer\Java\jre1.6.0_05\lib\ext\QTJava.zip;C:\axis2c-bin-1.4.0-win32\lib and file containing org.apache.axis2.wsdl.WSDL2C class is axis2-codegen-1.4.jar, which is contained in lib directory. JAVA_HOME stands as C:\Programmer\Java\jdk1.6.0_05 System was rebooted. Problem exists and I don't know what is going on. Any other ideas, please? Best regards, Daniel Gorodowienko Lefrancois, Carl wrote: Hello, I believe that exception means that the CLASSPATH environment variable needs fixing. It should include a reference to the Axis2 directory that contains the jar files for WSDL2C. I had the same problems when beginning to use WSDL2C. Keep at it, it works well eventually! hth -Message d'origine- De : Daniel Gorodowienko [mailto:[EMAIL PROTECTED] Envoyé : lundi, juin 16, 2008 10:56 À : axis-c-user@ws.apache.org Objet : [AXIS2C] [WSDL2C] Tool usage problem. Dear Axis users, I have an issue about creation ANSI C code from WSDL file with usage of WSDL2C.bat script on Windows machine. I have downloaded, unpacked and went through installation notes of: axis2-1.4-bin.zip axis2c-bin-1.4.0-win32.zip distribution-SNAPSHOT-bin.zip Unfortunately I can not make it work, still. For command: C:\axis2c-bin-1.4.0-win32\siri-1.0java org.apache.axis2.wsdl.WSDL2C -uri my_file.wsdl -ss -sd -d none I got a response: Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis2/wsdl/WSDL2C Caused by: java.lang.ClassNotFoundException: org.apache.axis2.wsdl.WSDL2C at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) And for command: WSDL2C.bat -uri my_file.wsdl -ss -sd -d adb -u I got response: C:\axis2c-bin-1.4.0-win32echo off Unrecognized option: -uri Could not create the Java virtual machine. I did not find any helpful information on Internet. Any suggestions, please? Best regards, Daniel Gorodowienko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2C: WSDL2C tool generates nodes for group references
Fixed. Thanks for the quick comment Dimuthu On Nov 15, 2007 10:26 PM, Michael Mole [EMAIL PROTECTED] wrote: Ok, we're almost there. That seemed to do the trick for most of my stuff. I have one complex type that still does not get the adb_NoContent_is_particle in the header. Note that the function is defined in the source file. *-* complexType name=*NoContent* *-* annotation * * documentation*XML element with no content*/documentation * * /annotation * * /complexType Any thoughts on why this one wouldn't get the declaration in the header? Thanks again, Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710 *Dimuthu Gamage [EMAIL PROTECTED]* 11/14/2007 11:36 PM Please respond to Apache AXIS C User List axis-c-user@ws.apache.org To Apache AXIS C User List axis-c-user@ws.apache.org cc Subject Re: Axis2C: WSDL2C tool generates nodes for group references That was a mistake in template.. Fixed in the latest svn. Thanks Dimuthu On Nov 15, 2007 3:56 AM, Michael Mole [EMAIL PROTECTED][EMAIL PROTECTED] wrote: I grabbed a snapshot after this fix, and I'm getting a lot of warnings like this: ../adb_Foo.c(279) : warning C4013: 'adb_Bar_is_particle' undefined; assuming extern returning int I noticed that these *_is_particle functions are implemented in the .c files, but there is not declaration in the corresponding header file. Shouldn't it be in there? Thanks, Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710 *Michael Mole/Lexington/[EMAIL PROTECTED] 11/01/2007 09:30 AM Please respond to Apache AXIS C User List [EMAIL PROTECTED]axis-c-user@ws.apache.org To Apache AXIS C User List [EMAIL PROTECTED]axis-c-user@ws.apache.org cc Subject Re: Axis2C: WSDL2C tool generates nodes for group references Done. It is *AXIS2C-749*https://issues.apache.org/jira/browse/AXIS2C-749 . Thanks, Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710 *Dimuthu Gamage [EMAIL PROTECTED] [EMAIL PROTECTED]** 11/01/2007 04:08 AM Please respond to Apache AXIS C User List [EMAIL PROTECTED]axis-c-user@ws.apache.org To Apache AXIS C User List [EMAIL PROTECTED]axis-c-user@ws.apache.org cc Subject Re: Axis2C: WSDL2C tool generates nodes for group references Hi Michael, This is a Bug in the tool. Currently it is not tested with Groups. Can you please raise a JIRA on this. Thanks, Dimuthu On 10/31/07, *Michael Mole* [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using adb databindings with the WSDL2C tool. I have a wsdl that defines a group. I then reference this group in one of my complex types. The serialize method for this complex type is explicitly adding the group as if it is an element. Shouldn't it leave out the group node, and just add the contents of the group? I think this is a bug in the WSDL2C tool, but I just wanted to make sure that this is not the desired behavior. Please see (edited) snippets below: group name=TargetGroup sequence element name=target type=string /element /sequence /group complexType name=Request sequence group ref=WSX:TargetGroup/ /sequence /complexType The serialize method of Request is producing this (from tcpmon): Also, please note the method I ran is called update. soapenv:Envelope xmlns:soapenv=*http://schemas.xmlsoap.org/soap/envelope/ * http://schemas.xmlsoap.org/soap/envelope/ soapenv:Header/ soapenv:Body ns4:update xmlns:ns2=http://[REMOVED FROM THIS EMAIL] xmlns:ns4=http://[REMOVED FROM THIS EMAIL] ns2:TargetGroup ns2:targetthis_is_a_target/ns2:target /ns2:TargetGroup /ns4:update /soapenv:Body/soapenv:Envelope - Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710
Re: Axis2C: WSDL2C tool generates nodes for group references
That was a mistake in template.. Fixed in the latest svn. Thanks Dimuthu On Nov 15, 2007 3:56 AM, Michael Mole [EMAIL PROTECTED] wrote: I grabbed a snapshot after this fix, and I'm getting a lot of warnings like this: ../adb_Foo.c(279) : warning C4013: 'adb_Bar_is_particle' undefined; assuming extern returning int I noticed that these *_is_particle functions are implemented in the .c files, but there is not declaration in the corresponding header file. Shouldn't it be in there? Thanks, Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710 *Michael Mole/Lexington/[EMAIL PROTECTED] 11/01/2007 09:30 AM Please respond to Apache AXIS C User List axis-c-user@ws.apache.org To Apache AXIS C User List axis-c-user@ws.apache.org cc Subject Re: Axis2C: WSDL2C tool generates nodes for group references Done. It is *AXIS2C-749*https://issues.apache.org/jira/browse/AXIS2C-749 . Thanks, Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710 *Dimuthu Gamage [EMAIL PROTECTED]* 11/01/2007 04:08 AM Please respond to Apache AXIS C User List axis-c-user@ws.apache.org To Apache AXIS C User List axis-c-user@ws.apache.org cc Subject Re: Axis2C: WSDL2C tool generates nodes for group references Hi Michael, This is a Bug in the tool. Currently it is not tested with Groups. Can you please raise a JIRA on this. Thanks, Dimuthu On 10/31/07, *Michael Mole* [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using adb databindings with the WSDL2C tool. I have a wsdl that defines a group. I then reference this group in one of my complex types. The serialize method for this complex type is explicitly adding the group as if it is an element. Shouldn't it leave out the group node, and just add the contents of the group? I think this is a bug in the WSDL2C tool, but I just wanted to make sure that this is not the desired behavior. Please see (edited) snippets below: group name=TargetGroup sequence element name=target type=string /element /sequence /group complexType name=Request sequence group ref=WSX:TargetGroup/ /sequence /complexType The serialize method of Request is producing this (from tcpmon): Also, please note the method I ran is called update. soapenv:Envelope xmlns:soapenv=*http://schemas.xmlsoap.org/soap/envelope/ * http://schemas.xmlsoap.org/soap/envelope/ soapenv:Header/ soapenv:Body ns4:update xmlns:ns2=http://[REMOVED FROM THIS EMAIL] xmlns:ns4=http://[REMOVED FROM THIS EMAIL] ns2:TargetGroup ns2:targetthis_is_a_target/ns2:target /ns2:TargetGroup /ns4:update /soapenv:Body/soapenv:Envelope - Mike Michael J Molé Software Engineer IBM Software Group - Rational (781)676-2710
Regarding running of wsdl2c tool
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\getMachinesjava -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]
Re: [Axis2C] Regarding WSDL2C tool for Axis2C
Hi, To use the WSDL2C tool you have to include all the jars in the Axis2 lib directory if you download to your class path. Following shell script will do the all the tasks required. --- #!/bin/sh export AXIS2_HOME=/home/axis2java for f in $AXIS2_HOME/lib/*.jar do AXIS2_CLASSPATH=$AXIS2_CLASSPATH:$f done export AXIS2_CLASSPATH echo the classpath $AXIS2_CLASSPATH java -classpath $AXIS2_CLASSPATH org.apache.axis2.wsdl.WSDL2C $* --- You can use this script with required options to generate code. If your script is saved as WSDL2C.sh you can use following command to generate server side skeletons: sh WSDL2C.sh -ss -sd -d adb -u -f -o server You have to change the AXIS2_HOME variable to point your axis2 directory. If you build from the source point it to target directory. For the Windows platform use the attached batch script. Thanks Milinda On 4/26/07, Yogender Singh01 [EMAIL PROTECTED] wrote: Hi all, Which jar file is to be included in CLASSPATH for this tool? TIA yogender 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*** -- [EMAIL PROTECTED] WSO2, Inc: http://www.wso2.com Oxygenating the Web Service Platform http://www.milindalakmal.wordpress.com WSDL2C Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2C] Regarding WSDL2C tool for Axis2C
Hi all, Which jar file is to be included in CLASSPATH for this tool? TIA yogender 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***