RE: Axis2Java 1.2 to 1.3
Hi all, I found the note shown below in apache's web pages as a release note for axis2 1.3 - Name of the wsdl2java generated Exception classes changed I wonder is there any way to keep old generated Exception class names with 1.2 version. Thanks.. From: Serkan Sunel [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 4:31 PM To: axis-user@ws.apache.org Subject: Axis2Java 1.2 to 1.3 Hi all, I am getting compilation errors when moved my axis2java dependency from axis2java 1.2 to axis2java 1.3 My Question is : Axis2java 1.3 release is backward compatible with axis2java 1.2 ? Thanks.. Serkan Sunel
Axis2Java 1.2 to 1.3
Hi all, I am getting compilation errors when moved my axis2java dependency from axis2java 1.2 to axis2java 1.3 My Question is : Axis2java 1.3 release is backward compatible with axis2java 1.2 ? Thanks.. Serkan Sunel
Local part not allowed to be null
Hi all, I am getting below exception while running wsdl2java If i delete the anyURI (endUserIdentifier in interface.wsdl->reserveAmount operation) paramaters from the wsdl it works..Is its binding is wrong something missing ? Thanks.. Serkan Sunel java org.apache.axis2.wsdl.WSDL2Java -uri payment_reserve_amount_charging_service_2_1.wsdl -ns2p http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1 /local=com.telenity.canvas.platform.parlayx.ws.schema.payment.reserve_am ount_charging.v2_1.local -uw -o ../output/ -sd -s -ss -t -ssi -g -u -d jibx -Ebindingfile /home/serkans/downloads/binding.xml Retrieving document at 'parlayx_payment_reserve_amount_charging_interface_2_1.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/'. Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_common_faults_2_0.wsdl'. Retrieving schema at 'parlayx_payment_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.IllegalArgumentException: Local part not allowed to be null at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.IllegalArgumentException: Local part not allowed to be null at javax.xml.namespace.QName.(QName.java:85) at javax.xml.namespace.QName.(QName.java:70) at org.apache.axis2.jibx.CodeGenerationUtility.collectTopLevelComponents(Co deGenerationUtility.java:1057) at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility .java:310) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi on.java:74) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:177) parlayx_payment_reserve_amount_charging_interface_2_1.wsdl Description: parlayx_payment_reserve_amount_charging_interface_2_1.wsdl parlayx_payment_reserve_amount_charging_service_2_1.wsdl Description: parlayx_payment_reserve_amount_charging_service_2_1.wsdl http://www.csapi.org/schema/parlayx/common/v2_1"; > http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [jibx-users] wsdl2java & jibx codeGeneration Exception
Hi Dennis, You are right .I am attaching the other wsdl too now.. (Ps: I had to send files as rar archieve bec. Of quota) As you can see there is a xsd schema in the xxx_interface.wsdl also. I tried to export xsd:xshema part from the wsdl and run xsd2java again on it also..I am attaching it also named : bindings.xml ,also I am using -uw option for unwrapping... Can you help me about how generate that Abstract Mapping Definition ?? After that I combined all generated binding.xmls into one file and run the wsdl2java against to main wsdl Now I am getting another exception.. java org.apache.axis2.wsdl.WSDL2Java -uri /home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/par layx_payment_reserve_amount_charging_service_2_1.wsdl -ns2p http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1 /local=com.telenity.canvas.platform.parlayx.ws.schema.payment.reserve_am ount_charging.v2_1.local -sd -s -ss -t -ssi -g -u -d jibx -Ebindingfile /home/serkans/downloads/xsd2jibx/lib/bindings.xml -uw -o ../output/ Retrieving document at 'parlayx_payment_reserve_amount_charging_interface_2_1.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/'. Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_common_faults_2_0.wsdl'. Retrieving schema at 'parlayx_payment_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Cannot unwrap element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation: no abstract mapping definition found for type {http://www.csapi.org/schema/parlayx/common/v2_1}ChargingInformation (used by element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}charge) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: Cannot unwrap element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation: no abstract mapping definition found for type {http://www.csapi.org/schema/parlayx/common/v2_1}ChargingInformation (used by element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}charge) at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGeneration Utility.java:751) at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility .java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi on.java:74) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:177) ... 2 more -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Thursday, April 19, 2007 12:23 AM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: Re: [jibx-users] wsdl2java & jibx codeGeneration Exception Hi Serkan, You only attached the main WSDL, not the included one, so I can't see exactly what is going on. But the error message seems very direct and specific: "No mapping defined for element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation" According to this, your WSDL is referencing a chargeReservation element which is not included in your binding. It looks like you're not using unwrapping, so I'd expect that this element is referenced directly by one of the components of the WSDL. You need to define bindings for all the elements so referenced. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-
RE: [jibx-users] wsdl2java & jibx codeGeneration Exception
Hi Dennis, You are right .I am attaching the other wsdl too now.. As you can see there is a xsd schema in the xxx_interface.wsdl also. I tried to export xsd:xshema part from the wsdl and run xsd2java again on it also..I am attaching it also named : bindings.xml After that I combined all generated binding.xml into one file and run the wsdl2java against to main wsdl Now I am getting another exception.. java org.apache.axis2.wsdl.WSDL2Java -uri /home/serkans/products/platform/current/canvas/platform/parlayx/wsdl/par layx_payment_reserve_amount_charging_service_2_1.wsdl -ns2p http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1 /local=com.telenity.canvas.platform.parlayx.ws.schema.payment.reserve_am ount_charging.v2_1.local -sd -s -ss -t -ssi -g -u -d jibx -Ebindingfile /home/serkans/downloads/xsd2jibx/lib/bindings.xml -uw -o ../output/ Retrieving document at 'parlayx_payment_reserve_amount_charging_interface_2_1.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/'. Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_common_faults_2_0.wsdl'. Retrieving schema at 'parlayx_payment_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: Cannot unwrap element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation: no abstract mapping definition found for type {http://www.csapi.org/schema/parlayx/common/v2_1}ChargingInformation (used by element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}charge) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: Cannot unwrap element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation: no abstract mapping definition found for type {http://www.csapi.org/schema/parlayx/common/v2_1}ChargingInformation (used by element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}charge) at org.apache.axis2.jibx.CodeGenerationUtility.unwrapMessage(CodeGeneration Utility.java:751) at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility .java:365) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi on.java:74) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:177) ... 2 more -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis Sosnoski Sent: Thursday, April 19, 2007 12:23 AM To: axis-user@ws.apache.org Cc: [EMAIL PROTECTED] Subject: Re: [jibx-users] wsdl2java & jibx codeGeneration Exception Hi Serkan, You only attached the main WSDL, not the included one, so I can't see exactly what is going on. But the error message seems very direct and specific: "No mapping defined for element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation" According to this, your WSDL is referencing a chargeReservation element which is not included in your binding. It looks like you're not using unwrapping, so I'd expect that this element is referenced directly by one of the components of the WSDL. You need to define bindings for all the elements so referenced. - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Serkan Sunel wrote: > > Hi All, > > > > Wsdl2Java throws below exception.. > > > > Ant idea about it ? >
wsdl2java & jibx codeGeneration Exception
Hi All, Wsdl2Java throws below exception.. Ant idea about it ? Ps: I could generate code with wrapped style web service code with ADB databing also and had no problem necessary files are attached.. Thanks [EMAIL PROTECTED] bin] java org.apache.axis2.wsdl.WSDL2Java -uri ../wsdl/parlayx_payment_reserve_amount_charging_service_2_1.wsdl -ns2p http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_1 /local=com.telenity.canvas.platform.parlayx.ws.schema.payment.reserve_am ount_charging.v2_1.local -sd -s -ss -t -ssi -g -u -d jibx -Ebindingfile out.xml -o ../java Retrieving document at 'parlayx_payment_reserve_amount_charging_interface_2_1.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/bi n/../wsdl/'. Retrieving document at 'parlayx_common_faults_2_0.wsdl', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_common_faults_2_0.wsdl'. Retrieving schema at 'parlayx_payment_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/platform/current/canvas/platform/parlayx/ws dl/parlayx_payment_reserve_amount_charging_interface_2_1.wsdl'. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: No mapping defined for element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:224) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) Caused by: java.lang.RuntimeException: No mapping defined for element {http://www.csapi.org/schema/parlayx/payment/reserve_amount_charging/v2_ 1/local}chargeReservation at org.apache.axis2.jibx.CodeGenerationUtility.mapQName(CodeGenerationUtili ty.java:928) at org.apache.axis2.jibx.CodeGenerationUtility.mapMessage(CodeGenerationUti lity.java:914) at org.apache.axis2.jibx.CodeGenerationUtility.engage(CodeGenerationUtility .java:384) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.axis2.wsdl.codegen.extension.JiBXExtension.engage(JiBXExtensi on.java:74) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerati onEngine.java:177) ... 2 more http://www.csapi.org/schema/parlayx/payment/v2_1"; default="elements"/> http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> http://www.csapi.org/schema/parlayx/common/v2_1"; default="elements"/> parlayx_payment_types_2_1.xsd Description: parlayx_payment_types_2_1.xsd parlayx_common_types_2_1.xsd Description: parlayx_common_types_2_1.xsd parlayx_payment_reserve_amount_charging_service_2_1.wsdl Description: parlayx_payment_reserve_amount_charging_service_2_1.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WSDL2JAVA ERROR- No bindings found in wsdl
Hi, This wsdl gives us the common data types for operations and fault types..., http://www.csapi.org/schema/parlayx/common/v2_1"; package="com.mycompany.util.parlayx.common.v2_1"/> This was working.. After reading the AXIS2 pojo guide I see that I must use data types as POJO... The other wsdls (which are defining a web service has bindings and port types) will give me that data types if I generate code with wsdl2java Thanks everybody.. From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 8:32 PM To: axis-user@ws.apache.org Subject: Re: WSDL2JAVA ERROR- No bindings found in wsdl The Parley WSDL only defines messages. It does not define portTypes or bindings. WSDL2Java cannot generate code from this WSDL (neither Axis 1.x or Axis2 can do so). If you were able to generate code using Axis 1.x , then you must have had another WSDL that imported the Parley WSDL. Anne On 4/9/07, Serkan Sunel < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > wrote: Hi, That wsdl is working with old version of axis... I am able to generate java code with old version of axis (1.3)... We are implementing telco related operations with that... That wsdl is a standart in telecommication industry.. It comes from http://www.parlay.org/en/specifications/pxws.asp Anybody can help about this ? Must I define that types specified in xsds as pojo ? From: Krishnamoorthy J (HCL Financial Services) [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:22 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl This is the wsdl in the attachment which has only messages defined. Even with the Axis 1.x this will not work. http://www.csapi.org/wsdl/parlayx/common/v2_0/faults <http://www.csapi.org/wsdl/parlayx/common/v2_0/faults> " xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:parlayx_common_xsd="http://www.csapi.org/schema/parlayx/common/v2_ 1"> http://www.csapi.org/schema/parlayx/common/v2_1"; schemaLocation="parlayx_common_types_2_1.xsd"/> From: Serkan Sunel [mailto:] Sent: Monday, April 09, 2007 5:49 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl Hi, I have been using this wsdl with old version of AXIS .. I was able to generate java code with axis 1.X Project was working old axis .. I only wanted to upgr my dependency.. You sure that wsdl is wrong ? From: Krishnamoorthy J (HCL Financial Services) [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:09 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl Your WSDL is not complete. Check this tutorial http://www.w3schools.com/wsdl/default.asp From: Serkan Sunel [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 4:15 PM To: axis-user@ws.apache.org Subject: WSDL2JAVA ERROR- No bindings found in wsdl Hi all, I am a newbie for axis2 Can you tell me how can I generate java code for the wsdl and XSD files (attached).. I am gettimg the following errors.. [EMAIL PROTECTED] wsdl] java org.apache.axis2.wsdl.WSDL2Code -uri parlayx_common_faults_2_0.wsdl --serverside-interface Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/utilities/current/utilities/parlayx/wsdl/'. log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAxisServiceBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:112) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl; nested exception is: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:250) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:103) ... 1 more Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL 11ToAxisServiceBuilder.java:377) at org.apache.axis2 Thanks.. Serkan SUNEL DISCLAIMER:
NameSpacetoPackages
Hi all, How can I define multiple namespaceTOpackage mapping with AXIS2 AntCodegenTask. http://www.csapi.org/schema/parlayx/payment/v2_1=co m.mycompany.parlayx.schema.payment.v2_1" namespaceToPackages="http://www.csapi.org/wsdl/parlayx/common/v2_0/fault s=com.mycompany.parlayx.ws.wsdl.common.v2_0.faults" /> this does not work .. Thanks.
RE: WSDL2JAVA ERROR- No bindings found in wsdl
Hi, That wsdl is working with old version of axis... I am able to generate java code with old version of axis (1.3)... We are implementing telco related operations with that... That wsdl is a standart in telecommication industry.. It comes from http://www.parlay.org/en/specifications/pxws.asp Anybody can help about this ? Must I define that types specified in xsds as pojo ? From: Krishnamoorthy J (HCL Financial Services) [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:22 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl This is the wsdl in the attachment which has only messages defined. Even with the Axis 1.x this will not work. http://www.csapi.org/wsdl/parlayx/common/v2_0/faults"; xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:parlayx_common_xsd="http://www.csapi.org/schema/parlayx/common/v2_ 1"> http://www.csapi.org/schema/parlayx/common/v2_1"; schemaLocation="parlayx_common_types_2_1.xsd"/> From: Serkan Sunel [mailto:] Sent: Monday, April 09, 2007 5:49 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl Hi, I have been using this wsdl with old version of AXIS .. I was able to generate java code with axis 1.X Project was working old axis .. I only wanted to upgr my dependency.. You sure that wsdl is wrong ? From: Krishnamoorthy J (HCL Financial Services) [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:09 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl Your WSDL is not complete. Check this tutorial http://www.w3schools.com/wsdl/default.asp From: Serkan Sunel [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 4:15 PM To: axis-user@ws.apache.org Subject: WSDL2JAVA ERROR- No bindings found in wsdl Hi all, I am a newbie for axis2 Can you tell me how can I generate java code for the wsdl and XSD files (attached).. I am gettimg the following errors.. [EMAIL PROTECTED] wsdl] java org.apache.axis2.wsdl.WSDL2Code -uri parlayx_common_faults_2_0.wsdl --serverside-interface Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/utilities/current/utilities/parlayx/wsdl/'. log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAxisServiceBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:112) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl; nested exception is: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:250) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:103) ... 1 more Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL 11ToAxisServiceBuilder.java:377) at org.apache.axis2 Thanks.. Serkan SUNEL DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---
RE: WSDL2JAVA ERROR- No bindings found in wsdl
Hi, I have been using this wsdl with old version of AXIS .. I was able to generate java code with axis 1.X Project was working old axis .. I only wanted to upgr my dependency.. You sure that wsdl is wrong ? From: Krishnamoorthy J (HCL Financial Services) [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:09 PM To: axis-user@ws.apache.org Subject: RE: WSDL2JAVA ERROR- No bindings found in wsdl Your WSDL is not complete. Check this tutorial http://www.w3schools.com/wsdl/default.asp From: Serkan Sunel [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 4:15 PM To: axis-user@ws.apache.org Subject: WSDL2JAVA ERROR- No bindings found in wsdl Hi all, I am a newbie for axis2 Can you tell me how can I generate java code for the wsdl and XSD files (attached).. I am gettimg the following errors.. [EMAIL PROTECTED] wsdl] java org.apache.axis2.wsdl.WSDL2Code -uri parlayx_common_faults_2_0.wsdl --serverside-interface Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/utilities/current/utilities/parlayx/wsdl/'. log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAxisServiceBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:112) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl; nested exception is: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:250) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:103) ... 1 more Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL 11ToAxisServiceBuilder.java:377) at org.apache.axis2 Thanks.. Serkan SUNEL DISCLAIMER: --- The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any mail and attachments please check them for viruses and defect. ---
WSDL2JAVA ERROR- No bindings found in wsdl
Hi all, I am a newbie for axis2 Can you tell me how can I generate java code for the wsdl and XSD files (attached).. I am gettimg the following errors.. [EMAIL PROTECTED] wsdl] java org.apache.axis2.wsdl.WSDL2Code -uri parlayx_common_faults_2_0.wsdl --serverside-interface Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/utilities/current/utilities/parlayx/wsdl/'. log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAxisServiceBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:112) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl; nested exception is: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService( WSDL11ToAxisServiceBuilder.java:250) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGeneration Engine.java:103) ... 1 more Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL 11ToAxisServiceBuilder.java:377) at org.apache.axis2 Thanks.. Serkan SUNEL parlayx_payment_types_2_1.xsd Description: parlayx_payment_types_2_1.xsd parlayx_common_types_2_1.xsd Description: parlayx_common_types_2_1.xsd parlayx_common_faults_2_0.wsdl Description: parlayx_common_faults_2_0.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2JAVA Error: No bindings found in wsdl
Hi All, I am a newbie to AXIS2 I can not generate java for the attached wsdl and xsds.. I am getting the following error [EMAIL PROTECTED] wsdl] java org.apache.axis2.wsdl.WSDL2Code -uri parlayx_common_faults_2_0.wsdl --serverside-interface Retrieving schema at 'parlayx_common_types_2_1.xsd', relative to 'file:/home/serkans/products/utilities/current/utilities/parlayx/wsdl/'. log4j:WARN No appenders could be found for logger (org.apache.axis2.description.WSDL11ToAxisServiceBuilder). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:112) at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl; nested exception is: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:250) at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.(CodeGenerationEngine.java:103) ... 1 more Caused by: org.apache.axis2.AxisFault: No bindings found in wsdl at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.findBinding(WSDL11ToAxisServiceBuilder.java:377) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:200) ... 2 more Thanks Serkan SUNEL parlayx_common_faults_2_0.wsdl Description: parlayx_common_faults_2_0.wsdl parlayx_common_types_2_1.xsd Description: parlayx_common_types_2_1.xsd parlayx_payment_types_2_1.xsd Description: parlayx_payment_types_2_1.xsd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.io.IOException: while Running WSDL2Java...
I could solve problem... The problem was : imported schema's namespace and wsdl's namespace was different.. Thanks for your help,,, -Original Message- From: Christian Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 5:39 PM To: axis-user@ws.apache.org Subject: Re: java.io.IOException: while Running WSDL2Java... Hi, **you are using a type definition with the name ArrayOfAAObject (in your message definition or in your types definition) which is not reachable. Post your wsdl if you will not solve the problem yourself. Christian Serkan Sunel schrieb: > Anybody knows what causes to this exception while Running WSDL2Java ??? > > > > *java.io.IOException: Type* {http://www.someurl}ArrayOfAAObject *is > referenced but not defined.* > > at > org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTab le.java:652) > > at > org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532) > > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:5 06) > > at > org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:4 83) > > at > org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356) > > at java.lang.Thread.run(Thread.java:534) > > > > > > *From:* Xinjun Chen [mailto:[EMAIL PROTECTED] > *Sent:* Monday, December 05, 2005 8:31 AM > *To:* axis-user@ws.apache.org > *Subject:* Re: Can i call web service in side my web service > > > > Why not consider Axis client package? It provides dynamic invocation > interface. > > > > But I haven't figured out is how to use the client package to invoke > document style services. > > > > I am wondering whether Axis client package will support > interoperability between different styles of services by providing > client functions to probe the style of a remote service and the client > package to call the service according to the returned service style. > In this way, the client will no longer need to worry about the remote > service style. > > > > Regards, > > Xinjun > > > > On 12/2/05, *Guy Rixon* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: > > Yes, we (AstroGrid ) do that habitually. We put the stubs for service B > inside service A and the stubs for service C inside service B. > > It works well, provided that the stubs called inside a given service are > generated with the same Axis version as the axis jars in that > service. I.e., > it's OK to have, say, axis 1.1 in service A and call service B that's > running > Axis 1.3, but the stubs for B in A have to be compatible with axis 1.1. > > On Thu, 1 Dec 2005, Sreenivas Reddy wrote: > >> Yes You can call.. >> >> >> giribabu venugopal < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > wrote: Hi >> >> Can i call web service indise my web service? >> >> >> see i have to call (provider web service) inside my web > service .when provider call my web service(internall i have to call > their web service is it possible? >> >> >> what issues should i consider am using axis1.2.1? >> >> am calling.net <http://calling.net> web service? >> >> >> >> >> - >> Yahoo! Music Unlimited - Access over 1 million songs. Try it free. > > Guy Rixon [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > Institute of Astronomy Tel: +44-1223-337542 > Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523 > > > -- 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
java.io.IOException: while Running WSDL2Java...
Anybody knows what causes to this exception while Running WSDL2Java ??? java.io.IOException: Type {http://www.someurl}ArrayOfAAObject is referenced but not defined. at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:652) at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:532) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:506) at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:483) at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:356) at java.lang.Thread.run(Thread.java:534) From: Xinjun Chen [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 8:31 AM To: axis-user@ws.apache.org Subject: Re: Can i call web service in side my web service Why not consider Axis client package? It provides dynamic invocation interface. But I haven't figured out is how to use the client package to invoke document style services. I am wondering whether Axis client package will support interoperability between different styles of services by providing client functions to probe the style of a remote service and the client package to call the service according to the returned service style. In this way, the client will no longer need to worry about the remote service style. Regards, Xinjun On 12/2/05, Guy Rixon <[EMAIL PROTECTED]> wrote: Yes, we (AstroGrid ) do that habitually. We put the stubs for service B inside service A and the stubs for service C inside service B. It works well, provided that the stubs called inside a given service are generated with the same Axis version as the axis jars in that service. I.e., it's OK to have, say, axis 1.1 in service A and call service B that's running Axis 1.3, but the stubs for B in A have to be compatible with axis 1.1. On Thu, 1 Dec 2005, Sreenivas Reddy wrote: > Yes You can call.. > > > giribabu venugopal < [EMAIL PROTECTED]> wrote: Hi > > Can i call web service indise my web service? > > > see i have to call (provider web service) inside my web service .when provider call my web service(internall i have to call their web service is it possible? > > > what issues should i consider am using axis1.2.1? > > am calling.net web service? > > > > > - > Yahoo! Music Unlimited - Access over 1 million songs. Try it free. Guy Rixon [EMAIL PROTECTED] Institute of Astronomy Tel: +44-1223-337542 Madingley Road, Cambridge, UK, CB3 0HA Fax: +44-1223-337523
getDeserializer() - getSerializer()
Hi All, I am a newbie about web services.. Can anybody help me to find examples about Non-Primitive Parameter Classes in remote-interfaces and getDeserializer() - getSerializer() methods belongs to them .. ? Thanks..