Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2=http://www.w3.org/ns/wsdl; xmlns=http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap=http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx=http://www.w3.org/ns/wsdl-extensions; xmlns:xs=http://www.w3.org/2001/XMLSchema; xmlns:whttp=http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1=http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2; wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern=http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap; wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/http; wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address=http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address=http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address=http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description package org.apache.axis2.axis2userguide; public class SampleService { public void doInOnly(){ return; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0 file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3 wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program Files\axis2-1.3\bin\wsdl2java.bat -uri C:\Projects\Axis2SampleService\SampleService.wsdl -p org.apache.axis2.axis2userguide -o C:\Projects\axis2_service_genned_from_wsdl -d adb -s -wv 2 -ss -sd -ssi Using AXIS2_HOME: C:\Program Files\axis2-1.3 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_02 Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element {http://www.w3.org/ns/wsdl } operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element {http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}service;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:SampleServiceSOAP11Binding in element { http://www.w3.org/ns/wsdl}endpoint;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:SampleServiceSOAP12Binding in element { http://www.w3.org/ns/wsdl}endpoint;.
Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Hi Jane, The generated WSDL is clearly invalid. I'll have a look and get back to you. Thanks, Keith. On Dec 28, 2007 6:54 PM, Jane Allen [EMAIL PROTECTED] wrote: Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2=http://www.w3.org/ns/wsdl; xmlns= http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx= http://www.w3.org/ns/wsdl-extensions; xmlns:xs= http://www.w3.org/2001/XMLSchema; xmlns:whttp= http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1=http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2; wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern= http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap; wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/http; wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description * package * org.apache.axis2.axis2userguide; * public * *class* SampleService { *public* *void* doInOnly(){ * return*; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3 wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program Files\axis2-1.3\bin\wsdl2java.bat -uri C:\Projects\Axis2SampleService\SampleService.wsdl -p org.apache.axis2.axis2userguide -o C:\Projects\axis2_service_genned_from_wsdl -d adb -s -wv 2 -ss -sd -ssi Using AXIS2_HOME: C:\Program Files\axis2-1.3 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_02 Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}bindinghttp://www.w3.org/ns/wsdl%7Dbinding . Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}bindinghttp://www.w3.org/ns/wsdl%7Dbinding . Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element {http://www.w3.org/ns/wsdl } operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element {http://www.w3.org/ns/wsdl}bindinghttp://www.w3.org/ns/wsdl%7Dbinding . Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not
Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Hi Jane, What are the arguments you used during java2WSDL? Thanks, Keith. On Dec 28, 2007 6:54 PM, Jane Allen [EMAIL PROTECTED] wrote: Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2=http://www.w3.org/ns/wsdl; xmlns= http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx= http://www.w3.org/ns/wsdl-extensions; xmlns:xs= http://www.w3.org/2001/XMLSchema; xmlns:whttp= http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1=http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2; wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern= http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap; wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/http; wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description * package * org.apache.axis2.axis2userguide; * public * *class* SampleService { *public* *void* doInOnly(){ * return*; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3 wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program Files\axis2-1.3\bin\wsdl2java.bat -uri C:\Projects\Axis2SampleService\SampleService.wsdl -p org.apache.axis2.axis2userguide -o C:\Projects\axis2_service_genned_from_wsdl -d adb -s -wv 2 -ss -sd -ssi Using AXIS2_HOME: C:\Program Files\axis2-1.3 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_02 Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}bindinghttp://www.w3.org/ns/wsdl%7Dbinding . Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}bindinghttp://www.w3.org/ns/wsdl%7Dbinding . Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element {http://www.w3.org/ns/wsdl } operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element {http://www.w3.org/ns/wsdl}bindinghttp://www.w3.org/ns/wsdl%7Dbinding . Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string
Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Java2WSDL.bat -cn SampleService -wv 2.0 - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, December 28, 2007 10:19:10 AM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, What are the arguments you used during java2WSDL? Thanks, Keith. On Dec 28, 2007 6:54 PM, Jane Allen [EMAIL PROTECTED] wrote: Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2= http://www.w3.org/ns/wsdl; xmlns=http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx=http://www.w3.org/ns/wsdl-extensions; xmlns:xs= http://www.w3.org/2001/XMLSchema; xmlns:whttp=http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1= http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2; wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern= http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/http; wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address=http://localhost:8080/axis2/services/SampleService wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description package org.apache.axis2.axis2userguide; public class SampleService { public void doInOnly(){ return; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0 file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3 wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program Files\axis2-1.3\bin\wsdl2java.bat -uri C:\Projects\Axis2SampleService\SampleService.wsdl -p org.apache.axis2.axis2userguide -o C:\Projects\axis2_service_genned_from_wsdl -d adb -s -wv 2 -ss -sd -ssi Using AXIS2_HOME: C:\Program Files\axis2-1.3 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_02 Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl } operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation.
Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Try adding the following namespace declaration: xmlns:null=http://ws.apache.org/axis2; Anne On Dec 28, 2007 10:37 AM, Jane Allen [EMAIL PROTECTED] wrote: Java2WSDL.bat -cn SampleService -wv 2.0 - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, December 28, 2007 10:19:10 AM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, What are the arguments you used during java2WSDL? Thanks, Keith. On Dec 28, 2007 6:54 PM, Jane Allen [EMAIL PROTECTED] wrote: Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2= http://www.w3.org/ns/wsdl; xmlns=http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx=http://www.w3.org/ns/wsdl-extensions; xmlns:xs= http://www.w3.org/2001/XMLSchema; xmlns:whttp=http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1= http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2; wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern= http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/http; wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address=http://localhost:8080/axis2/services/SampleService wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description packageorg.apache.axis2.axis2userguide; publicclass SampleService { public void doInOnly(){ return; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0 file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3 wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program Files\axis2-1.3\bin\wsdl2java.bat -uri C:\Projects\Axis2SampleService\SampleService.wsdl -p org.apache.axis2.axis2userguide -o C:\Projects\axis2_service_genned_from_wsdl -d adb -s -wv 2 -ss -sd -ssi Using AXIS2_HOME: C:\Program Files\axis2-1.3 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_02 Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:doInOnly in element { http://www.w3.org/ns/wsdl} operation. Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;. Woden[Error],0:0,WSDL505,Could not create a QName from the string
Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Hi Jane, Yes it will fix the problem cause it will qualify the elements correctly. I'm in the process of fixing it. It shouldt have used null as the namespace prefix in the first place. You can get this fix in tomorrows nightly build. Thanks, Keith. On Dec 28, 2007 9:47 PM, Jane Allen [EMAIL PROTECTED] wrote: Although I don't understand what the extra declaration does, it fixed the problem. Thank you for your help. - Original Message From: Anne Thomas Manes [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, December 28, 2007 11:04:18 AM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Try adding the following namespace declaration: xmlns:null=http://ws.apache.org/axis2; Anne On Dec 28, 2007 10:37 AM, Jane Allen [EMAIL PROTECTED] wrote: Java2WSDL.bat -cn SampleService -wv 2.0 - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, December 28, 2007 10:19:10 AM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, What are the arguments you used during java2WSDL? Thanks, Keith. On Dec 28, 2007 6:54 PM, Jane Allen [EMAIL PROTECTED] wrote: Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2= http://www.w3.org/ns/wsdl; xmlns=http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd; xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx=http://www.w3.org/ns/wsdl-extensions; xmlns:xs= http://www.w3.org/2001/XMLSchema; xmlns:whttp=http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1= http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2 wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern= http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/http wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address=http://localhost:8080/axis2/services/SampleService wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description packageorg.apache.axis2.axis2userguide; publicclass SampleService { public void doInOnly(){ return; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program
Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file.
Although I don't understand what the extra declaration does, it fixed the problem. Thank you for your help. - Original Message From: Anne Thomas Manes [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, December 28, 2007 11:04:18 AM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Try adding the following namespace declaration: xmlns:null=http://ws.apache.org/axis2; Anne On Dec 28, 2007 10:37 AM, Jane Allen [EMAIL PROTECTED] wrote: Java2WSDL.bat -cn SampleService -wv 2.0 - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Friday, December 28, 2007 10:19:10 AM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, What are the arguments you used during java2WSDL? Thanks, Keith. On Dec 28, 2007 6:54 PM, Jane Allen [EMAIL PROTECTED] wrote: Yes, the WSDL file was generated with axis2's java2WSDL.bat script. Below is the WSDL file. Below that is the original java class that the WSDL was created from. ?xml version=1.0 encoding=UTF-8? wsdl2:description xmlns:wsdl2= http://www.w3.org/ns/wsdl; xmlns=http://www.w3.org/ns/wsdl; xmlns:ns1=http://org.apache.axis2/xsd xmlns:wsaw=http://www.w3.org/2006/05/addressing/wsdl; xmlns:wsoap= http://www.w3.org/ns/wsdl/soap; xmlns:wsdlx=http://www.w3.org/ns/wsdl-extensions; xmlns:xs= http://www.w3.org/2001/XMLSchema; xmlns:whttp=http://www.w3.org/ns/wsdl/http; xmlns:axis2ns1= http://ws.apache.org/axis2; targetNamespace=http://ws.apache.org/axis2; wsdl2:types/ wsdl2:interface name=ServiceInterface wsdl2:operation name=doInOnly pattern= http://www.w3.org/ns/wsdl/in-only; wsdl2:input element=#none wsaw:Action=urn:doInOnly/ /wsdl2:operation /wsdl2:interface wsdl2:binding name=SampleServiceSOAP11Binding interface=null:ServiceInterface type=http://www.w3.org/ns/wsdl/soap wsoap:version=1.1 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceSOAP12Binding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/soap; wsoap:version=1.2 wsdl2:operation ref=null:doInOnly wsoap:action=urn:doInOnly/ /wsdl2:binding wsdl2:binding name=SampleServiceHttpBinding interface=null:ServiceInterface type= http://www.w3.org/ns/wsdl/http; wsdl2:operation ref=null:doInOnly whttp:location=SampleService/doInOnly/ /wsdl2:binding wsdl2:service name=SampleService interface=null:ServiceInterface wsdl2:endpoint name=SOAP11Endpoint binding=null:SampleServiceSOAP11Binding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a SOAP 11 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=SOAP12Endpoint binding=null:SampleServiceSOAP12Binding address=http://localhost:8080/axis2/services/SampleService wsdl2:documentationThis endpoint exposes a SOAP 12 binding over a HTTP/wsdl2:documentation /wsdl2:endpoint wsdl2:endpoint name=HTTPEndpoint binding=null:SampleServiceHttpBinding address= http://localhost:8080/axis2/services/SampleService; wsdl2:documentationThis endpoint exposes a HTTP binding over a HTTP/wsdl2:documentation /wsdl2:endpoint /wsdl2:service /wsdl2:description packageorg.apache.axis2.axis2userguide; publicclass SampleService { public void doInOnly(){ return; } - Original Message From: keith chapman [EMAIL PROTECTED] To: axis-user@ws.apache.org Sent: Thursday, December 27, 2007 9:14:27 PM Subject: Re: I cannot get the axis2 WSDL2java utility to generate code for a WSDL 2.0 wsdl file. Hi Jane, Could you post your WSDL 2.0 file please. It does look like the WSDL has some errors and hence the failure in code genaration. Was the WSDL 2.0 file obtained using Java2WSDL? Thanks, Keith. On Dec 28, 2007 5:06 AM, Jane Allen [EMAIL PROTECTED] wrote: I cannot get the axis2 WSDL2java utility to generate java code when the input is a WSDL version 2.0 wsdl file. It does generate code for the same java POJO if I use a WSDL 1.3 wsdl file. I used the axis2 java2WSDL utility to generate the wsdl files. I could use some help. Here's the error output: C:C:\Program Files\axis2-1.3\bin\wsdl2java.bat -uri C:\Projects\Axis2SampleService\SampleService.wsdl -p org.apache.axis2.axis2userguide -o C:\Projects\axis2_service_genned_from_wsdl -d adb -s -wv 2 -ss -sd -ssi Using AXIS2_HOME: C:\Program Files\axis2-1.3 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_02 Woden[Error],0:0,WSDL505,Could not create a QName from the string null:ServiceInterface in element { http://www.w3.org/ns/wsdl}binding;.
FW: java.lang.NoClassDefFoundError: org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl
Hi, I get following error .. I short what I am doing is calling another webservice(hosted on another axis engine) using client from within our axis engine. I am using Axis2 1.3 version. While debugging what I observed is as follows : 1) Primary request comes to our axis engine 2) Goes though our custom In Phase handler 3) Service class get invked which in turn calls webservice hosted on another axis engine( remote) using axis client as follows. ServiceClient client = new ServiceClient(); Options options = new Options(); options.setTo(new EndpointReference(config.getEndPointRef())); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setUseSeparateListener(false); options.setAction(config.getSoapAction()); client.setOptions(options); OMElement response = null; OMElement responseEnvelop = client.sendReceive(payload); 4) I see following error in log while sending a request to this remote webservice(hosted on another axis engine) As temporary fix I have disable addressing module which seemed to fix the problem. Question is : How to fix following error and also keep addressing module as we need that option for future ? Not sure why I am getting NoClassDefFoundError even though I check addressing.mar has SOAP11HeaderBlockImpl class. Thanks in advance for looking into this issue. gianttm.GiantTMServices - null : org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl com.ubs.pbct.giant.blade.BladeException: null : org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl at com.ubs.pbct.giant.blade.BladeException.createBladeException(BladeExce ption.java:114) at com.ubs.pbct.giant.blade.BladeException.createBladeException(BladeExce ption.java:100) at com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFacto ry.java:174) at com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFacto ry.java:75) at com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFacto ry.java:102) at com.ubs.pbct.giant.gianttm.GiantTMServices.getTMSecuritiesRequest(Gian tTMServices.java:316) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java :194) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic( RPCMessageReceiver.java:98) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusiness Logic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMes sageReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ est(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:12 0) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:27 5) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.j ava:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli cationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000(Application FilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilte rChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi lterChain.java:152) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa lve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa lve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja va:126) at
RE: java.lang.NoClassDefFoundError: org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl
Hi Tushar, Do you have axiom-impl-1.2.5.jar in your classpath. The SOAP11HeaderBlockImpl class is in this jar file. Thanks Raghu From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, December 28, 2007 11:47 AM To: axis-user@ws.apache.org Subject: FW: java.lang.NoClassDefFoundError: org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl Hi, I get following error .. I short what I am doing is calling another webservice(hosted on another axis engine) using client from within our axis engine. I am using Axis2 1.3 version. While debugging what I observed is as follows : 1) Primary request comes to our axis engine 2) Goes though our custom In Phase handler 3) Service class get invked which in turn calls webservice hosted on another axis engine( remote) using axis client as follows. ServiceClient client = new ServiceClient(); Options options = new Options(); options.setTo(new EndpointReference(config.getEndPointRef())); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); options.setUseSeparateListener(false); options.setAction(config.getSoapAction()); client.setOptions(options); OMElement response = null; OMElement responseEnvelop = client.sendReceive(payload); 4) I see following error in log while sending a request to this remote webservice(hosted on another axis engine) As temporary fix I have disable addressing module which seemed to fix the problem. Question is : How to fix following error and also keep addressing module as we need that option for future ? Not sure why I am getting NoClassDefFoundError even though I check addressing.mar has SOAP11HeaderBlockImpl class. Thanks in advance for looking into this issue. gianttm.GiantTMServices - null : org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl com.ubs.pbct.giant.blade.BladeException: null : org/apache/axiom/soap/impl/llom/soap11/SOAP11HeaderBlockImpl at com.ubs.pbct.giant.blade.BladeException.createBladeException(BladeExcept ion.java:114) at com.ubs.pbct.giant.blade.BladeException.createBladeException(BladeExcept ion.java:100) at com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFactory .java:174) at com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFactory .java:75) at com.ubs.pbct.giant.blade.GenericBladeFactory.process(GenericBladeFactory .java:102) at com.ubs.pbct.giant.gianttm.GiantTMServices.getTMSecuritiesRequest(GiantT MServices.java:316) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:1 94) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RP CMessageReceiver.java:98) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLo gic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessa geReceiver.java:96) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques t(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav a:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica tionFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFi lterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterC hain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt erChain.java:152) at