Re: problem with wsdl2java in 1.5
It looks like your Java runtime environment (GCJ/GNU classpath?) is incomplete. I would recommend to install Sun's JRE for Linux. Andreas On Thu, Jun 25, 2009 at 02:12, Vadim Letitchevski wrote: > wsdl2java in axis2-1.5 did not work for me reporting exceptions like these: > > Exception in thread "main" java.lang.NoClassDefFoundError: > org.apache.axis2.description.AxisDescription > at java.lang.Class.initializeClass(libgcj.so.7rh) > at java.lang.Class.initializeClass(libgcj.so.7rh) > at > org.apache.axis2.description.WSDLToAxisServiceBuilder.(WSDLToAxisServiceBuilder.java:101) > at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.(WSDL11ToAxisServiceBuilder.java:215) > at > org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.(WSDL11ToAllAxisServicesBuilder.java:63) > at > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:144) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) > Caused by: java.lang.ClassNotFoundException: > java.util.concurrent.ConcurrentHashMap not found in > gnu.gcj.runtime.SystemClassLoader{urls=[file:NED615Soap.wsdl,file:/home/Ned/axis2-1.5/,file:./,file:/home/Ned/axis2-1.5//lib/activation-1.1.jar,file:/home/Ned/axis2-1.5//lib/axiom-api-1.2.8.jar,file:/home/Ned/axis2-1.5//lib/axiom-dom-1.2.8.jar,file:/home/Ned/axis2-1.5//lib/axiom-impl-1.2.8.jar,file:/home/Ned/axis2-1.5//lib/axis2-adb-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-adb-codegen-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-ant-plugin-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-clustering-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-codegen-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-corba-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-fastinfoset-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-java2wsdl-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-jaxbri-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-jaxws-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-jibx-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-json-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-kernel-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-metadata-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-mtompolicy-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-saaj-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-spring-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-transport-http-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-transport-local-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-xmlbeans-1.5.jar,file:/home/Ned/axis2-1.5//lib/bcel-5.1.jar,file:/home/Ned/axis2-1.5//lib/commons-codec-1.3.jar,file:/home/Ned/axis2-1.5//lib/commons-fileupload-1.2.jar,file:/home/Ned/axis2-1.5//lib/commons-httpclient-3.1.jar,file:/home/Ned/axis2-1.5//lib/commons-io-1.4.jar,file:/home/Ned/axis2-1.5//lib/commons-lang-2.3.jar,file:/home/Ned/axis2-1.5//lib/commons-logging-1.1.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-annotation_1.0_spec-1.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-jaxws_2.1_spec-1.0.jar,file:/home/Ned/axis2-1.5//lib/geronimo-saaj_1.3_spec-1.0.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-stax-api_1.0_spec-1.0.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,file:/home/Ned/axis2-1.5//lib/httpcore-4.0.jar,file:/home/Ned/axis2-1.5//lib/jalopy-1.5rc3.jar,file:/home/Ned/axis2-1.5//lib/jaxb-api-2.1.jar,file:/home/Ned/axis2-1.5//lib/jaxb-impl-2.1.7.jar,file:/home/Ned/axis2-1.5//lib/jaxb-xjc-2.1.7.jar,file:/home/Ned/axis2-1.5//lib/jaxen-1.1.1.jar,file:/home/Ned/axis2-1.5//lib/jettison-1.0-RC2.jar,file:/home/Ned/axis2-1.5//lib/jibx-bind-1.2.1.jar,file:/home/Ned/axis2-1.5//lib/jibx-run-1.2.1.jar,file:/home/Ned/axis2-1.5//lib/log4j-1.2.15.jar,file:/home/Ned/axis2-1.5//lib/mail-1.4.jar,file:/home/Ned/axis2-1.5//lib/mex-1.5.jar,file:/home/Ned/axis2-1.5//lib/neethi-2.0.4.jar,file:/home/Ned/axis2-1.5//lib/smack-3.0.4.jar,file:/home/Ned/axis2-1.5//lib/smackx-3.0.4.jar,file:/home/Ned/axis2-1.5//lib/soapmonitor-1.5.jar,file:/home/Ned/axis2-1.5//lib/woden-api-1.0M8.jar,file:/home/Ned/axis2-1.5//lib/woden-impl-dom-1.0M8.jar,file:/home/Ned/axis2-1.5//lib/wsdl4j-1.6.2.jar,file:/home/Ned/axis2-1.5//lib/wstx-asl-3.2.4.jar,file:/home/Ned/axis2-1.5//lib/xalan-2.7.0.jar,file:/home/Ned/axis2-1.5//lib/xercesImpl-2.6.2.jar,file:/home/Ned/axis2-1.5//lib/xml-apis-1.3.02.jar,file:/home/Ned/axis2-1.5//lib/xmlbeans-2.3.0.jar,file:/home/Ned/axis2-1.5//lib/xml-resolver-1.2.jar,file:/home/Ned/axis2-1.5//lib/XmlSchema-1.4.3.jar,file:./], > parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} > at java.net.URLClassLoader.findClass(libgcj.so.7rh) > at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh) > at java.lang.ClassLoader.loadClass(libgcj.so.7rh) > at java.lang.ClassLoader.loadClass(libgcj.so.7rh) > at java.lang.Class.forName(libgcj.so.7rh) > at java.lang.Class.initializeClass(libgcj.so.7rh) > ...7 more > QUESTIONS: > When I did all the same but with axis2-1.4 it seems to generate the code. I > don't know if it is working yet, but I
problem with wsdl2java in 1.5
wsdl2java in axis2-1.5 did not work for me reporting exceptions like these: Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.axis2.description.AxisDescription at java.lang.Class.initializeClass(libgcj.so.7rh) at java.lang.Class.initializeClass(libgcj.so.7rh) at org.apache.axis2.description.WSDLToAxisServiceBuilder.(WSDLToAxisServiceBuilder.java:101) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.(WSDL11ToAxisServiceBuilder.java:215) at org.apache.axis2.description.WSDL11ToAllAxisServicesBuilder.(WSDL11ToAllAxisServicesBuilder.java:63) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:144) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) Caused by: java.lang.ClassNotFoundException: java.util.concurrent.ConcurrentHashMap not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:NED615Soap.wsdl,file:/home/Ned/axis2-1.5/,file:./,file:/home/Ned/axis2-1.5//lib/activation-1.1.jar,file:/home/Ned/axis2-1.5//lib/axiom-api-1.2.8.jar,file:/home/Ned/axis2-1.5//lib/axiom-dom-1.2.8.jar,file:/home/Ned/axis2-1.5//lib/axiom-impl-1.2.8.jar,file:/home/Ned/axis2-1.5//lib/axis2-adb-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-adb-codegen-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-ant-plugin-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-clustering-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-codegen-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-corba-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-fastinfoset-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-java2wsdl-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-jaxbri-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-jaxws-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-jibx-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-json-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-kernel-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-metadata-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-mtompolicy-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-saaj-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-spring-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-transport-http-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-transport-local-1.5.jar,file:/home/Ned/axis2-1.5//lib/axis2-xmlbeans-1.5.jar,file:/home/Ned/axis2-1.5//lib/bcel-5.1.jar,file:/home/Ned/axis2-1.5//lib/commons-codec-1.3.jar,file:/home/Ned/axis2-1.5//lib/commons-fileupload-1.2.jar,file:/home/Ned/axis2-1.5//lib/commons-httpclient-3.1.jar,file:/home/Ned/axis2-1.5//lib/commons-io-1.4.jar,file:/home/Ned/axis2-1.5//lib/commons-lang-2.3.jar,file:/home/Ned/axis2-1.5//lib/commons-logging-1.1.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-annotation_1.0_spec-1.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-jaxws_2.1_spec-1.0.jar,file:/home/Ned/axis2-1.5//lib/geronimo-saaj_1.3_spec-1.0.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-stax-api_1.0_spec-1.0.1.jar,file:/home/Ned/axis2-1.5//lib/geronimo-ws-metadata_2.0_spec-1.1.2.jar,file:/home/Ned/axis2-1.5//lib/httpcore-4.0.jar,file:/home/Ned/axis2-1.5//lib/jalopy-1.5rc3.jar,file:/home/Ned/axis2-1.5//lib/jaxb-api-2.1.jar,file:/home/Ned/axis2-1.5//lib/jaxb-impl-2.1.7.jar,file:/home/Ned/axis2-1.5//lib/jaxb-xjc-2.1.7.jar,file:/home/Ned/axis2-1.5//lib/jaxen-1.1.1.jar,file:/home/Ned/axis2-1.5//lib/jettison-1.0-RC2.jar,file:/home/Ned/axis2-1.5//lib/jibx-bind-1.2.1.jar,file:/home/Ned/axis2-1.5//lib/jibx-run-1.2.1.jar,file:/home/Ned/axis2-1.5//lib/log4j-1.2.15.jar,file:/home/Ned/axis2-1.5//lib/mail-1.4.jar,file:/home/Ned/axis2-1.5//lib/mex-1.5.jar,file:/home/Ned/axis2-1.5//lib/neethi-2.0.4.jar,file:/home/Ned/axis2-1.5//lib/smack-3.0.4.jar,file:/home/Ned/axis2-1.5//lib/smackx-3.0.4.jar,file:/home/Ned/axis2-1.5//lib/soapmonitor-1.5.jar,file:/home/Ned/axis2-1.5//lib/woden-api-1.0M8.jar,file:/home/Ned/axis2-1.5//lib/woden-impl-dom-1.0M8.jar,file:/home/Ned/axis2-1.5//lib/wsdl4j-1.6.2.jar,file:/home/Ned/axis2-1.5//lib/wstx-asl-3.2.4.jar,file:/home/Ned/axis2-1.5//lib/xalan-2.7.0.jar,file:/home/Ned/axis2-1.5//lib/xercesImpl-2.6.2.jar,file:/home/Ned/axis2-1.5//lib/xml-apis-1.3.02.jar,file:/home/Ned/axis2-1.5//lib/xmlbeans-2.3.0.jar,file:/home/Ned/axis2-1.5//lib/xml-resolver-1.2.jar,file:/home/Ned/axis2-1.5//lib/XmlSchema-1.4.3.jar,file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}} at java.net.URLClassLoader.findClass(libgcj.so.7rh) at gnu.gcj.runtime.SystemClassLoader.findClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.ClassLoader.loadClass(libgcj.so.7rh) at java.lang.Class.forName(libgcj.so.7rh) at java.lang.Class.initializeClass(libgcj.so.7rh) ...7 more QUESTIONS: When I did all the same but with axis2-1.4 it seems to generate the code. I don't know if it is working yet, but I am wondering if I should just rely on axis2-1.4 or fix my problem for axis2-1.5? I am new to axis2 and java programming in whole. Unfortunately axis2c does not support SOAP 1.1 attachments (pure MIME) , only MTOM (am I right?). Can anyone tell m
Problem with wsdl2java
Hi all, I'm trying to consume a secure Axis Web service from a Globus Toolkit 4 service. I generated stubs with standard Axis' wsdl2java from a wsdl (glite-security-voms-admin-2.0.2.wsdl)where all wsdl:operation are described this way: http://schemas.xmlsoap.org/soap/encoding/"; namespace=" http://glite.org/wsdl/services/org.glite.security.voms.service.admin"; use="encoded"/> http://schemas.xmlsoap.org/soap/encoding/"; namespace=" http://glite.org/wsdl/services/org.glite.security.voms.service.admin"; use="encoded"/> http://schemas.xmlsoap.org/soap/encoding/"; name="VOMSException" namespace=" http://glite.org/wsdl/services/org.glite.security.voms.service.admin"; use="encoded"/> Let me underline the soapAction="". As far as I understood, in Globus Toolkit environment, stubs should be generated from a wsdl that "expect soapAction to be populated". So for test, I've tried to specify, in a given operation of that wsdl, the correct soapAction. Then I've re-generated the stubs and everything works! After this long explaination (sorry) my question is: could it be possible (using some option in wsdl2java command) to inject the correct soapAction at stub creation time, in order to have GT4 compliant stubs? Or could you suggest me another workaround? Thank you very much, Andrea
Re: [axis2] Problem with wsdl2java and xsd final attribute
Please create a jira. Amila. On Dec 20, 2007 3:13 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > I have had trouble with generating Java stubs if my type def. contains > the following: > > > > > > According to the XSD specification this should be legal: > http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#eleme > nt-complexType > > > It works, if the def. is changed to: > > > > > > > The generation triggers the following error: > > [ERROR] org.apache.ws.commons.schema.constants.Enum$EnumValueException: > Bad Enumeration value 'extension restriction' > java.lang.RuntimeException: > org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad > Enumeration value 'exten > sion restriction' >at > org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde > r.java:1886) >at > org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde > r.java:1902) >at > org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.ja > va:1627) >at > org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(Schema > Builder.java:175) >at > org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollectio > n.java:347) >at > org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLT > oAxisServiceBuilder.java:140) >at > org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleEl > ements(WSDL11ToAxisServiceBuilder.jav > a:2186) > > > According to a colleague this problem was introduced in axis2 and not > present in axis. > > Is this worth a JIRA or is the problem already reported? > > Regards > Morten > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
[axis2] Problem with wsdl2java and xsd final attribute
Hi, I have had trouble with generating Java stubs if my type def. contains the following: According to the XSD specification this should be legal: http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#eleme nt-complexType It works, if the def. is changed to: The generation triggers the following error: [ERROR] org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'extension restriction' java.lang.RuntimeException: org.apache.ws.commons.schema.constants.Enum$EnumValueException: Bad Enumeration value 'exten sion restriction' at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde r.java:1886) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilde r.java:1902) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.ja va:1627) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(Schema Builder.java:175) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollectio n.java:347) at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLT oAxisServiceBuilder.java:140) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleEl ements(WSDL11ToAxisServiceBuilder.jav a:2186) According to a colleague this problem was introduced in axis2 and not present in axis. Is this worth a JIRA or is the problem already reported? Regards Morten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
problem with WSDL2Java and nested complex types
I generated a Web Service Client with Eclipse 3.2 (which is using Axis 1.3) from a WSDL that contains nested complex types. I noticed that the generated Java code doesn't contain the innermost complex types. Is this some bug in WSDL2Java? Thanks. -- Dário Abdulrehman PGP Public Key: http://tinyurl.com/2pm9d7 --
Re: Problem with wsdl2java
neiroman neiroman wrote: Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED]:/usr/lib/axis2> wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri I believe I had the same problem when I started to use Axis2.1.2. I already posted a solution for this problem in a previous thread: http://marc.info/?l=axis-user&m=11787015586&w=2 You may take a look at it. Stephane Roy Alcatel-Lucent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with wsdl2java
try replacing the sh in the wsdl2java.sh file with a . or use this command sh axis2.sh org.apache.axis2.wsdl.WSDL2Java On 5/28/07, neiroman neiroman <[EMAIL PROTECTED]> wrote: My current shell is bash. As I see wsdl2java is written for sh and it always executes by sh interpretator. What will the difference, if I change my shell to zsh for example ? For trying another shell I must set up all JAVA enviroment variables 2007/5/28, Davanum Srinivas <[EMAIL PROTECTED]>: > > which shell are you using? can try please try any other alternate > shell(s)? > > thanks, > dims > > On 5/27/07, Genious Soul <[EMAIL PROTECTED]> wrote: > > > > > > > > > > - Original Message > > From: neiroman neiroman <[EMAIL PROTECTED]> > > To: axis-user@ws.apache.org > > Sent: Saturday, May 26, 2007 7:58:38 PM > > Subject: Problem with wsdl2java > > > > Hello, I use Axis2 1.2 > > When I try to run wsdl2java I've got the follovving error > > > > [EMAIL PROTECTED] :/usr/lib/axis2> wsdl2java.sh -uri tmp.wsdl -ss -sd > > Using AXIS2_HOME: /usr/lib/axis2 > > Using JAVA_HOME: /usr/java/jdk1.6.0 > > /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected > > Unrecognized option: -uri > > > > > > Don't be flakey. Get Yahoo! Mail for Mobile and > > always stay connected to friends. > > > -- > Davanum Srinivas :: http://davanum.wordpress.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Amila Suriarachchi, WSO2 Inc.
Re: Problem with wsdl2java
My current shell is bash. As I see wsdl2java is written for sh and it always executes by sh interpretator. What will the difference, if I change my shell to zsh for example ? For trying another shell I must set up all JAVA enviroment variables 2007/5/28, Davanum Srinivas <[EMAIL PROTECTED]>: which shell are you using? can try please try any other alternate shell(s)? thanks, dims On 5/27/07, Genious Soul <[EMAIL PROTECTED]> wrote: > > > > > - Original Message > From: neiroman neiroman <[EMAIL PROTECTED]> > To: axis-user@ws.apache.org > Sent: Saturday, May 26, 2007 7:58:38 PM > Subject: Problem with wsdl2java > > Hello, I use Axis2 1.2 > When I try to run wsdl2java I've got the follovving error > > [EMAIL PROTECTED]:/usr/lib/axis2> wsdl2java.sh -uri tmp.wsdl -ss -sd > Using AXIS2_HOME: /usr/lib/axis2 > Using JAVA_HOME: /usr/java/jdk1.6.0 > /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected > Unrecognized option: -uri > > > Don't be flakey. Get Yahoo! Mail for Mobile and > always stay connected to friends. -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with wsdl2java
which shell are you using? can try please try any other alternate shell(s)? thanks, dims On 5/27/07, Genious Soul <[EMAIL PROTECTED]> wrote: - Original Message From: neiroman neiroman <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Saturday, May 26, 2007 7:58:38 PM Subject: Problem with wsdl2java Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED]:/usr/lib/axis2> wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri Don't be flakey. Get Yahoo! Mail for Mobile and always stay connected to friends. -- Davanum Srinivas :: http://davanum.wordpress.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with wsdl2java
- Original Message From: neiroman neiroman <[EMAIL PROTECTED]> To: axis-user@ws.apache.org Sent: Saturday, May 26, 2007 7:58:38 PM Subject: Problem with wsdl2java Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED]:/usr/lib/axis2> wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri Sucker-punch spam with award-winning protection. Try the free Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/features_spam.html
Problem with wsdl2java
Hello, I use Axis2 1.2 When I try to run wsdl2java I've got the follovving error [EMAIL PROTECTED]:/usr/lib/axis2> wsdl2java.sh -uri tmp.wsdl -ss -sd Using AXIS2_HOME: /usr/lib/axis2 Using JAVA_HOME: /usr/java/jdk1.6.0 /usr/lib/axis2/bin/axis2.sh: line 38: [: !=: unary operator expected Unrecognized option: -uri
Re: problem with wsdl2java
Brendan- write a bean class which will manually encapsulates all of the items as attrbutes of your bean class Then implement the bean class in your wsdl as ComplexDatatype as in this example great example located here http://www-128.ibm.com/developerworks/webservices/library/ws-complex.htmlHTH, Martin This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have receivedthis communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Flood, Brendan (Brendan) ** CTR ** To: axis-user@ws.apache.org Sent: Wednesday, October 11, 2006 3:34 PM Subject: problem with wsdl2java I am having a problem with the generated code from wsdl2java if I have a complexType with one element and several attributes. Here is my complexType <complexType name="SomeData"> <sequence> <element name="data" type="string" maxOccurs="unbounded"/> sequence> <attribute name="attr1" type="boolean" default="false"/> <attribute name="attr2" type="boolean" default="true"/> <attribute name="attr3" type="boolean" default="true"/> complexType> What happens is no code is generated for the SomeData class and if I include the element of type SomeData in another type, the generated code shows up as String[] data, so I only get the element. If I add a 2nd element to the sequence (see below) then I get a SomeData class generated and this has the elements and attributes in it. I am using Axis 1.3 (I believe RC2, I downloaded it a while ago). <complexType name="SomeData"> <sequence> <element name="data" type="string" maxOccurs="unbounded"/> <element name="elem2" type="string"/> sequence> <attribute name="attr1" type="boolean" default="false"/> <attribute name="attr2" type="boolean" default="true"/> <attribute name="attr3" type="boolean" default="true"/> complexType> Let me know if this is a known problem that may have been fixed in a later release or if I am doing something wrong. Thanks, Brendan Flood,
problem with wsdl2java
I am having a problem with the generated code from wsdl2java if I have a complexType with one element and several attributes. Here is my complexTypesequence> complexType> What happens is no code is generated for the SomeData class and if I include the element of type SomeData in another type, the generated code shows up as String[] data, so I only get the element. If I add a 2nd element to the sequence (see below) then I get a SomeData class generated and this has the elements and attributes in it. I am using Axis 1.3 (I believe RC2, I downloaded it a while ago). sequence> complexType> Let me know if this is a known problem that may have been fixed in a later release or if I am doing something wrong. Thanks, Brendan Flood,
RE: problem with WSDL2Java generated code
never mind resolved: included resource directory generated by wsdl2java in the classpath From: Yadav, Yogendra (IT) Sent: Wednesday, October 04, 2006 3:40 PMTo: axis-user@ws.apache.orgSubject: RE: problem with WSDL2Java generated code I am getting the same error running client for Axis2SampleDocLitService WSDL as well. The client code looks like this: import org.apache.axis2.userguide.xsd.*;import org.apache.axis2.userguide.xsd.impl.*;import com.sample.*; import java.util.*; public class Client{ public static void main(java.lang.String args[]){ Axis2SampleDocLitServiceStub stub = null; try{ stub = new Axis2SampleDocLitServiceStub(null, "http://localhost:8080/axis2/services/Axis2SampleDocLitService"); echoString(stub); } catch(Exception e){ e.printStackTrace(); } } public static String echoString(Axis2SampleDocLitServiceStub stub){ try{ EchoStringParamDocument reqDoc00 = EchoStringParamDocument.Factory.newInstance(); reqDoc00.setEchoStringParam("echo"); EchoStringReturnDocument resDoc00 = stub.echoString(reqDoc00); return resDoc00.getEchoStringReturn(); } catch(Exception e){ e.printStackTrace(); } return null; } } The runtime exception is: C:\work\Axis2Sample>java -cp build\classes;C:\software\axis2\lib\axis2-kernel-SNAPSHOT.jar;C:\software\axis2\lib\xbean-2.2.0.jar;.;C:\software\axis2\lib\axiom-api-1.1.1.jar;C:\software\axis2\lib\stax-api-1.0.1.jar;C:\software\axis2\lib\wsdl4j-1.6.1.jar;C:\software\axis2\lib\XmlSchema-SNAPSHOT.jar;C:\software\axis2\lib\commons-logging-1.1.jar;C:\software\axis2\lib\neethi-SNAPSHOT.jar;C:\software\axis2\lib\stax-1.2.0.jar;C:\software\axis2\lib\axiom-impl-1.1.1.jar;C:\software\axis2\lib\xbean-2.2.0.jar; ClientException in thread "main" java.lang.ExceptionInInitializerError at org.apache.axis2.userguide.xsd.EchoStringParamDocument$Factory.newInstance(EchoStringParamDocument.java:50) at Client.echoString(Client.java:23) at Client.main(Client.java:15)Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s0C55B8F5926240E3576E190A4CD282A2.TypeSystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783) at org.apache.axis2.userguide.xsd.EchoStringParamDocument.(EchoStringParamDocument.java:19) ... 3 moreCaused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s0C55B8F5926240E3576E190A4CD282A2.TypeSystemHolder at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769) ... 4 more What am I doing wrong ? From: Yadav, Yogendra (IT) Sent: Wednesday, October 04, 2006 1:13 PMTo: axis-user@ws.apache.orgSubject: problem with WSDL2Java generated code I have generated code using wsdl2java. Then I wrote a Client.java to call web service, while excuting the client I get ClassNotFoundException in LoginDocument.java class which is generated by wsdl2java "schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder" C:\work\os-ag-onbank1\code>java -cp build\classes;C:\software\axis2\lib\axis2-kernel-SNAPSHOT.jar;C:\software\axis2\lib\xbean-2.2.0.jar;.;C:\software\axis2\lib\axiom-api-1.1.1.jar;C:\software\axis2\lib\stax-api-1.0.1.jar;C:\software\axis2\lib\wsdl4j-1.6.1.jar;C:\software\axis2\lib\XmlSchema-SNAPSHOT.jar;C:\software\axis2\lib\commons-logging-1.1.jar;C:\software\axis2\lib\neethi-SNAPSHOT.jar;C:\software\axis2\lib\stax-1.2.0.jar;C:\software\axis2\lib\axiom-impl-1.1.1.jar;C:\software\axis2\lib\xbean-2.2.0.jar; ClientException in thread "main" java.lang.ExceptionInInitializerError at com.example.www.onlinebanking.xsd.LoginDocument$Factory.newInstance(LoginDocument.java:112) at Client.login(Client.java:40) at Client.main(Client.java:17)Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783) at com.example.www.onlinebanking.xsd.LoginDocu
RE: problem with WSDL2Java generated code
I am getting the same error running client for Axis2SampleDocLitService WSDL as well. The client code looks like this: import org.apache.axis2.userguide.xsd.*;import org.apache.axis2.userguide.xsd.impl.*;import com.sample.*; import java.util.*; public class Client{ public static void main(java.lang.String args[]){ Axis2SampleDocLitServiceStub stub = null; try{ stub = new Axis2SampleDocLitServiceStub(null, "http://localhost:8080/axis2/services/Axis2SampleDocLitService"); echoString(stub); } catch(Exception e){ e.printStackTrace(); } } public static String echoString(Axis2SampleDocLitServiceStub stub){ try{ EchoStringParamDocument reqDoc00 = EchoStringParamDocument.Factory.newInstance(); reqDoc00.setEchoStringParam("echo"); EchoStringReturnDocument resDoc00 = stub.echoString(reqDoc00); return resDoc00.getEchoStringReturn(); } catch(Exception e){ e.printStackTrace(); } return null; } } The runtime exception is: C:\work\Axis2Sample>java -cp build\classes;C:\software\axis2\lib\axis2-kernel-SNAPSHOT.jar;C:\software\axis2\lib\xbean-2.2.0.jar;.;C:\software\axis2\lib\axiom-api-1.1.1.jar;C:\software\axis2\lib\stax-api-1.0.1.jar;C:\software\axis2\lib\wsdl4j-1.6.1.jar;C:\software\axis2\lib\XmlSchema-SNAPSHOT.jar;C:\software\axis2\lib\commons-logging-1.1.jar;C:\software\axis2\lib\neethi-SNAPSHOT.jar;C:\software\axis2\lib\stax-1.2.0.jar;C:\software\axis2\lib\axiom-impl-1.1.1.jar;C:\software\axis2\lib\xbean-2.2.0.jar; ClientException in thread "main" java.lang.ExceptionInInitializerError at org.apache.axis2.userguide.xsd.EchoStringParamDocument$Factory.newInstance(EchoStringParamDocument.java:50) at Client.echoString(Client.java:23) at Client.main(Client.java:15)Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s0C55B8F5926240E3576E190A4CD282A2.TypeSystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783) at org.apache.axis2.userguide.xsd.EchoStringParamDocument.(EchoStringParamDocument.java:19) ... 3 moreCaused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s0C55B8F5926240E3576E190A4CD282A2.TypeSystemHolder at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769) ... 4 more What am I doing wrong ? From: Yadav, Yogendra (IT) Sent: Wednesday, October 04, 2006 1:13 PMTo: axis-user@ws.apache.orgSubject: problem with WSDL2Java generated code I have generated code using wsdl2java. Then I wrote a Client.java to call web service, while excuting the client I get ClassNotFoundException in LoginDocument.java class which is generated by wsdl2java "schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder" C:\work\os-ag-onbank1\code>java -cp build\classes;C:\software\axis2\lib\axis2-kernel-SNAPSHOT.jar;C:\software\axis2\lib\xbean-2.2.0.jar;.;C:\software\axis2\lib\axiom-api-1.1.1.jar;C:\software\axis2\lib\stax-api-1.0.1.jar;C:\software\axis2\lib\wsdl4j-1.6.1.jar;C:\software\axis2\lib\XmlSchema-SNAPSHOT.jar;C:\software\axis2\lib\commons-logging-1.1.jar;C:\software\axis2\lib\neethi-SNAPSHOT.jar;C:\software\axis2\lib\stax-1.2.0.jar;C:\software\axis2\lib\axiom-impl-1.1.1.jar;C:\software\axis2\lib\xbean-2.2.0.jar; ClientException in thread "main" java.lang.ExceptionInInitializerError at com.example.www.onlinebanking.xsd.LoginDocument$Factory.newInstance(LoginDocument.java:112) at Client.login(Client.java:40) at Client.main(Client.java:17)Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783) at com.example.www.onlinebanking.xsd.LoginDocument.(LoginDocument.java:19) ... 3 moreCaused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security
problem with WSDL2Java generated code
I have generated code using wsdl2java. Then I wrote a Client.java to call web service, while excuting the client I get ClassNotFoundException in LoginDocument.java class which is generated by wsdl2java "schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder" C:\work\os-ag-onbank1\code>java -cp build\classes;C:\software\axis2\lib\axis2-kernel-SNAPSHOT.jar;C:\software\axis2\lib\xbean-2.2.0.jar;.;C:\software\axis2\lib\axiom-api-1.1.1.jar;C:\software\axis2\lib\stax-api-1.0.1.jar;C:\software\axis2\lib\wsdl4j-1.6.1.jar;C:\software\axis2\lib\XmlSchema-SNAPSHOT.jar;C:\software\axis2\lib\commons-logging-1.1.jar;C:\software\axis2\lib\neethi-SNAPSHOT.jar;C:\software\axis2\lib\stax-1.2.0.jar;C:\software\axis2\lib\axiom-impl-1.1.1.jar;C:\software\axis2\lib\xbean-2.2.0.jar; ClientException in thread "main" java.lang.ExceptionInInitializerError at com.example.www.onlinebanking.xsd.LoginDocument$Factory.newInstance(LoginDocument.java:112) at Client.login(Client.java:40) at Client.main(Client.java:17)Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder. Make sure the generated binary files are on the classpath. at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:783) at com.example.www.onlinebanking.xsd.LoginDocument.(LoginDocument.java:19) ... 3 moreCaused by: java.lang.ClassNotFoundException: schemaorg_apache_xmlbeans.system.s28FB12A440F78A928205C7E789D0196A.TypeSystemHolder at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:769) ... 4 more any help will be appreciated. thanx -yogen NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
Problem with WSDL2Java generation
Hello, When I try to generate Java code of a WSDL-file (using the eclipse plugin, newest release of axis2), I get an error message telling me "SchemaCompilationException: Unsupported content Complex Content !". Is there any known workaround (e.g. newer jar files of a nightly build) or have I to do a redesign of my schemas? best regards, Kai Huener - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with wsdl2java
Hi, I've ran into a seemingly simple problem that I can't find a solution to. It seems that if you create a WSDL with request and response message having the same element, axis's wsdl2java does not create java classes reflecting that behavior. Here's an example: If I use this example in my WSDL, then the getXYZ method's return type is void in the generated java class. But, if I replace either the request or response's element with XYZ2, then the code generated is perfectly fine. I need to have the soap request and response messages looking the same, so that is not a viable option. Is there a work around? I'm using Axis 1.4. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WSDL2Java Generated Code using JiBX bindings
Hi John, I'd suspect the problem here is in the use of a fault - this is something I hadn't tried out, and it looks like it's confusing things because of the special way Axis2 code generation handles the exception. I'm not even sure what's actually appropriate in this case - should your StandardError class actually be an exception, or should there be a generated exception class that has a StandardError field? In any case, you should enter this in Jira and attach the files. I'm hoping to get the code in place for unwrapping message elements using JiBX binding over the next week or so, and will try to get this fixed at the same time. Incidentally, you no longer need to supply default constructors in your data classes, you can instead use the add-constructors='true' attribute on your element (added as part of the JiBX 1.1 changes). Thanks for including "JiBX" in the subject line of your email. I don't try to follow all the Axis(1) messages on these lists, so unless the subject line mentions Axis2 or JiBX I'm probably not going to read it. - Dennis Dennis M. Sosnoski SOA, Web Services, and XML Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-296-6194 - Wellington, NZ +64-4-298-6117 John Grantham wrote: I wonder if anybody has encountered this issue, and might know if i am doing something wrong, or if this is a bug? I am using WSDL2Java, which works ok with regular ADB bindings. I want to use my own java value objects, however, and have been trying out JiBX. My jibx bindings test out ok, and the WSDL2Java code generation using jibx works somewhat, but it generates a MessageReceiverInOut class that has a compilation problem where it catches my custom exception and calls toOm(...). also, none of the /resources files are getting generated, including services.xml. intel mac Eclipse 3.2.0 java 1.5.0-06 jibx 1.1 Here are my schemas: http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/Dictionary"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/StudentKey"; xmlns:key="http://nextgen.ubc/schema/StudentKey"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://nextgen.ubc/schema/Dictionary"; schemaLocation="Dictionary.xsd"/> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/Address"; xmlns:addr="http://nextgen.ubc/schema/Address"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://nextgen.ubc/schema/Dictionary"; schemaLocation="Dictionary.xsd"/> maxOccurs="1"/> http://www.w3.org/2001/XMLSchema"; targetNamespace="http://nextgen.ubc/schema/StandardError"; xmlns:err="http://nextgen.ubc/schema/StandardError"; xmlns:dict="http://nextgen.ubc/schema/Dictionary";> http://nextgen.ubc/schema/Dictionary"; schemaLocation="Dictionary.xsd"/> -- This is my wsdl file: xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:key="http://nextgen.ubc/schema/StudentKey"; xmlns:addr="http://nextgen.ubc/schema/Address"; xmlns:err="http://nextgen.ubc/schema/StandardError"; xmlns:service="http://nextgen.ubc/wsdl/AddressRetrieval"; targetNamespace="http://nextgen.ubc/wsdl/AddressRetrieval";> http://nextgen.ubc/schema/StudentKey"; schemaLocation="../schemas/StudentKey.xsd"/> http://nextgen.ubc/schema/Address"; schemaLocation="../schemas/Address.xsd"/> http://nextgen.ubc/schema/StandardError"; schemaLocation="../schemas/StandardError.xsd"/> type="service:AddressRetrieval"> transport="http://schemas.xmlsoap.org/soap/http"; /> soapAction="http://nextgen.ubc/wsdl/operation/getAddress"; /> name="AddressRetrieval"> location="http://www4.students.ubc.ca:9180/axis2/services/AddressRetrievalService"; /> - These are my dto classes: package ubc.nextgen.dto; public class StudentKey { private String studentNumber = null; private StudentKey() {} // required by jibx compiler public StudentKey(Str
Re: Problem with WSDL2Java with HTTP POST
Use Axis2.On 5/31/06, Jose Manuel Cercós Moreno <[EMAIL PROTECTED]> wrote: Thanks Warren but i don't want a SOAP communication i want use HTTPPOST only without SOAP protocol. I think that Axis is limited to onlySOAP communitacion.I had been searching yesterday all the day in google and didn't find anything respect this and thanks for your english correct, englishisn't my first language. Bye.On 5/31/06, Warren Crossing <[EMAIL PROTECTED]> wrote: > What is the wsdl2java command look like exactley? I can't believe> google didn't "know" the answer ;-(>> I would expect the wsdl to look like..>> > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> namespace="urn: http://sencillo"/>> >> why does it not?>>> And it's not a "void" interface it's just "empty" or "with no members"> >>-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WSDL2Java with HTTP POST
Thanks Warren but i don't want a SOAP communication i want use HTTP POST only without SOAP protocol. I think that Axis is limited to only SOAP communitacion. I had been searching yesterday all the day in google and didn't find anything respect this and thanks for your english correct, english isn't my first language. Bye. On 5/31/06, Warren Crossing <[EMAIL PROTECTED]> wrote: What is the wsdl2java command look like exactley? I can't believe google didn't "know" the answer ;-( I would expect the wsdl to look like.. http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:http://sencillo"/> why does it not? And it's not a "void" interface it's just "empty" or "with no members" - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WSDL2Java with HTTP POST
What is the wsdl2java command look like exactley? I can't believe google didn't "know" the answer ;-( I would expect the wsdl to look like.. encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; namespace="urn:http://sencillo"/> why does it not? And it's not a "void" interface it's just "empty" or "with no members" � wrote: I'm trying to create a stub from .wsdl that i had created where the binding is POST and when i executed the wsdl2java command i get an void interface. Why? I had been to search in google and i haven't anything. Thanks in advance. WSDL http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://sencillo"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; targetNamespace="http://sencillo";> binding="tns:SencilloHttp_Post"> location="http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/> INTERFACE package sencillo; public interface WSDLTester extends javax.xml.rpc.Service { } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WSDL2Java with HTTP POST
I have changed the input element by and get the interface without methods. anyway, thanks Anne. WSDL http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://sencillo"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; targetNamespace="http://sencillo";> http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/> INTERFACE package sencillo; public interface WSDLTester extends javax.xml.rpc.Service { } On 5/30/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote: You don't have a message part called "Body", so this reference doesn't make sense: Anne On 5/30/06, Jose Manuel Cercós Moreno <[EMAIL PROTECTED]> wrote: > I'm trying to create a stub from .wsdl that i had created where the binding is POST and when i executed the wsdl2java command i get an void interface. Why? I had been to search in google and i haven't anything. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with WSDL2Java with HTTP POST
You don't have a message part called "Body", so this reference doesn't make sense:Anne On 5/30/06, Jose Manuel Cercós Moreno <[EMAIL PROTECTED]> wrote: I'm trying to create a stub from .wsdl that i had created where thebinding is POST and when i executed the wsdl2java command i get anvoid interface. Why? I had been to search in google and i haven'tanything. Thanks in advance.WSDLhttp://schemas.xmlsoap.org/wsdl/http/ "xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"xmlns:s="http://www.w3.org/2001/XMLSchema "xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"xmlns:tns="http://sencillo"xmlns:tm=" http://microsoft.com/wsdl/mime/textMatching/"xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"targetNamespace="http://sencillo"> location="http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/> INTERFACEpackage sencillo;public interface WSDLTester extends javax.xml.rpc.Service {} -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Problem with WSDL2Java with HTTP POST
I'm trying to create a stub from .wsdl that i had created where the binding is POST and when i executed the wsdl2java command i get an void interface. Why? I had been to search in google and i haven't anything. Thanks in advance. WSDL http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tns="http://sencillo"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; targetNamespace="http://sencillo";> http://192.168.153.100:8080/appProxyAmadeus/servlet/svlProxyAmadeus"/> INTERFACE package sencillo; public interface WSDLTester extends javax.xml.rpc.Service { } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with WSDL2Java for the DataHandler type using ?wsdl
Hi, I am using AXIS 1.2 over Tomcat 5.5.9 appserver with jdk1.5.0_03. I have deployed my web services in both Linux and Windows. I found the problem in only linux. The problem that I am facing is that the ?wsdl feature of the Axis is not generating the wsdl:types section correctly. I have defined a dataHandler element as followsAnd also I have added the xmlns:apachesoap in the deployment tag of my deploy.wsdd My web service in the deploy.wsdd looks like this. operation> The problem is that the ?wsdl that generates the wsdl for my service does not generate the correct wsdl:type. It some times have and some times does not have the type declaration in the generated wsdl because of which the stubs generation throws the following error. java.io.IOException: Type DataHandler is referenced but not defined. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol Table.java:663) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 ) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:516) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:493) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) at java.lang.Thread.run(Thread.java:534) Can some one tell me the reason for this? Can some body tell me is this not the correct group that could help me or that I have to send the mail to developers list also? I hope somebody might have got the above problem. Thanks and regards Subir S The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Problem with WSDL2Java for the DataHandler type using ?wsdl
Hi, I am using AXIS 1.2 over Tomcat 5.5.9 appserver with jdk1.5.0_03. I have deployed my web services in both Linux and Windows. I found the problem in only linux. The problem that I am facing is that the ?wsdl feature of the Axis is not generating the wsdl:types section correctly. I have defined a dataHandler element as followsAnd also I have added the xmlns:apachesoap in the deployment tag of my deploy.wsdd My web service in the deploy.wsdd looks like this. operation> The problem is that the ?wsdl that generates the wsdl for my service does not generate the correct wsdl:type. It some times have and some times does not have the type declaration in the generated wsdl because of which the stubs generation throws the following error. java.io.IOException: Type DataHandler is referenced but not defined. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(Symbol Table.java:663) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543 ) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:516) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.jav a:493) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360) at java.lang.Thread.run(Thread.java:534) Can some one tell me the reason for this? Thanks and regards Subir S The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: [Axis2] problem with WSDL2Java generated stubs and databinding
Nikola, This might be easier for you - it works for me using the .93 release. Options options = stub._getClientOptions(); options.setAction("http://smartSWANS/smartLogin";); Where the relevant section of the wsdl is: http://smartSWANS/smartLogin"; style="document" /> Or you could try the latest nightly: http://cvs.apache.org/dist/axis2/nightly/ HTH, iksrazal Em Terça 27 Dezembro 2005 14:14, o Nikola Zifra escreveu: > Hi iksrazal and Chintaka, > this is the part of the stub code generated by the 0.92 version of > the WSDL2Java tool: > >org.apache.axis2.clientapi.Call _call = new > org.apache.axis2.clientapi.Call(_serviceContext); > _call.setTransportInfo(this.senderTransport,this.listenerTransport,this.use >SeparateListener); _call.setDoREST(this.doRest); > > org.apache.axis2.context.MessageContext _messageContext = > getMessageContext(); _call.setTo(this.toEPR); > _call.setSoapAction("echoString"); > > And this is the part generated by 0.93 version of WSDL2Java tool: > > org.apache.axis2.client.Call _call = new > org.apache.axis2.client.Call(_serviceContext); > _call.setClientOptions(_clientOptions); > org.apache.axis2.context.MessageContext _messageContext = > getMessageContext(); if(_clientOptions.getSoapAction() == null) { > > } > >if(_clientOptions.getAction() == null) { > >} > > Notice that two different Call classes with different APIs are used in > 0.92 and 0.93 version of the generated stub.You can't add line > _call.setSoapAction("echoString") to the 0.93 version gen code because > the org.apache.axis2.client.Call used in the 0.93 does not have method > setSoapAction() . You can just use > _clientOptions.setSoapAction("echoString") but it seems that it does not > resolve my issue, because I am still getting the exception I've complained > about. > > When I modify the 0.93 version code like this i am still getting the > exception: > > rg.apache.axis2.client.Call _call = new > org.apache.axis2.client.Call(_serviceContext); > _call.setClientOptions(_clientOptions); > org.apache.axis2.context.MessageContext _messageContext = > getMessageContext(); if(_clientOptions.getSoapAction() == null) { > System.out.println("\n\n\n>>> SETTING SOAP ACTION"); > _clientOptions.setSoapAction("echoString"); > } > > org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Operation Not > found EPR is > http://localhost:8080/axis2/services/Axis2SampleDocLitPortType and WSA > Action = at > org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:7 >0) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) > at > org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) > > When I modify the 0.93 code in the following manner : > > org.apache.axis2.client.Call _call = new > org.apache.axis2.client.Call(_serviceContext); > _call.setClientOptions(_clientOptions); > > org.apache.axis2.context.MessageContext _messageContext = > getMessageContext(); _clientOptions.setSoapAction("echoString"); >if(_clientOptions.getSoapAction() == null) { > > > } > >if(_clientOptions.getAction() == null) { > >} > I got the the following exception: > > org.apache.axis2.AxisFault: null; nested exception is: > java.lang.NullPointerException > at org.apache.axis2.AxisFault.makeFault(AxisFault.java:190) > at > org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver.invokeB >usinessLogic(Axis2SampleDocLitPortTypeMessageReceiver.java:120) at > org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abstrac >tInOutSyncMessageReceiver.java:36) > Caused by: java.lang.NullPointerException > at > org.apache.axis2.userguide.databinding.Axis2SampleDocLitPortTypeechoStringD >atabindingSupporter.toOM(Axis2SampleDocLitPortTypeechoStringDatabindingSuppo >rter.java:34) at > org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver.invokeB >usinessLogic(Axis2SampleDocLitPortTypeMessageReceiver.java:106) ... 20 more > > Could you pls. be more specific what part of the generated code should I > modify and how? > > Regards, > Nikola > > > > > > > Eran Chinthaka <[EMAIL PROTECTED]> wrote: -BEGIN PGP > SIGNED MESSAGE- Hash: SHA1 > > Nikola, the iksrazal's method will fix the problem, BUT .. > I should accept that its a bug in 0.93 release, which is now fixed in > current SVN head. > > - -- Chinthaka > > iksrazal wrote: > > Nikola, > > > > > > > > Try following this thread - worked for me when I had a similiar > > > > problem: > > http://marc.theaimsgroup.com/?l=axis-user&m=
Re: [Axis2] problem with WSDL2Java generated stubs and databinding
Hi iksrazal and Chintaka, this is the part of the stub code generated by the 0.92 version of the WSDL2Java tool: org.apache.axis2.clientapi.Call _call = new org.apache.axis2.clientapi.Call(_serviceContext); _call.setTransportInfo(this.senderTransport,this.listenerTransport,this.useSeparateListener); _call.setDoREST(this.doRest); org.apache.axis2.context.MessageContext _messageContext = getMessageContext(); _call.setTo(this.toEPR); _call.setSoapAction("echoString");And this is the part generated by 0.93 version of WSDL2Java tool: org.apache.axis2.client.Call _call = new org.apache.axis2.client.Call(_serviceContext); _call.setClientOptions(_clientOptions); org.apache.axis2.context.MessageContext _messageContext = getMessageContext(); if(_clientOptions.getSoapAction() == null) { } if(_clientOptions.getAction() == null) { ; }Notice that two different Call classes with different APIs are used in 0.92 and 0.93 version of the generated stub.You can't add line _call.setSoapAction("echoString") to the 0.93 version gen code because the org.apache.axis2.client.Call used in the 0.93 does not have method setSoapAction() . You can just use _clientOptions.setSoapAction("echoString") but it seems that it does not resolve my issue, because I am still getting the exception I've complained about.When I modify the 0.93 version code like this i am still getting the exception:rg.apache.axis2.client.Call _call = new org.apache.axis2.client.Call(_serviceContext); _call.setClientOptions(_clientOptions); org.apache.axis2.context.MessageContext _messageContext = getMessageContext(); if(_clientOptions.getSoapAction() == null) { System.out.println("\n\n\n>>> SETTING SOAP ACTION"); _clientOptions.setSoapAction("echoString"); }org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Operation Not found EPR is http://localhost:8080/axis2/services/Axis2SampleDocLitPortType and WSA Action = ""> at org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) at org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137)When I modify the 0.93 code in the following manner : org.apache.axis2.client.Call _call = new org.apache.axis2.client.Call(_serviceContext); _call.setClientOptions(_clientOptions); org.apache.axis2.context.MessageContext _messageContext = getMessageContext(); _clientOptions.setSoapAction("echoString"); if(_clientOptions.getSoapAction() == null) { } if(_clientOptions.getAction() == null) { } I got the the following exception:org.apache.axis2.AxisFault: null; nested exception is: java.lang.NullPointerException at org.apache.axis2.AxisFault.makeFault(AxisFault.java:190) at org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver.invokeBusinessLogic(Axis2SampleDocLitPortTypeMessageReceiver.java:120) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:36) Caused by: java.lang.NullPointerException at org.apache.axis2.userguide.databinding.Axis2SampleDocLitPortTypeechoStringDatabindingSupporter.toOM(Axis2SampleDocLitPortTypeechoStringDatabindingSupporter.java:34) at org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver.invokeBusinessLogic(Axis2SampleDocLitPortTypeMessageReceiver.java:106) ... 20 moreCould you pls. be more specific what part of the generated code should I modify and how?Regards, Nikola Eran Chinthaka <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikola, the iksrazal's method will fix the problem, BUT .. I should accept that its a bug in 0.93 re lease, which is now fixed in current SVN head.- -- Chinthakaiksrazal wrote:> Nikola, > > Try following this thread - worked for me when I had a similiar > problem: > > http://marc.theaimsgroup.com/?l=axis-user&m=113474706726344&w=2 > > HTH, iksrazal > > Em Terça 27 Dezembro 2005 08:48, o Nikola Zifra escreveu: > >> Hi I am getting following exception when I try to run the code >> generated by WSDL2Java tool. >> >> - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut' - >> Build the OMElelment EnvelopeBy the StaxSOAPModelBuilder - >> Starting Process SOAP 1.1 message - Build the OMElelment HeaderBy >> the StaxSOAPModelBuild
Re: [Axis2] problem with WSDL2Java generated stubs and databinding
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nikola, the iksrazal's method will fix the problem, BUT .. I should accept that its a bug in 0.93 release, which is now fixed in current SVN head. - -- Chinthaka iksrazal wrote: > Nikola, > > Try following this thread - worked for me when I had a similiar > problem: > > http://marc.theaimsgroup.com/?l=axis-user&m=113474706726344&w=2 > > HTH, iksrazal > > Em Terça 27 Dezembro 2005 08:48, o Nikola Zifra escreveu: > >> Hi I am getting following exception when I try to run the code >> generated by WSDL2Java tool. >> >> - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut' - >> Build the OMElelment EnvelopeBy the StaxSOAPModelBuilder - >> Starting Process SOAP 1.1 message - Build the OMElelment HeaderBy >> the StaxSOAPModelBuilder - Build the OMElelment BodyBy the >> StaxSOAPModelBuilder - Invoking Handler 'AddressingInHandler' in >> Phase 'PreDispatch' org.apache.axis2.AxisFault: >> org.apache.axis2.AxisFault: Operation Not found EPR is >> http://localhost:8080/axis2/services/Axis2SampleDocLitPortType >> and WSA Action = "" >> org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:7 >> 0) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) at >> org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) >> at >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) >> at >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H >> TTPTransportUtils.java:211) at >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio >> nFilterChain.java:252) at >> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC >> hain.java:173) at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j >> ava:213) at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j >> ava:178) at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 >> 6) at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 >> 5) at >> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav >> a:107) at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) >> at >> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn >> ection(Http11Protocol.java:744) at >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja >> va:527) at >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW >> orkerThread.java:80) at >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >> va:684) at java.lang.Thread.run(Thread.java:595) ; nested >> exception is: java.lang.Exception: org.apache.axis2.AxisFault: >> Operation Not found EPR is >> http://localhost:8080/axis2/services/Axis2SampleDocLitPortType >> and WSA Action = "" >> org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:7 >> 0) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) at >> org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) >> at >> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) >> at >> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H >> TTPTransportUtils.java:211) at >> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) >> >> >> I have used the sample WSDL file Axis2SampleDocLit.wsdl from the >> Axis2 binary distribution (version 0.93). I am running the >> WSDL2Java using following Ant target: >> >> >> dir="output" /> >> classname="org.apache.axis2.wsdl.WSDL2Java" fork="true"> >> >> >> >> value="-sd"/> >> value="-p"/> >> >> >> todir="${build.classes}"> >> name="**/*schema*/**/*.class"/> >> >> >> >> >> >> The code generation executes without errors and following >> service.xml file is generated: >> >> >> name="Axis2SampleDocLitPortType"> >> name="ServiceClass">org.apache.axis2.userguide.Axis2SampleDocLitPortTypeSke >> leton >> >> class="org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver" >> /> >> name="echoStruct"> >> class="org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver" >> /> >> name="echoString"> >> class="org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver" >> /> >> >> The client code looks like this: >> >> try { //Create the stub by passing the AXIS_HOME and target EPR. >> //We pass null to the AXIS_HOME and hence the stub will use the >> current directory sa the AXIS_HOME Axis2SampleDocLitPort
Re: [Axis2] problem with WSDL2Java generated stubs and databinding
Nikola, Try following this thread - worked for me when I had a similiar problem: http://marc.theaimsgroup.com/?l=axis-user&m=113474706726344&w=2 HTH, iksrazal Em Terça 27 Dezembro 2005 08:48, o Nikola Zifra escreveu: > Hi I am getting following exception when I try to run the code generated by > WSDL2Java tool. > > - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut' > - Build the OMElelment EnvelopeBy the StaxSOAPModelBuilder > - Starting Process SOAP 1.1 message > - Build the OMElelment HeaderBy the StaxSOAPModelBuilder > - Build the OMElelment BodyBy the StaxSOAPModelBuilder > - Invoking Handler 'AddressingInHandler' in Phase 'PreDispatch' > org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Operation Not > found EPR is > http://localhost:8080/axis2/services/Axis2SampleDocLitPortType and WSA > Action = at > org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:7 >0) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) > at > org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H >TTPTransportUtils.java:211) at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio >nFilterChain.java:252) at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC >hain.java:173) at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j >ava:213) at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j >ava:178) at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:12 >6) at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:10 >5) at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav >a:107) at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) > at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) > at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn >ection(Http11Protocol.java:744) at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.ja >va:527) at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerW >orkerThread.java:80) at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja >va:684) at java.lang.Thread.run(Thread.java:595) > ; nested exception is: > java.lang.Exception: org.apache.axis2.AxisFault: Operation Not found > EPR is http://localhost:8080/axis2/services/Axis2SampleDocLitPortType and > WSA Action = at > org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:7 >0) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) > at > org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) at > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) at > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(H >TTPTransportUtils.java:211) at > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181) at > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > > > I have used the sample WSDL file Axis2SampleDocLit.wsdl from the Axis2 > binary distribution (version 0.93). I am running the WSDL2Java using > following Ant target: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > The code generation executes without errors and following service.xml > file is generated: > > > >name="ServiceClass">org.apache.axis2.userguide.Axis2SampleDocLitPortTypeSke >leton > >class="org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver" >/> > > >class="org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver" >/> > > >class="org.apache.axis2.userguide.Axis2SampleDocLitPortTypeMessageReceiver" >/> > > > The client code looks like this: > > try { >//Create the stub by passing the AXIS_HOME and target EPR. >//We pass null to the AXIS_HOME and hence the stub will use > the current directory sa the AXIS_HOME Axis2SampleDocLitPortTypeStub stub= > new Axis2SampleDocLitPortTypeStub(null, > "http://localhost:8080/axis2/services/Axis2SampleDocLitPortType";); //Create > the request document to be sent. > EchoStringParamDocument reqDoc= > EchoStringParamDocument.Factory.newInstance(); > reqDoc.setEchoStringParam("Axis2
[Axis2] problem with WSDL2Java generated stubs and databinding
Hi I am getting following exception when I try to run the code generated by WSDL2Java tool. - Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut' - Build the OMElelment EnvelopeBy the StaxSOAPModelBuilder - Starting Process SOAP 1.1 message - Build the OMElelment HeaderBy the StaxSOAPModelBuilder - Build the OMElelment BodyBy the StaxSOAPModelBuilder - Invoking Handler 'AddressingInHandler' in Phase 'PreDispatch' org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Operation Not found EPR is http://localhost:8080/axis2/services/Axis2SampleDocLitPortType and WSA Action = ""> at org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) at org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:211) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) ; nested exception is: java.lang.Exception: org.apache.axis2.AxisFault: Operation Not found EPR is http://localhost:8080/axis2/services/Axis2SampleDocLitPortType and WSA Action = ""> at org.apache.axis2.engine.DispatchingChecker.invoke(DispatchingChecker.java:70) at org.apache.axis2.engine.Phase.invoke(Phase.java:167) at org.apache.axis2.engine.AxisEngine.invokePhases(AxisEngine.java:443) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:137) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:211) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:181) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) I have us ed the sample WSDL file Axis2SampleDocLit.wsdl from the Axis2 binary distribution (version 0.93). I am running the WSDL2Java using following Ant target: The code generation executes without errors and following service.xml file is generated:org.apache.axis2.userguide.Axis2SampleDocLitPortTypeSkeleton The client code looks like this: try { //Create the stub by passing the AXIS_HOME and target EPR. //We pass null to the AXIS_HOME and hence the stub will use the current directory sa the AXIS_HOME Axis2SampleDocLitPortTypeStub stub= new Axis2SampleDocLitPortTypeStub(null, "http://localhost:8080/axis2/services/Axis2SampleDocLitPortType"); &nb sp; //Create the request document to be sent. EchoStringParamDocument reqDoc= EchoStringParamDocument.Factory.newInstance(); reqDoc.setEchoStringParam("Axis2 Echo"); //invokes the web service. EchoStringReturnDocument resDoc=stub.echoString(reqDoc); System.out.println(resDoc.getEchoStringReturn()); } catch (Exception e) { e.printStackTrace(); }Used sample WSDL is in the attachment. Regards, Nikola Yahoo! Shopping Find Great Deals on Holiday Gifts at Yahoo! Shopping Axis2SampleDocLit.wsdl Description: 2392153069-Axis2SampleDocLit.wsdl
Re: Problem with WSDL2Java?
Hello Christian! Thankyou very much for your swift response, and you are indeed correct! I added the 'wrapArrays="true"' to the ant task and everything generated as expected and now my messages are full of extra nilable elements and work just fine with no changes to my processing code at all! A direct upgrade - great! Thankyou Sir, and much respect to you. Regards, Tim PS: Maybe it would be worth setting 'wrapArrays="true"' by default, because in my case when set to false WSDL2Java actually created non-compilable code in one case, and in the others forced me to change alot of the message processing code? Or is my usage an exception to normal usage? Christian Schmitz wrote: Hi Tim, I think my problem discussed on the title "wsdl2java does not generate class-files for complexTypes" seems to be the same as yours. Try the --wrapArrays (-w) option when generating the sources. Regards, Christian Tim R J Langford schrieb: Hello All, I am upgrading some SOAP clients from Axis 1.2 to Axis 1.3 Final. One of them upgraded with little effort, just some changes to the code that processed the new bean convention style generate by WSDL2Java. The other project is proving very troublesome however. #1 : Firstly the schema beans appear NOT to generate properly. For example the following Schema section : type="s1:GuestCountType" /> name="RoomAmenity" type="s1:RoomAmenityPrefType" /> name="GuestCount" type="s1:GuestCountTypeGuestCount" /> But here WSDL2Java enerates a "RoomStayCandidateType" object that contains an array of "GuestCountTypeGuestCount" objects as a member. It does not generate a GuestCountType at all. This of course breaks the service. The old version of WSDL2Java generated all these classes as was to be expected, and only messed up setting the action type on one of the services (whihc was easilly fixed with a code post processor). I assume this is a bug. The schema seems valid to me. #2 : Another problem occured in the generated source where a constructor was created thats calls Object.super() as follows... public class VendorMessageType implements java.io.Serializable { private java.lang.String infoType; // attribute private org.opentravel.www.OTA._2003._05.FormattedTextSubSectionTypeParagraph[][] formattedTextType; // attribute public VendorMessageType() { } public VendorMessageType( org.opentravel.www.OTA._2003._05.FormattedTextSubSectionTypeParagraph[][] param1, java.lang.String Title, org.apache.axis.types.Language Language, java.lang.String infoType) { super( param1, Title); this.Language = Language; this.infoType = infoType; } ... etc ... } ??? When I searched the mailing list I noticed a few possibly similar questions to this, but no reponse I could act on. Is there any possibility of fixing these problems? If not is there any method of fixing/altering the generated source form the old version of Axis WSDL2Java to work with new 1.3 library? For example could I code to the correctly generated old 1.1 SOAP beans to get them to work with 1.3? Thanks very much for your help and time! This has become a real show stopper, and I got deadlines and a crazy boss! Tim
Re: Problem with WSDL2Java?
Hi Tim, I think my problem discussed on the title "wsdl2java does not generate class-files for complexTypes" seems to be the same as yours. Try the --wrapArrays (-w) option when generating the sources. Regards, Christian Tim R J Langford schrieb: Hello All, I am upgrading some SOAP clients from Axis 1.2 to Axis 1.3 Final. One of them upgraded with little effort, just some changes to the code that processed the new bean convention style generate by WSDL2Java. The other project is proving very troublesome however. #1 : Firstly the schema beans appear NOT to generate properly. For example the following Schema section : type="s1:GuestCountType" /> name="RoomAmenity" type="s1:RoomAmenityPrefType" /> name="GuestCount" type="s1:GuestCountTypeGuestCount" /> But here WSDL2Java enerates a "RoomStayCandidateType" object that contains an array of "GuestCountTypeGuestCount" objects as a member. It does not generate a GuestCountType at all. This of course breaks the service. The old version of WSDL2Java generated all these classes as was to be expected, and only messed up setting the action type on one of the services (whihc was easilly fixed with a code post processor). I assume this is a bug. The schema seems valid to me. #2 : Another problem occured in the generated source where a constructor was created thats calls Object.super() as follows... public class VendorMessageType implements java.io.Serializable { private java.lang.String infoType; // attribute private org.opentravel.www.OTA._2003._05.FormattedTextSubSectionTypeParagraph[][] formattedTextType; // attribute public VendorMessageType() { } public VendorMessageType( org.opentravel.www.OTA._2003._05.FormattedTextSubSectionTypeParagraph[][] param1, java.lang.String Title, org.apache.axis.types.Language Language, java.lang.String infoType) { super( param1, Title); this.Language = Language; this.infoType = infoType; } ... etc ... } ??? When I searched the mailing list I noticed a few possibly similar questions to this, but no reponse I could act on. Is there any possibility of fixing these problems? If not is there any method of fixing/altering the generated source form the old version of Axis WSDL2Java to work with new 1.3 library? For example could I code to the correctly generated old 1.1 SOAP beans to get them to work with 1.3? Thanks very much for your help and time! This has become a real show stopper, and I got deadlines and a crazy boss! Tim -- Besuchen Sie unsere kostenlose Veranstaltung "Effizientes Prozess- und IT-Management - Die Verbindung von ARIS mit IT-Infrastrukturen" am 24.11.2005 in Köln. Anmeldungen unter http://www.opitz-consulting.de OPITZ CONSULTING Gummersbach GmbH Christian Schmitz - Dipl.-Wirtschaftsinformatiker (FH) Kirchstr. 6 - D-51647 Gummersbach Telefon (Fax): +49 2261 6001-0 (-1139) - Mobil: +49 170 5545138 http://www.opitz-consulting.de
Problem with WSDL2Java?
Hello All, I am upgrading some SOAP clients from Axis 1.2 to Axis 1.3 Final. One of them upgraded with little effort, just some changes to the code that processed the new bean convention style generate by WSDL2Java. The other project is proving very troublesome however. #1 : Firstly the schema beans appear NOT to generate properly. For example the following Schema section : type="s1:GuestCountType" /> name="RoomAmenity" type="s1:RoomAmenityPrefType" /> name="GuestCount" type="s1:GuestCountTypeGuestCount" /> But here WSDL2Java enerates a "RoomStayCandidateType" object that contains an array of "GuestCountTypeGuestCount" objects as a member. It does not generate a GuestCountType at all. This of course breaks the service. The old version of WSDL2Java generated all these classes as was to be expected, and only messed up setting the action type on one of the services (whihc was easilly fixed with a code post processor). I assume this is a bug. The schema seems valid to me. #2 : Another problem occured in the generated source where a constructor was created thats calls Object.super() as follows... public class VendorMessageType implements java.io.Serializable { private java.lang.String infoType; // attribute private org.opentravel.www.OTA._2003._05.FormattedTextSubSectionTypeParagraph[][] formattedTextType; // attribute public VendorMessageType() { } public VendorMessageType( org.opentravel.www.OTA._2003._05.FormattedTextSubSectionTypeParagraph[][] param1, java.lang.String Title, org.apache.axis.types.Language Language, java.lang.String infoType) { super( param1, Title); this.Language = Language; this.infoType = infoType; } ... etc ... } ??? When I searched the mailing list I noticed a few possibly similar questions to this, but no reponse I could act on. Is there any possibility of fixing these problems? If not is there any method of fixing/altering the generated source form the old version of Axis WSDL2Java to work with new 1.3 library? For example could I code to the correctly generated old 1.1 SOAP beans to get them to work with 1.3? Thanks very much for your help and time! This has become a real show stopper, and I got deadlines and a crazy boss! Tim
problem with WSDL2Java using a schema import with "attributeGroup"
I'm having a problem with WSDL2Java generating the wrong java code for a wsdl that defines an array of (attribute, array) touples. When I inline the schema into the wsdl file, it works fine. When I export the schema to a separate xsd file, it seems to collapse everything into an array of arrays. (Dropping off the attribute and condensing it). I'm running axis 1.2.1 final with the "-v -a" arguments. When it runs correctly, it generates Record1.java and Record1MySet.java. When it is failing, it just generates Record1.java. I've attached 3 files. AttrGroupService.wsdl<--- has inlined schema and works as expected AttrGroupService2.wsdl <-- wsdl that imports a schema (doesn't work) AttrGroupService2.xsd Any ideas? thanks, Steven Guy NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. AttrGroupService2.xsd Description: AttrGroupService2.xsd AttrGroupService.wsdl Description: AttrGroupService.wsdl AttrGroupService2.wsdl Description: AttrGroupService2.wsdl
Re: Problem with WSDL2Java
What is the error?? WSDL2Java doesn't need tomcat to be running unless you have any references to wsdl imports or the wsdl itself, fetched from a URL served by tomcat, which is not the case in your example. - venkat On 8/22/05, Arun Bhandari <[EMAIL PROTECTED]> wrote: > Hi Venkat, > > Thanks for your help. I made the correction, but I am still facing an issue. > > Here is the command line that I am using: > > java -classpath > .\webapps\axis\WEB-INF\lib\axis.jar;.\webapps\axis\WEB-INF\lib\log4j-1.2.8.jar;.\webapps\axis\WEB-INF\lib\commons-discovery-0.2.jar;.\webapps\axis\WEB-INF\lib\commons-logging-1.0.4.jar;.\webapps\axis\WEB-INF\lib\wsdl4j-1.5.1.jar;.\webapps\axis\WEB-INF\lib\saaj.jar;.\webapps\axis\WEB-INF\lib\axis-ant.jar;.\webapps\axis\WEB-INF\lib\jaxrpc.jar;"C:\Sun\jwsdp-1.6\jaxp\lib\jaxp-api.jar";"C:\Sun\jwsdp-1.6\jwsdp-shared\lib\mail.jar";"C:\Sun\jwsdp-1.6\jwsdp-shared\lib\activation.jar" > org.apache.axis.wsdl.WSDL2Java SaleOrder.wsdl > > I am executing this command line from my container (tomcat) home folder. > Please let me know if you have an idea for this error. > > Thanks, > Arun. > > > On 8/22/05, Venkat Reddy <[EMAIL PROTECTED]> wrote: > > Your WSDL has a element in binding section which doesn't > > correspond to the one defined in portType section. After correcting > > this error, I could run WSDL2Java without any issues. Here is the > > corrected version of inside binding section of your WSDL. > > > > > > > namespace="http://FaultMessageNamespace"; name="SaleError"/> > > > > > > - venkat > > > > > > On 8/22/05, Arun Bhandari <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > > > I have attached my WSDL. Thanks for your response > > > > > > On 8/22/05, Venkat Reddy <[EMAIL PROTECTED]> wrote: > > > > please post your WSDL. > > > > > > > > - venkat > > > > > > > > On 8/22/05, Arun Bhandari <[EMAIL PROTECTED]> wrote: > > > > > I am using Apache Axis 1.2 with java jdk 1.5, Tomcat as my web > > > > > container. > > > > > I have ensured that all the Axis jars in my classpath. > > > > > > > > > > I am trying to generate a client stub using a WSDL, but I get the > > > > > following error: > > > > > > > > > > > > > > > java.lang.NullPointerException > > > > > at javax.wsdl.OperationType.equals(Unknown Source) > > > > > at > > > > > org.apache.axis.wsdl.toJava.JavaGeneratorFactory.constructSignat= > > > > > ures( > > > > > JavaGeneratorFactory.java:1393) > > > > > at > > > > > org.apache.axis.wsdl.toJava.JavaGeneratorFactory.generatorPass(J= > > > > > avaGe > > > > > neratorFactory.java:213) > > > > > at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:424) > > > > > at org.apache.axis.wsdl.gen.Parser.access$000(Parser.java:44) > > > > > at > > > > > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361= > > > > > ) > > > > > at java.lang.Thread.run(Unknown Source) > > > > > > > > > > Any help will be appreciated. > > > > > > > > > > -- > > > > > Thanks & Regards, > > > > > > > > > > Arun Bhandari > > > > > > > > > > > > > > > > > > -- > > > Thanks & Regards, > > > > > > Arun Bhandari > > > > > > > > > > > > > > -- > Thanks & Regards, > > Arun Bhandari >