should java2wsdl add wsaw:UsingAddressing element to wsdl?
Hi, I'm using axis2.14 java2wsdl batch to create a wsdl but it seem the output is missing wsaw:UsingAddressing element, does it mean it was generated wrongly? Does wsaw:UsingAddressing is mandatory element for using axis2 WS-Addressing module ? Thanks -- View this message in context: http://old.nabble.com/should-java2wsdl-add-wsaw%3AUsingAddressing-element-to-wsdl--tp27610162p27610162.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: axis2 maven plugin java2wsdl problem
Here's my pom.xml, if that might help: http://www.jroller.com/gmazza/entry/soap_client_with_axis2 Unfortunately it only works for 1.4.1 right now, as I'm having trouble getting the dependencies right for 1.5.1. Glen flyabovesun wrote: > > I always got error: > The plugin 'org.apache.maven.plugins:maven-java2wsdl-plugin' does not > exist > or no valid version could be found > with my plugin: > > org.apache.axis2.maven2 > axis2-java2wsdl-maven-plugin > 1.1 > > > com.chg.dataware.service.DatawareWebService > > ${basedir}/src/main/resources/dataware.wsdl > > > > > java2wsdl > > > > > I can find that jar file in repo1.maven.org/maven2 repository. > > > -- > Haipeng Du > Salt Lake City > > -- View this message in context: http://old.nabble.com/axis2-maven-plugin-java2wsdl-problem-tp26416388p26456419.html Sent from the Axis - User mailing list archive at Nabble.com.
axis2 maven plugin java2wsdl problem
I always got error: The plugin 'org.apache.maven.plugins:maven-java2wsdl-plugin' does not exist or no valid version could be found with my plugin: org.apache.axis2.maven2 axis2-java2wsdl-maven-plugin 1.1 com.chg.dataware.service.DatawareWebService ${basedir}/src/main/resources/dataware.wsdl java2wsdl I can find that jar file in repo1.maven.org/maven2 repository. -- Haipeng Du Salt Lake City
java2wsdl task: how could make enum works in java1.6
I got error for my enum with java2wsdl task The class com.XXX.DataSourceType does not contain a default constructor, which is a requirement for a bean class. The class cannot be converted into an xml schema type. An xml schema anyType will be used to define this class in the wsdl file. For java1.6 enum, I can not give any public constructor? what should I do? Haipeng Du Salt Lake City
Does axis2-java2wsdl-maven-plugin work (with Axis2 1.5)?
I am trying to get the java2wsdl Maven plugin to work with no luck. Does anyone have this plugin working? I am using Axis2 1.5 and when I run "mvn axis2-java2wsdl:java2wsdl" I get a NullPointerException. Can anyone offer some help? Thanks! dave from my pom.xml: org.apache.axis2 axis2-java2wsdl-maven-plugin java2wsdl com.full.class.path.Service
Re: Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment variable is not defined correctly
JAVA_HOME should point to the home directory of your JDK-installation: In my case, for example JAVA_HOME is set to C:\Programme\Java\jdk1.6.0_16
Re: Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment variable is not defined correctly
I also changed the JAVA_HOME as: C:\PROGRA~1\Rational\Common\java\jre\bin That did not work either. mule_user wrote: > > Under Control panel->System, I have defined JAVA_HOME as an environment > variable as: C:\PROGRA~1\Rational\Common\java\jre\bin\java.exe > > I have JAVA_HOME defined as shown below: > > C:\Download\Axis2\axis2-1.5\bin>echo %JAVA_HOME% > C:\PROGRA~1\Rational\Common\java\jre\bin\java.exe > > For testing purposes, I copied Driver.class in directory > C:\Download\Axis2\axis2-1.5\bin and I can successfully run the command > below: > > C:\Download\Axis2\axis2-1.5\bin>java Driver > hello > > When I try to run java2wsdl, I get the error below: > > C:\Download\Axis2\axis2-1.5\bin>java2wsdl -cp > %JAVA_HOME%;C:\Download\Axis2\axis > > The JAVA_HOME environment variable is not defined correctly > This environment variable is needed to run this program > NB: JAVA_HOME should point to a JDK/JRE > > I even set the classpath as below: > > C:\Download\Axis2\axis2-1.5\bin>set CLASSPATH=%CLASSPATH%;%JAVA_HOME% > > C:\Download\Axis2\axis2-1.5\bin>java Driver > hello > > However, running java2wsdl gives the same error as above stating JAVA_HOME > is not defined. > > I have defined AXIS2_HOME as an environment variable as: > C:\Download\Axis2\axis2-1.5\bin>echo %AXIS2_HOME% > C:\Download\Axis2\axis2-1.5\lib* > > > Please suggest what I need to do to have java2wsdl running and resolve the > problem stating JAVA_HOME not properly defined. > > > -- View this message in context: http://www.nabble.com/Axis2-%281.5%29---java2wsdl-throws-error-JAVA_HOME-environment-variable-is-not-defined-correctly-tp25671005p25671216.html Sent from the Axis - User mailing list archive at Nabble.com.
Axis2 (1.5) - java2wsdl throws error JAVA_HOME environment variable is not defined correctly
Under Control panel->System, I have defined JAVA_HOME as an environment variable as: C:\PROGRA~1\Rational\Common\java\jre\bin\java.exe I have JAVA_HOME defined as shown below: C:\Download\Axis2\axis2-1.5\bin>echo %JAVA_HOME% C:\PROGRA~1\Rational\Common\java\jre\bin\java.exe For testing purposes, I copied Driver.class in directory C:\Download\Axis2\axis2-1.5\bin and I can successfully run the command below: C:\Download\Axis2\axis2-1.5\bin>java Driver hello When I try to run java2wsdl, I get the error below: C:\Download\Axis2\axis2-1.5\bin>java2wsdl -cp %JAVA_HOME%;C:\Download\Axis2\axis The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run this program NB: JAVA_HOME should point to a JDK/JRE I even set the classpath as below: C:\Download\Axis2\axis2-1.5\bin>set CLASSPATH=%CLASSPATH%;%JAVA_HOME% C:\Download\Axis2\axis2-1.5\bin>java Driver hello However, running java2wsdl gives the same error as above stating JAVA_HOME is not defined. I have defined AXIS2_HOME as an environment variable as: C:\Download\Axis2\axis2-1.5\bin>echo %AXIS2_HOME% C:\Download\Axis2\axis2-1.5\lib* Please suggest what I need to do to have java2wsdl running and resolve the problem stating JAVA_HOME not properly defined. -- View this message in context: http://www.nabble.com/Axis2-%281.5%29---java2wsdl-throws-error-JAVA_HOME-environment-variable-is-not-defined-correctly-tp25671005p25671005.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Java2WSDL in Axis1.2 gives error java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
Hello, I am trying to integrate axis2 1.5 with jibx 1.2.1. I am not sure that is a problem with axis2 or jibx. I have the wsdl file and the schema with me. I have used the jibx org.jibx.schema.codegen.CodeGen to generate the objects & the binding file from the schema. I then enhance the classes using the jibx binding compiler way.Uptil now all fine. Then when am trying to generate server side skeletons using: org.apache.axis2.wsdl.WSDL2Java -uri Service.wsdl -d jibx -Ebindingfile binding.xml -s -ss -sd -scn ServiceName referring http://ws.apache.org/axis2/1_1_1/jibx/jibx-codegen-integration.html#wsdl I am getting errors. The stacktrace: Exception in thread "main" org.apache.axis2.wsdl.codegen..CodeGenerationException > java.lang.RuntimeException: No mapping defined for element > {http://sample/types }ElementName I am not sure where I went wrong, also I did find it being mentioned in quite a few number of places such as, http://marc.info/?l=axis-user&m=117028406518758&w=2 But I really did not find any solution, I think somebody has got some workaround for this. If I use jaxb instead of jibx, it works fine, there is not binding file in such a case, is the generated the binding file in correct, I am not really sure so hinting at different things. Can anyone help in some workaround. Regards, Anshuk
Java2WSDL in Axis1.2 gives error java.lang.NoClassDefFoundError: org/apache/axis/wsdlgen/Java2WSDL
I am using Axis 1.4 for Java2WSDL. It is a web project called MyAxis where the source file is in src folder and the generated .class is under WEB-INF/classes. However, for the sake of creating a WSDL, I copied .class file to the src folder of MyAxis project. AXIS_CLASSPATH is added as a user-variable as: C:\Axis\axis-1_4\lib\axis.jar;C:\Axis\axis-1_4\lib\commons-discovery-0.2.jar;C:\Axis\axis-1_4\lib\commons-logging-1.0.4.jar;C:\Axis\axis-1_4\lib\jaxrpc.jar;C:\Axis\axis-1_4\lib\saaj.jar;C:\Axis\axis-1_4\lib\log4j-1.2.8.jar;C:\Axis\axis-1_4\lib\wsdl4j-1.5.1.jar;C:\Axis\axis-1_4\lib\xml-apis.jar;C:\Axis\axis-1_4\lib\xercesImpl.jar I set the class path as: C:\Axis>set CLASSPATH=%AXIS_CLASSPATH%;C:\workspace-7.5\MyAxis\src C:\Axis>echo %CLASSPATH% C:\Axis\axis-1_4\lib\axis.jar;C:\Axis\axis-1_4\lib\commons-discovery-0.2.jar;C:\ Axis\axis-1_4\lib\commons-logging-1.0.4.jar;C:\Axis\axis-1_4\lib\jaxrpc.jar;C:\A xis\axis-1_4\lib\saaj.jar;C:\Axis\axis-1_4\lib\log4j-1.2.8.jar;C:\Axis\axis-1_4\ lib\wsdl4j-1.5.1.jar;C:\Axis\axis-1_4\lib\xml-apis.jar;C:\Axis\axis-1_4\lib\xerc esImpl.jar;C:\workspace-7.5\MyAxis\src Next, I run Java2WSDL as: C:\Axis>java -classpath %AXIS_CLASSPATH%;C:\workspace-7.5\MyAxis\src org.apache. axis.wsdlgen.Java2WSDL -o MySample.wsdl org.MyPojo I get error as: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdlg en/Java2WSDL What am I missing? -- View this message in context: http://www.nabble.com/Java2WSDL-in-Axis1.2-gives-error-java.lang.NoClassDefFoundError%3A-org-apache-axis-wsdlgen-Java2WSDL-tp25589017p25589017.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Java2Wsdl with DataHandler method
Hello Deepal, How do I send an array of Datahandlers from a client . I have a class which has a getter , setter for DataHandler [] arr - but in the wsdl the type is "xsd:anytype" Thanks AJ Deepal Jayasinghe wrote: > > Hi Brendan , > > We had that issue in Axis2 1.1.1 , but in Axis2 1.2 release we have > fixed that. > > Thanks > Deepal >> >> Hi, >> >> I’m trying to generate a WSDL from an existing Bean class that has a >> method that returns a complex response with a DataHandler element. >> From what I understand the Java2Wsdl utility should map this into a >> base64Binary type to handle an attachment. In my WSDL it’s generating >> a xsd:anytype without any attachment information. >> >> Is it possible to go from Java code to WSDL in this fashion? All the >> examples I’ve seen assume that you’re starting from a WSDL to generate >> both your server and client code from. >> >> Thanks in advance, >> >> Brendan >> > > > - > To unsubscribe, e-mail: axis-user-unsubscr...@ws.apache.org > For additional commands, e-mail: axis-user-h...@ws.apache.org > > > -- View this message in context: http://www.nabble.com/Java2Wsdl-with-DataHandler-method-tp10745046p25531254.html Sent from the Axis - User mailing list archive at Nabble.com.
Java2WSDL Java 5 enum
Has support for Java 5 Enums been added to Axis2's Maven Java2WSDL with the Axis2 1.5 release? Thanks, Greg
java2wsdl arrays not getting set unbounded
Hi there, Any help appreciated for the following problem :-) Each time I regenerate classes from an rpc-based wsdl any arrays defined are wrongly created. i.e., they have the private field and usual bean-style getter and setter but they're missing the following two additional steps: 1) elemField.setMaxOccursUnbounded(true); 2) array access helpers: get(int i) {..} set(int i, Type value) {...} Without these two things - I find that at runtime it only deserialises a single element of the array even though the array was passed with multiple elments (e.g., multiple invoice lines, only a single one received!). That same problem is described here and info is given on manually fixing it - but it's a maintenance nightmare! http://publib.boulder.ibm.com/infocenter/wpc/v5r3m2/index.jsp?topic=/com.ibm.wpc.doc/javaapi/japi6.html Is anyone aware of a WSDL2JavaFactory class helper (or have instructions on how to go about creating one) that will fix these things whenever the java is generated from the wsdl? It's really annoying having to (a) create them by hand and (b) revert part of the changes on each file that was updated every time there's an update. with regards, -- Lachlan Deck
java2wsdl: how to generate a struct type
I am trying to induce java2wsdl to produce a struct complex type for me, from the code included herein. It will produce a complex type but then produces the runtime error. java.lang.IllegalArgumentException: No mapping found The WSDL snippet produced for the included code is: . . . . http://my.test.com";> http://schemas.xmlsoap.org/soap/encoding/"/> type="impl:ArrayOfArrayOf_xsd_string"/> type="impl:ArrayOf_xsd_string"/> . . . Any help is greatly appreciated. I'm using Axis 1.2alpha. My class is: import java.io.Serializable; public class SystemComponentInfo implements Serializable { /** * */ private static final long serialVersionUID = 1L; /** * */ private String[] version = {"-1234","-5678","-9012","-3456"}; private String classname = "not set"; private String displayname = "not set"; private String[][] params = {{"not set"}}; public String[] getversion() { return version; } public String toString() { return version[0]+"."+version[1]+"."+version[2]+"_"+version[3]; } public void setversion(String[] version) { this.version = version; } public String getclassname() { return classname; } public void setclassname(String classname) { this.classname = classname; } public String getdisplayname() { return displayname; } public void setdisplayname(String displayname) { this.displayname = displayname; } public String[][] getparams() { return params; } public void setparams(String[][] params) { this.params = params; } }
Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate
please disregard previous questions -- somehow/somewhy things validate today, but not yesterday. thanks - Original Message - From: Amila Suriarachchi To: axis-user@ws.apache.org Sent: Monday, May 25, 2009 11:16 PM Subject: Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate there is an eclipse plug-in to validate wsdl files. thanks, Amila. On Tue, May 26, 2009 at 6:13 AM, emiddio-verizon wrote: my 1st java2wsdl generated wsdl -- from very simple interface; but i would like to make it validate and it does not -- what does it need? thanks -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate
orig question: my 1st java2wsdl generated wsdl -- from very simple interface; but i would like to make it validate and it does not -- what does it need? thanks 1st followup to 1st response: i am using netbeans 6.5.1; it has a validator -- and it indicates 5 errors, 2 warnings, --but i dont understand what the problem is; i want to know how to edit the wsdl to make it pass validation. attached file is the wsdl -- and was generated from java2wsdl -- with a minimal simple class for the service endpoint interface. thanks - Original Message - From: Amila Suriarachchi To: axis-user@ws.apache.org Sent: Monday, May 25, 2009 11:16 PM Subject: Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate there is an eclipse plug-in to validate wsdl files. thanks, Amila. On Tue, May 26, 2009 at 6:13 AM, emiddio-verizon wrote: my 1st java2wsdl generated wsdl -- from very simple interface; but i would like to make it validate and it does not -- what does it need? thanks -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/ wsTestSEI.wsdl Description: Binary data
Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate
i am using netbeans 6.5.1; it has a validator -- and it indicates 5 errors, 2 warnings, --but i dont understand what the problem is; i want to know how to edit the wsdl to make it validate. thanks - Original Message - From: Amila Suriarachchi To: axis-user@ws.apache.org Sent: Monday, May 25, 2009 11:16 PM Subject: Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate there is an eclipse plug-in to validate wsdl files. thanks, Amila. On Tue, May 26, 2009 at 6:13 AM, emiddio-verizon wrote: my 1st java2wsdl generated wsdl -- from very simple interface; but i would like to make it validate and it does not -- what does it need? thanks -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
Re: whats wrong with the java2wsdl wsdl file -- it will not vallidate
there is an eclipse plug-in to validate wsdl files. thanks, Amila. On Tue, May 26, 2009 at 6:13 AM, emiddio-verizon wrote: > my 1st java2wsdl generated wsdl -- from very simple interface; but i > would like to make it validate > and it does not -- what does it need? > > thanks > > -- Amila Suriarachchi WSO2 Inc. blog: http://amilachinthaka.blogspot.com/
whats wrong with the java2wsdl wsdl file -- it will not vallidate
my 1st java2wsdl generated wsdl -- from very simple interface; but i would like to make it validate and it does not -- what does it need? thanks wsTestSEI.wsdl Description: Binary data
java2wsdl parameter constraints
Hello all: I'm using eclipse with Axis2 1.4.1 for developing web services. I use to develop the java class first and then use the eclipse web service plugin for deploying the ws. By default, the eclipse plugin generates all web service parameters as optional (minOccurs=0) in the wsdl, but I need to customize each parameter constraints, for example, I need to define the parameter "a" as mandatory and not nullable. Is this possible via pojo annotations or something else? Thanks in advance: Carlos. -- View this message in context: http://www.nabble.com/java2wsdl-parameter-constraints-tp23252599p23252599.html Sent from the Axis - User mailing list archive at Nabble.com.
JAVA2WSDL -l option (HTTPS)
Hi, We are using apache axis 1.2 java2wsdl to generate the WSDL, when we specify java2wsdl -l http:\\url.. -> WSDL is getting genrated with the specified port address - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> http://url <http://url/> /> - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> http://url/ /> - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> http://url/ /> but when we give java2wsdl -l https:\\url -> WSDL is getting generated but it doesnt have the port address and location info. hence we run the WSDL2JAVA -> we are getting an error " ERROR parsing WSDL". Any help on this would be appreciable. Thanks, Kumar. Please do not print this email unless it is absolutely necessary. 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
JAVA2WSDL -l option (HTTPS)
Hi, We are using apache axis 1.2 java2wsdl to generate the WSDL, when we specify java2wsdl -l http:\\url.. -> WSDL is getting genrated with the specified port address - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> http://url /> - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> http://url/ /> - <https://10.116.194.30:9101/servlet_jsp/axis2/services/XCDAuth?wsdl#> http://url/ /> but when we give java2wsdl -l https:\\url -> WSDL is getting generated but it doesnt have the port address and location info. hence we run the WSDL2JAVA -> we are getting an error " ERROR parsing WSDL". Any help on this would be appreciable. Thanks, Kumar. Please do not print this email unless it is absolutely necessary. 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: Problem with Axis2 Code Generator - Java2WSDL
Hi Micheal, If what you are looking for is eclipse java2wsdl tool, WSO2 provides some SOA tools at [1] of which you can download and install or use the update site[2] to install. The SOA tools provided are a bit dependant on WSAS 3.0 though. But the effort might be worth since it includes many other very useful web service related tools for you to use. All based on axis2. Regards, Saminda. [1] http://wso2.org/downloads/tools/eclipse [2] http://tools.wso2.org/eclipse/ Michael wrote: Thanks Keith. I might give this a try. I prefer to try and get the Axis2 Codegen Wizard working as I will be able to work entirely in Eclipse, but any port in a storm :-). Mike - Original Message - *From:* keith chapman <mailto:keithgchap...@gmail.com> *To:* axis-user@ws.apache.org <mailto:axis-user@ws.apache.org> *Sent:* Sunday, March 15, 2009 8:20 AM *Subject:* Re: Problem with Axis2 Code Generator - Java2WSDL Hi Mike, Sorry I'm not familiar with the eclipse Plugin to answer your question. But here is a workaround. You can use this hosted Java2wsdl [1] tool at [2]. This GUI tool is part of the WSO2 Web Services Application Server [3] which is built on top of Axis2. Thanks, Keith. [1] https://tools.wso2.org/tools/carbon/java2wsdl/index.jsp?region=region5&item=java2wsdl_menu <https://tools.wso2.org/tools/carbon/java2wsdl/index.jsp?region=region5&item=java2wsdl_menu> [2] http://wso2.org/tools [3] http://wso2.org/projects/wsas On Thu, Mar 12, 2009 at 9:07 PM, Michael mailto:mtarullo...@optonline.net>> wrote: Not long ago I posted that I was was having a problem generating a WSDL file from my Java code using the Axis2 Code Generator. An answer was provided which seemed very promising. The answer that was given is provided below: This is a known bug. Here is the solution with explanation: http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/ Solution: Copy the jar for stax and for backport to the plug-in directory (\plug-ins\\lib) and then add the backport jar to the plugin.xml file. I went to the link provided and followed the directions provided there (these are summarized in the solution given above) and tried to generate a WSDL file from my code. I encountered the exact same problem. A description of that problem is provided below: When I launch the Axis2 Code Generator (v1.3.0) Wizard, enter the fully qualified class name and the location of the class file and then select the button to test loading the class I keep getting a java.lang.ClassNotFoundException. Can anyone provide any additional help? Thanks Mike -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.13/2001 - Release Date: 03/14/09 06:54:00
Re: Problem with Axis2 Code Generator - Java2WSDL
Thanks Keith. I might give this a try. I prefer to try and get the Axis2 Codegen Wizard working as I will be able to work entirely in Eclipse, but any port in a storm :-). Mike - Original Message - From: keith chapman To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 8:20 AM Subject: Re: Problem with Axis2 Code Generator - Java2WSDL Hi Mike, Sorry I'm not familiar with the eclipse Plugin to answer your question. But here is a workaround. You can use this hosted Java2wsdl [1] tool at [2]. This GUI tool is part of the WSO2 Web Services Application Server [3] which is built on top of Axis2. Thanks, Keith. [1] https://tools.wso2.org/tools/carbon/java2wsdl/index.jsp?region=region5&item=java2wsdl_menu [2] http://wso2.org/tools [3] http://wso2.org/projects/wsas On Thu, Mar 12, 2009 at 9:07 PM, Michael wrote: Not long ago I posted that I was was having a problem generating a WSDL file from my Java code using the Axis2 Code Generator. An answer was provided which seemed very promising. The answer that was given is provided below: This is a known bug. Here is the solution with explanation: http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/ Solution: Copy the jar for stax and for backport to the plug-in directory (\plug-ins\\lib) and then add the backport jar to the plugin.xml file. I went to the link provided and followed the directions provided there (these are summarized in the solution given above) and tried to generate a WSDL file from my code. I encountered the exact same problem. A description of that problem is provided below: When I launch the Axis2 Code Generator (v1.3.0) Wizard, enter the fully qualified class name and the location of the class file and then select the button to test loading the class I keep getting a java.lang.ClassNotFoundException. Can anyone provide any additional help? Thanks Mike -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org -- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.0.237 / Virus Database: 270.11.13/2001 - Release Date: 03/14/09 06:54:00
Re: Problem with Axis2 Code Generator - Java2WSDL
Hi Mike, Sorry I'm not familiar with the eclipse Plugin to answer your question. But here is a workaround. You can use this hosted Java2wsdl [1] tool at [2]. This GUI tool is part of the WSO2 Web Services Application Server [3] which is built on top of Axis2. Thanks, Keith. [1] https://tools.wso2.org/tools/carbon/java2wsdl/index.jsp?region=region5&item=java2wsdl_menu [2] http://wso2.org/tools [3] http://wso2.org/projects/wsas On Thu, Mar 12, 2009 at 9:07 PM, Michael wrote: > Not long ago I posted that I was was having a problem generating a WSDL > file from my Java code using the Axis2 Code Generator. > > An answer was provided which seemed very promising. The answer that was > given is provided below: > > This is a known bug. Here is the solution with explanation: > > > http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/ > Solution: Copy the jar for stax and for backport to the plug-in directory > (\plug-ins\\lib) and then add the backport > jar to the plugin.xml file. > > I went to the link provided and followed the directions provided there > (these are summarized in the solution given above) and tried to generate a > WSDL file from my code. > > I encountered the exact same problem. A description of that problem is > provided below: > > When I launch the Axis2 Code Generator (v1.3.0) Wizard, enter the fully > qualified class name and the location of the class file and then select the > button to test loading the class I keep getting a > java.lang.ClassNotFoundException. > > Can anyone provide any additional help? > > Thanks > Mike > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
Problem with Axis2 Code Generator - Java2WSDL
Not long ago I posted that I was was having a problem generating a WSDL file from my Java code using the Axis2 Code Generator. An answer was provided which seemed very promising. The answer that was given is provided below: This is a known bug. Here is the solution with explanation: http://blogiterox.wordpress.com/2008/10/24/exploring-apache-axis2-and-eclipse-plug-in-development/ Solution: Copy the jar for stax and for backport to the plug-in directory (\plug-ins\\lib) and then add the backport jar to the plugin.xml file. I went to the link provided and followed the directions provided there (these are summarized in the solution given above) and tried to generate a WSDL file from my code. I encountered the exact same problem. A description of that problem is provided below: When I launch the Axis2 Code Generator (v1.3.0) Wizard, enter the fully qualified class name and the location of the class file and then select the button to test loading the class I keep getting a java.lang.ClassNotFoundException. Can anyone provide any additional help? Thanks Mike
Re: Java2WSDL and abstract classes
Hi Dennis, Thanks for the hint. I'll give it a shot when I have to implement another service. This time I took the route developing the xml manually which works fine now. Thanks, -Alex Dennis Sosnoski wrote: Hi Alex, You'll probably have a much easier time of it if you use Jibx2Wsdl (included in the current 1.2.1 release of JiBX) rather than Java2WSDL. Jibx2Wsdl has a number of nice features, including Java 5 typed collection and enum support, automatic JavaDoc extraction to WSDL and schema documentation, and extensive customizations support. To include extra classes in your data model (such as the subclasses in your example), you just need to specify the extra classes on the command line using an '-x' argument flag. See the /examples/jibx2wsdl/example3 code and build for an example doing just this, using an interface rather than an abstract class. Using Jibx2Wsdl in no way commits you to using JiBX for your services (though it's easy to do so, since you get JiBX bindings out of Jibx2Wsdl as well as the WSDL and schema). See the Jibx2Wsdl documentation on the JiBX site (still somewhat limited, unfortunately) for details: http://jibx.sourceforge.net/fromcode/jibx2wsdl.html - 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 Alexander Rosemann wrote: Hi, I know, this has been asked before, though I couldn't find an answer to it. I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. The tool works fine until I try to generate the WSDL from an abstract class. Having an abstract class called Animal and a subclass Dog, it creates the schema for the Animal but misses out on the Dog type. I presume I just can't see what parameter has to be set to get this going. Any pointers that lead to a resolution of my issue are much appreciated. Thanks, Alex -- DI(FH) Alexander Rosemann open source based software solutions Naunspitzweg 3 | 6341 Ebbs | Austria mobile: +43-681-10337082 | email: alexander.rosem...@gmail.com *** Your partner in building cutting edge open source based web applications ***
Re: Java2WSDL and abstract classes
Hi Alex, You'll probably have a much easier time of it if you use Jibx2Wsdl (included in the current 1.2.1 release of JiBX) rather than Java2WSDL. Jibx2Wsdl has a number of nice features, including Java 5 typed collection and enum support, automatic JavaDoc extraction to WSDL and schema documentation, and extensive customizations support. To include extra classes in your data model (such as the subclasses in your example), you just need to specify the extra classes on the command line using an '-x' argument flag. See the /examples/jibx2wsdl/example3 code and build for an example doing just this, using an interface rather than an abstract class. Using Jibx2Wsdl in no way commits you to using JiBX for your services (though it's easy to do so, since you get JiBX bindings out of Jibx2Wsdl as well as the WSDL and schema). See the Jibx2Wsdl documentation on the JiBX site (still somewhat limited, unfortunately) for details: http://jibx.sourceforge.net/fromcode/jibx2wsdl.html - 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 Alexander Rosemann wrote: Hi, I know, this has been asked before, though I couldn't find an answer to it. I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. The tool works fine until I try to generate the WSDL from an abstract class. Having an abstract class called Animal and a subclass Dog, it creates the schema for the Animal but misses out on the Dog type. I presume I just can't see what parameter has to be set to get this going. Any pointers that lead to a resolution of my issue are much appreciated. Thanks, Alex
Re: Java2WSDL and abstract classes
Hi Alex, hammm... u are trying to have "Animal " class as the return type ,then according to your internal logic return a instance of it's subclass like Dog or Cat . AFAIK we can retrieve subclass of a any given class but I'm not sure is it possible to retrieve sub classes when you specify super class , So i don't think such feature available with Java2WSDL tool . The simplest solution is to change your method signature to return a "Dog" instance , it will generate correct schema as i mention in my previous post . for a example , public Dog getDog () or public Dog getAnimal() will result in to a correct schema generation . Alternatively you may use JAX-WS services with Axis2 because JAXB define @XmlSeeAlso annotation [1] to archive your requirement. please refer link [2] also . Hope you can find any pointer from this . [1] -http://java.sun.com/javase/6/docs/api/javax/xml/bind/annotation/XmlSeeAlso.html [2]- http://weblogs.java.net/blog/kohlert/archive/2006/10/jaxws_and_type.html Thanks , On Tue, Mar 10, 2009 at 11:02 PM, Alexander Rosemann wrote: > Hi Sagara, > > Sagara Gunathunga wrote: >> >> Hi Alex, >> AFAIK there is no special parameter required for this , according >> to method signatures of your service class, Java2WSDL generate correct >> schema for in/out messages . in your case it should generates types as >> follow. >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> - >> >> - >> >> >> >> >> >> >> >> Anyway can you post method signatures of your service class...? >> >> >> Thanks , >> > > That's what I get from running Java2WSDL: > > http://.../xsd"; targetNamespace="http://..."; > attributeFormDefault="qualified" elementFormDefault="qualified"> > http://..."/> > > > > type="ax22:Animal" nillable="true"/> > > > > > http://.../xsd"; > attributeFormDefault="qualified" elementFormDefault="qualified"> > > > > > > The animal type is there. That's my service class: > > public class AnimalService { > > public Animal getAnimal() { > return new Dog(); > } > > } > > Thanks four help Sagara! > > -Alex > > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
Re: Java2WSDL and abstract classes
Hi Sagara, Sagara Gunathunga wrote: Hi Alex, AFAIK there is no special parameter required for this , according to method signatures of your service class, Java2WSDL generate correct schema for in/out messages . in your case it should generates types as follow. - - Anyway can you post method signatures of your service class...? Thanks , That's what I get from running Java2WSDL: http://.../xsd"; targetNamespace="http://..."; attributeFormDefault="qualified" elementFormDefault="qualified"> http://..."/> type="ax22:Animal" nillable="true"/> http://.../xsd"; attributeFormDefault="qualified" elementFormDefault="qualified"> The animal type is there. That's my service class: public class AnimalService { public Animal getAnimal() { return new Dog(); } } Thanks four help Sagara! -Alex
Re: Java2WSDL and abstract classes
Hi Alex, AFAIK there is no special parameter required for this , according to method signatures of your service class, Java2WSDL generate correct schema for in/out messages . in your case it should generates types as follow. - - Anyway can you post method signatures of your service class...? Thanks , On Tue, Mar 10, 2009 at 8:35 PM, Alexander Rosemann wrote: > Hi, > > I know, this has been asked before, though I couldn't find an answer to it. > > I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. > The tool works fine until I try to generate the WSDL from an abstract > class. > > Having an abstract class called Animal and a subclass Dog, it creates the > schema for the Animal but misses out on the Dog type. > > I presume I just can't see what ගංගා චක්රයේ පරාමිතිය has to be set to get > this going. > > Any pointers that lead to a resolution of my issue are much appreciated. > > Thanks, > Alex > > -- Sagara Gunathunga Blog - http://ssagara.blogspot.com Web - http://sagaras.awardspace.com/
Java2WSDL and abstract classes
Hi, I know, this has been asked before, though I couldn't find an answer to it. I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. The tool works fine until I try to generate the WSDL from an abstract class. Having an abstract class called Animal and a subclass Dog, it creates the schema for the Animal but misses out on the Dog type. I presume I just can't see what parameter has to be set to get this going. Any pointers that lead to a resolution of my issue are much appreciated. Thanks, Alex
Java2WSDL and abstract classes
Hi, I know, this has been asked before, though I couldn't find an answer to my problem. I'm busy fiddling around with the Java2WSDL ant task shipped with Axis2. The tool works fine until I tried to generate the WSDL from an abstract class. Having an abstract class called Animal and a subclass Dog, it creates the schema for the Animal but misses out on the Dog type. I presume I just can't see what parameter has to be set to get this thing going. Any pointers that lead to a resolution of my issue are much appreciated. Cheers, Alex
Java2WSDL problem in Maven plugin
Hi, When I run java2wsdl-maven-plugin, I get the following exception: [INFO] [axis2-java2wsdl:java2wsdl {execution: default}] java.lang.Exception: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.resolveOutputStream(Java2 WSDLCodegenEngine.java:93) at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.(Java2WSDLCodegenEn gine.java:47) at org.apache.axis2.maven2.java2wsdl.Java2WSDLMojo.execute(Java2WSDLMojo.ja va:146) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa nager.java:451) ... (trace deleted) Caused by: java.io.IOException: The filename, directory name, or volume label syntax is incorrect at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.createNewFile(File.java:883) at org.apache.ws.java2wsdl.Java2WSDLCodegenEngine.resolveOutputStream(Java2 WSDLCodegenEngine.java:89) ... 20 more The plugin defined in the POM is: org.apache.axis2.maven2 axis2-java2wsdl-maven-plugin samples.quickstart.service.pojo.StockQuoteService java2wsdl Is there anything I am missing in configuring? Thanks for your help. -Amit The information contained in this email is strictly confidential and for the use of the addressee only, unless otherwise indicated. If you are not the intended recipient, please do not read, copy, use or disclose to others this message or any attachment. Please also notify the sender by replying to this email or by telephone (+44 (0)20 7896 0011) and then delete the email and any copies of it. Opinions, conclusions (etc.) that do not relate to the official business of this company shall be understood as neither given nor endorsed by it. IG Index plc is a company registered in England and Wales under number 01190902. VAT registration number 761 2978 07. Registered Office: Friars House, 157-168 Blackfriars Road, London SE1 8EZ. Authorised and regulated by the Financial Services Authority. FSA Register number 114059.
Java2wsdl gives [WARN] Unable to generate EPR for the transport : http
Hello, I have googled about without any luck! When I run the following command to generate a WSDL from a java interface: java2wsdl -cp . -cn com.kirona.webservices.MessageInterface -of MessageService.wsdl I get a warning. [WARN] Unable to generate EPR for the transport : http Could someone please tell me what this means and whether I need to worry about it? Thanks Paul
Java2WSDL: not generating ComplexType for JavaBean Array
Hi, I'm using a Java Bean array as input parameter to a method. When i generate WSDL using Java2WSDL it is not including information about this Bean as complex type in the WSDL file. The input parameter is referred as soapenc:Array and when i generate java client from WSDL it is just showing as an object array. public void changeSWInstallation(String ID, *ClearingIndicator[] SW_ClearingIndicators*, String identifier, String version); here is the command i used to generate WSDL java -classpath axis.jar;commons-discovery.jar;commons-logging.jar;jaxrpc.jar;wsdl4j.jar;saaj.jar;app.jar org.apache.axis.wsdl.Java2WSDL -o MyService.wsdl -l"http: //localhost:8081/MyService/services/MyService" -n "http://hk.com/MyService"; -p"com.hk.MyService" "http://hk.com/MyService"; --style wrapped --use literal com.hk.MyService am i missing any other parameters to Java2WSDL? I'm using *axis 1.1* as product using the the same and i can't move to other version to solve this. Please help me out... -- Hari Krishna Vemula
RE: axis2-java2wsdl-maven-plugin for multiple classes
Please reply. Its urgent. From: Soumya S. Hameed Sent: Thursday, November 13, 2008 2:48 PM To: 'axis-user@ws.apache.org' Subject: axis2-java2wsdl-maven-plugin for multiple classes Hi, I need to generate WSDL for multiple classes. Can anyone tell me how to do this with axis2-java2wsdl-maven-plugin. Also, is it possible to generate only a single WSDL file for all the classes rather than having a WSDL file per Class. I am stuck with this problem, any inputs that'll help me proceed will be greatly appreciated. Thanks, Soumya This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
axis2-java2wsdl-maven-plugin for multiple classes
Hi, I need to generate WSDL for multiple classes. Can anyone tell me how to do this with axis2-java2wsdl-maven-plugin. Also, is it possible to generate only a single WSDL file for all the classes rather than having a WSDL file per Class. I am stuck with this problem, any inputs that'll help me proceed will be greatly appreciated. Thanks, Soumya This message (including attachment if any) is confidential and may be privileged. If you have received this message by mistake please notify the sender by return e-mail and delete this message from your system. Any unauthorized use or dissemination of this message in whole or in part is strictly prohibited. E-mail may contain viruses. Before opening attachments please check them for viruses and defects. While MindTree Limited (MindTree) has put in place checks to minimize the risks, MindTree will not be responsible for any viruses or defects or any forwarded attachments emanating either from within MindTree or outside. Please note that e-mails are susceptible to change and MindTree shall not be liable for any improper, untimely or incomplete transmission. MindTree reserves the right to monitor and review the content of all messages sent to or from MindTree e-mail address. Messages sent to or from this e-mail address may be stored on the MindTree e-mail system or else where.
Re: java2wsdl customize the "return" element name
I ran into this problem too using Flex. Here's what I did to solve it: I created a class which extends ApplicationXMLFormatter and overrode the writeTo method. In that method, I reset the name of the "return" element to be the class name. Here's my change with a little context: if (omElement != null) { *for (Iterator children = omElement.getChildElements(); children.hasNext(); ) { OMElement child = (OMElement)children.next(); String returnType = null; for (Iterator it = child.getAllAttributes(); it.hasNext(); ) { OMAttribute attr = (OMAttribute)it.next(); if ("type".equals(attr.getLocalName())) { returnType = attr.getAttributeValue(); int dot = returnType.lastIndexOf('.'); if (dot > 0) returnType = returnType.substring(dot+1); break; } } if (returnType != null) child.setLocalName(returnType); }* try { if (preserve) { omElement.serialize(outputStream, format); } else { omElement.serializeAndConsume(outputStream, format); } } catch (XMLStreamException e) { throw AxisFault.makeFault(e); } } Then I added this to my axis2.xml since I only want to do this for Flex: class="com.company.api.webservice.MyApplicationXMLFormatter"/> I have configured the dynamic response module described at http://wso2.org/forum/thread/2883 in my services.xml. So now when I do something like this: http://localhost:8004/services/community/getFeaturedBlogEntries?response=application/flex-xml I get something like this: xmlns:ns="http://service.webservice.api.company.com";> <*BlogEntryList* type="com.company.api.webservice.BlogEntryList"> test blog entry Sep 3, 2008 4:19 PM PDT ... 0 1 I hope this helps someone else. Kimberly Nicholls Chris Hyzer wrote: Hey, Im using Axis2 (latest) and all defaults for inputs to Java2WSDL. I have a simple service, and each operation has a "return" element in it. e.g. type="ns:WsAddMemberResult"/> This means the XML that comes back looks like this: http://webservices.whatever/xsd";> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" /> I have someone connecting to the web service using flash or flex, and there is an XML -> object converter, which converts the XML into a hierarchy of objects and fields. But since "return" is a keyword, it barfs. So, I was wondering if there is a way (besides hand-editing the WSDL or using XSLT) to customize java2wsdl to get that element to be generated as "the_return" or something else besides "return". Thanks! Chris Here is the email from the user: Notice that the element name on line two of the response is named "return" (forget about the "ns" namespace for now). This is perfectly legal XML but "return" is a reserved word in most languages and attempts to access the element directly cause problems when compiling the code. e.g. --- BEGIN EXAMPLE FLASH CODE--- var test : XML = XML("hello worldgood bye"); // casts string to xml debugit.text = test.body; debugit.text = test.child( "return" ); --- END EXAMPLE FLASH CODE--- All of the above code works fine. Notice that I access the "body" element directly but accessed the "return" element using a child method. The compiler complains if I attempt to use the syntax "test.return" or any variation of it: "test.return.toString()". Naming an element "return" is valid; I'm suggesting that it is probably not good practice to use common reserve words as element names (or attribute names for that matter). Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. <http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ%20>
Re: Java2WSDL - support for inheritance
Hi, On Fri, Oct 10, 2008 at 2:14 AM, Saurabh Garg <[EMAIL PROTECTED]>wrote: > Hi, > > I have the following: public interface XService extends IService {} > > When I run Java2WSDL, only methods in XService are showing up in the WSDL. > So does anyone know if: > > 1. Java2WSDL supports service interfaces extending other service > interfaces? > Not at the moment (The library we used for reflection did not support this. We will be getting rid of that library and should have this feature in the next release). The workaround for now will be to override the superclass method and simply call super. > 2. Java2WSDL supports use of Generics? > Not at the moment. Probably next release (Axis2 was supported on JDK 1.4 until release 1.4, we have moved to 1.5 now and hence should be able to support this) Thanks, Keith. > > > Thanks > Saurabh > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
java2wsdl using JaxbSchemaGenerator
Hi, I am using java2wsdl -sg org.apache.axis2.jaxbri.JaxbSchemaGenerator option to generate wsdl. When I am throwing a simple exception from a operation in service class, the schemageneration fails saying: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions java.lang.StackTraceElement does not have a no-arg default constructor. this problem is related to the following location: at java.lang.StackTraceElement at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace() at java.lang.Throwable at java.lang.Exception at MyException How can I stop the schemagen to go beyond java.lang.Exception? I am prefering JaxbSchemaGenerator option because I can generate more accurate wsdl that specify mandatory field in my Java bean (by adding appropriate constructor, along with default constructor). Thanks Sijo Reference thread: http://mail-archives.apache.org/mod_mbox/ws-axis-user/200712.mbox/<[EMAIL PROTECTED]>
Java2WSDL - support for inheritance
Hi, I have the following: public interface XService extends IService {} When I run Java2WSDL, only methods in XService are showing up in the WSDL. So does anyone know if: 1. Java2WSDL supports service interfaces extending other service interfaces? 2. Java2WSDL supports use of Generics? Thanks Saurabh
Controlling Java2WSDL
Is there a handle to control WSDL generation with various options (like Java2WSDL utility) on the fly? We need to include -xc parameter for including additional subtypes. We have the service class exposed in services.xml from which WSDL is auto generated. Any quick pointers will be really helpful. Balaji -- View this message in context: http://www.nabble.com/Controlling-Java2WSDL-tp18999035p18999035.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Error using axis2-java2wsdl-maven-plugin
Hi Kyle, Thanks for your info about the Apache CXF. :clap: Kyle.Bober wrote: > > I did not figure out a solution to the problem. In the long run we ended > up using Apache CXF. Not sure if this is an option for you but the Maven > plugin support is far better then that of Axis2. > > -Kyle > > > > venkuk wrote: >> >> Hi Kyle, >> >> Did u find the solution i am also facing the same problem >> >> Thanks >> Venkat >> >> > > -- View this message in context: http://www.nabble.com/Build-Error-using-axis2-java2wsdl-maven-plugin-tp14199743p18878176.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Error using axis2-java2wsdl-maven-plugin
I did not figure out a solution to the problem. In the long run we ended up using Apache CXF. Not sure if this is an option for you but the Maven plugin support is far better then that of Axis2. -Kyle venkuk wrote: > > Hi Kyle, > > Did u find the solution i am also facing the same problem > > Thanks > Venkat > > -- View this message in context: http://www.nabble.com/Build-Error-using-axis2-java2wsdl-maven-plugin-tp14199743p18873358.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build Error using axis2-java2wsdl-maven-plugin
Hi Kyle, Did u find the solution i am also facing the same problem Thanks Venkat -- View this message in context: http://www.nabble.com/Build-Error-using-axis2-java2wsdl-maven-plugin-tp14199743p18873227.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2- Java2Wsdl- ClassnotFoundException
Thanks Moez. That worked. Sanjeev. Moez Benmbarka wrote: > > Hi, > > I think you just need to add E:\Axis2c\bin to the CLASSPATH variable or > use the fllowing command : > > java2wsdl.bat -cp E:\Axis2c\bin -cn pkg.Test > > > Regards > Moez BM > > SanjeevGour wrote: >> Hi, >> >> I am trying to generate WSDL using the java2wsdl.bat using the following >> command- >> java2wsdl.bat -cn pkg.Test >> >> Where my Test class is under the package pkg. I have axis installed in >> E:\Axis2c. I have put the generated class file in the E:\Axis2c\bin >> directory under a folder pkg. i.e.- E:\Axis2c\bin\pkg\Test.class. >> >> Now when I run the above command I get the exception-Exception in thread >> "main" java.lang.ClassNotFoundException: pkg.Test >> >> I execute the command from E:\Axis2c\bin directory. >> >> Though my test class doesn't contain any special code, I just wonder why >> I >> get the ClassNotFounfException. My Test class does not refer to any other >> class. It just has a main method with one SOP. >> >> I have set the AXIS2_HOME env variable and classpath contains entry for >> my >> rt.jar. >> >> Can somebody please guide me on this? >> >> Thank you, >> Sanjeev Gour. >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Axis2--Java2Wsdl--ClassnotFoundException-tp18848964p18867541.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis2- Java2Wsdl- ClassnotFoundException
Hi, I think you just need to add E:\Axis2c\bin to the CLASSPATH variable or use the fllowing command : java2wsdl.bat -cp E:\Axis2c\bin -cn pkg.Test Regards Moez BM SanjeevGour wrote: Hi, I am trying to generate WSDL using the java2wsdl.bat using the following command- java2wsdl.bat -cn pkg.Test Where my Test class is under the package pkg. I have axis installed in E:\Axis2c. I have put the generated class file in the E:\Axis2c\bin directory under a folder pkg. i.e.- E:\Axis2c\bin\pkg\Test.class. Now when I run the above command I get the exception-Exception in thread "main" java.lang.ClassNotFoundException: pkg.Test I execute the command from E:\Axis2c\bin directory. Though my test class doesn't contain any special code, I just wonder why I get the ClassNotFounfException. My Test class does not refer to any other class. It just has a main method with one SOP. I have set the AXIS2_HOME env variable and classpath contains entry for my rt.jar. Can somebody please guide me on this? Thank you, Sanjeev Gour. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis2- Java2Wsdl- ClassnotFoundException
Hi, I am trying to generate WSDL using the java2wsdl.bat using the following command- java2wsdl.bat -cn pkg.Test Where my Test class is under the package pkg. I have axis installed in E:\Axis2c. I have put the generated class file in the E:\Axis2c\bin directory under a folder pkg. i.e.- E:\Axis2c\bin\pkg\Test.class. Now when I run the above command I get the exception-Exception in thread "main" java.lang.ClassNotFoundException: pkg.Test I execute the command from E:\Axis2c\bin directory. Though my test class doesn't contain any special code, I just wonder why I get the ClassNotFounfException. My Test class does not refer to any other class. It just has a main method with one SOP. I have set the AXIS2_HOME env variable and classpath contains entry for my rt.jar. Can somebody please guide me on this? Thank you, Sanjeev Gour. -- View this message in context: http://www.nabble.com/Axis2--Java2Wsdl--ClassnotFoundException-tp18848964p18848964.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: HELP: Invalid WSDL generated by Java2WSDL
Thanks for your help This parameter is added to where? I'm using the command line version of Java2WSDL. __ Marc Lefebvre, Principle Software Engineer Akimeka, 1305 N. Holopono Street, Kihei, HI 96753 Phone: (808)442-7168, Email: [EMAIL PROTECTED] echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq' | dc From: Deepal jayasinghe [mailto:[EMAIL PROTECTED] Sent: Tue 7/22/2008 5:37 PM To: axis-user@ws.apache.org Subject: Re: HELP: Invalid WSDL generated by Java2WSDL As I can see the problem is due to the HTTP binding , some WSDL validators can not validate HTTP binding. That might be the reason behind you getting this error. One way to overcome this is to not to generate the HTTP binding. You can do that by adding the following parameter. true into your services.xml. > I'm using POJO web service development, and have generated a WSDL using > Java2WSDL, which seems to be invalid. When I import this WSDL into my XML > firewall it says its invalid. I then loaded into XMLSpy to do a validation > on it, and it reports errors: > > attribute 'part' in element '' refers to part 'sendFile SWA' > which could not be found in message 'sendFileSWARequest' > > So, Here is what I am seeing: > > In the message part of the WSDL this is being generated: > > > > > > And the operation part of the WSDL, this is being generated: > > type="ns:SOATestLabServicePortType"> > > > > > > > > > > > > > > Notice above that the part name is being called 'parameters', and is called > that for each and ever message part being generated. However, when the > operation section references this message part its being called the name of > the method that is invoking this ('sendFileSWA' in this example). It appears > that the message parts are not being generated correctly. > > For your reference, when I import the WSDL into my Datapower XML Firewall, it > gives me this error: > > Fatal Error at line 660: message part sendFileSWA not found. > > Attached is my WSDL. How do I get the WSDL to generate properly or is this a > bug, or is my firewall being overly strict? > > Thanks! > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal http://blogs.deepal.org/ - 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: HELP: Invalid WSDL generated by Java2WSDL
As I can see the problem is due to the HTTP binding , some WSDL validators can not validate HTTP binding. That might be the reason behind you getting this error. One way to overcome this is to not to generate the HTTP binding. You can do that by adding the following parameter. true into your services.xml. I'm using POJO web service development, and have generated a WSDL using Java2WSDL, which seems to be invalid. When I import this WSDL into my XML firewall it says its invalid. I then loaded into XMLSpy to do a validation on it, and it reports errors: attribute 'part' in element '' refers to part 'sendFile SWA' which could not be found in message 'sendFileSWARequest' So, Here is what I am seeing: In the message part of the WSDL this is being generated: And the operation part of the WSDL, this is being generated: Notice above that the part name is being called 'parameters', and is called that for each and ever message part being generated. However, when the operation section references this message part its being called the name of the method that is invoking this ('sendFileSWA' in this example). It appears that the message parts are not being generated correctly. For your reference, when I import the WSDL into my Datapower XML Firewall, it gives me this error: Fatal Error at line 660: message part sendFileSWA not found. Attached is my WSDL. How do I get the WSDL to generate properly or is this a bug, or is my firewall being overly strict? Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Deepal http://blogs.deepal.org/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
HELP: Invalid WSDL generated by Java2WSDL
I'm using POJO web service development, and have generated a WSDL using Java2WSDL, which seems to be invalid. When I import this WSDL into my XML firewall it says its invalid. I then loaded into XMLSpy to do a validation on it, and it reports errors: attribute 'part' in element '' refers to part 'sendFile SWA' which could not be found in message 'sendFileSWARequest' So, Here is what I am seeing: In the message part of the WSDL this is being generated: And the operation part of the WSDL, this is being generated: Notice above that the part name is being called 'parameters', and is called that for each and ever message part being generated. However, when the operation section references this message part its being called the name of the method that is invoking this ('sendFileSWA' in this example). It appears that the message parts are not being generated correctly. For your reference, when I import the WSDL into my Datapower XML Firewall, it gives me this error: Fatal Error at line 660: message part sendFileSWA not found. Attached is my WSDL. How do I get the WSDL to generate properly or is this a bug, or is my firewall being overly strict? Thanks! SOATestLabService.wsdl Description: SOATestLabService.wsdl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant Java2WSDL: Unable to generate EPR for the transport : http
Hello, I'm using ant_1.7.0 (eclipse pluggin) and axis2-1.4. I'm trying to generate a WSDL from my classes and each time I execute ant building I receive the warning "Unable to generate EPR for the transport : http". The build.xml is: ... ... http://localhost/WS"; outputfilename="./cfg/generated/file.wsdl" style="document" servicename="WSIService"> ... Could anyone tell me why this happens or how to avoid it, please? Thanks in advance -- View this message in context: http://www.nabble.com/Ant-Java2WSDL%3A-Unable-to-generate-EPR-for-the-transport-%3A-http-tp18446817p18446817.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generics and Interfaces with Java2Wsdl
Hi, I'm using axis 1.4, and I have an interface defined as follows: public interface ServiceInterface { ... public boolean updateList(T[] list) throws ServiceException; ... } with an implementing class as follows: public class UserService implements ServiceInterface { ... public boolean updateList(User[] list) throws ServiceException { ... } ... } There are many other methods defined in the interface which the class implements, and everytihng is fine with these. When I run the java2wsdl ant task on this class, the types are being represented perfectly, the namespaces all line up properly, but I'm getting two instances of the "updateList" method, as follows: ... ... ... And ... ... ... The first appearance of the method definition in the WSDL file is correct, but I don't know why the second one is being generated. I can edit them out by hand, but they shouldn't be there. I have two other methods in the class which exhibit the same problem, and both of those classes are defined similarly to the updateList method, to wit: public boolean updateList(T[] list) throws ServiceException; public boolean saveList(T[] list) throws ServiceException; public T test(T val) throws ServiceException; Which is to say, only these methods pass in the genercized parameter, and only these methods are duplicated in the WSDL. Interestingly, methods which have genercized return values are not duplicated. Has anyone run across this? Or am I being too ambitious using Generics with my services? Veilen Danke, Ben The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Axis 1.4 - When using Java2WSDL, my ip address appears in the impl, intf and targetnamespace. How can I change this?
Specify the -n switch and provide a namespace of your choice. See http://ws.apache.org/axis/java/user-guide.html#Java2WSDLBuildingWSDLFromJava Anne On Thu, Jun 12, 2008 at 12:30 PM, Josh <[EMAIL PROTECTED]> wrote: > When using Axis 1.4's Java2WSDL, my ip address appears in the impl, intf and > targetnamespace. How can I change this behaviour so that my name spaces > don't change if I deploy to another server? > > Thanks, > > josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Axis 1.4 - When using Java2WSDL, my ip address appears in the impl, intf and targetnamespace. How can I change this?
When using Axis 1.4's Java2WSDL, my ip address appears in the impl, intf and targetnamespace. How can I change this behaviour so that my name spaces don't change if I deploy to another server? Thanks, josh
java2wsdl : how to get this working with an axis2 sample
Problem: java2wsdl gives error "An error occured while generating codejava.lang.ClassNotFoundException: samples.quickstart.service.pojo.StockQuoteServic e" It took me a long time to get wsdl2java working, and on the way I checked out the mail lists, which didn't help, although the problem seems common. I hope that this will save other rookies time. I enclose the console log, which shows what needs to be done. -I have used the samples/quickstart example. -Basically, ant generates the classes in build/classes -java2wsdl needs this value in the -cp parameter..., Have fun. Alan South -- C:\axis2-1.4\samples\quickstart>ant Buildfile: build.xml compile.service: [mkdir] Created dir: C:\axis2-1.4\samples\quickstart\build [mkdir] Created dir: C:\axis2-1.4\samples\quickstart\build\classes [javac] Compiling 1 source file to C:\axis2-1.4 \samples\quickstart\build\classes [javac] Note: C:\axis2-1.4 \samples\quickstart\src\samples\quickstart\service\pojo\StockQuoteService.java uses unchec ked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. generate.service: [copy] Copying 1 file to C:\axis2-1.4\samples\quickstart\build\classes [jar] Building jar: C:\axis2-1.4 \samples\quickstart\build\StockQuoteService.aar BUILD SUCCESSFUL Total time: 1 minute 11 seconds C:\axis2-1.4\samples\quickstart>java2wsdl C:\axis2-1.4\samples\quickstart>c:\axis2-1.4\bin\java2wsdl -cp . -cn samples.quickstart.service.pojo.StockQuoteService - of StockQuoteService.wsdl Using AXIS2_HOME: c:\axis2-1.4 Using JAVA_HOME:c:\Program Files\Java\jdk1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: samples.quickstart.service.pojo.StockQuoteServic e C:\axis2-1.4\samples\quickstart>java2wsdl C:\axis2-1.4\samples\quickstart>c:\axis2-1.4\bin\java2wsdl -cp build/classes -cn samples.quickstart.service.pojo.StockQu oteService -of StockQuoteService.wsdl Using AXIS2_HOME: c:\axis2-1.4 Using JAVA_HOME:c:\Program Files\Java\jdk1.5.0_11 [WARN] Unable to generate EPR for the transport : http C:\axis2-1.4\samples\quickstart>dir Volume in drive C has no label. Volume Serial Number is B004-CA8F Directory of C:\axis2-1.4\samples\quickstart 2008-06-11 08:27 . 2008-06-11 08:27 .. 2008-06-11 07:58 build 2008-03-15 13:52 2 846 build.xml 2008-06-11 08:27 125 java2wsdl.bat 2008-06-11 07:46 113 java2wsdl.bat~ 2008-06-11 07:55 2 004 java2wsdl.txt 2008-06-11 07:5227 java2wsdl1.bat 2008-01-07 12:29 1 626 README.txt 2008-06-10 09:11 resources 2008-06-10 09:11 src 2008-06-11 08:27 5 717 StockQuoteService.wsdl 7 File(s) 12 458 bytes 5 Dir(s) 67 881 105 920 bytes free C:\axis2-1.4\samples\quickstart> -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problem using java2wsdl
Really, I had testing something as simple as that (please find attached the simple project...) _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:46 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl i tried the same, and I think it's maybe your code which have a problem. I'm not an expert in java2wsdl, but maybe the problem is in your code files, in fact the interface is not a class, so maybe you need to put the class path after cn, and not the interface. as I don't have your files, I can't test myself. your class will implement this interface, so maybe try to find out the problem by this way. Myproject_specs.rar Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using java2wsdl
i tried the same, and I think it's maybe your code which have a problem. I'm not an expert in java2wsdl, but maybe the problem is in your code files, in fact the interface is not a class, so maybe you need to put the class path after cn, and not the interface. as I don't have your files, I can't test myself. your class will implement this interface, so maybe try to find out the problem by this way.
RE: Problem using java2wsdl
I have copied my folder in C:\ and it is the same... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\PruebaWSDL\bin\eu\myproject\mycomponent\myService _ De: Perez Arbulu, Ibai [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:28 Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl I Would try with a different classpath. Documents and settings is not advisable at all. _ De: Adriana Verdejo [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 04 de Junio de 2008 05:23 a.m. Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Re: Problem using java2wsdl
same answer :) or try with your path beetwen " " like"c:\document and... " 2008/6/4 Perez Arbulu, Ibai <[EMAIL PROTECTED]>: > I Would try with a different classpath. > > > > "Documents and settings" is not advisable at all. > -- > > *De:* Adriana Verdejo [mailto:[EMAIL PROTECTED] > *Enviado el:* Miércoles, 04 de Junio de 2008 05:23 a.m. > *Para:* axis-user@ws.apache.org > *Asunto:* RE: Problem using java2wsdl > > > > Dear Pierre, > > > > thanks for your fast answer, but I did it before and the error was the > same.. > > > > I mean... > > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents > and > Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService > > Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 > Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 > An error occured while generating codejava.lang.ClassNotFoundException: > C:\Documents > > My interface is like that.. > > > > > > package eu.myproject.mycomponent; > > > > import myproject.mycomponent.mymodule1.otherService1; > import myproject.mycomponent.mymodule2.otherService2; > > > > public interface myService extends otherService1, otherService2 { > > > > } > > > > Thanks, > > > > Adriana. > > > -- > > *De:* pierre betz [mailto:[EMAIL PROTECTED] > *Enviado el:* miércoles, 04 de junio de 2008 12:04 > *Para:* axis-user@ws.apache.org > *Asunto:* Re: Problem using java2wsdl > > a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService > is generated when the class is not found. > > you are using : > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > eu.myproject.myComponent.myService > > > > which describe that you class myService is in the folder > C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. > > are you sure that you pu the class in this folder ? > if not, you have to explain where is you class, like : > > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > yourparentclassdirectory\myService > > > > like : if my class is located here : c:\myproject\myClass.class > > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > c:\myproject\myClass > > > > does it work? > > > > > > > > > > >
RE: Problem using java2wsdl
I Would try with a different classpath. "Documents and settings" is not advisable at all. De: Adriana Verdejo [mailto:[EMAIL PROTECTED] Enviado el: Miércoles, 04 de Junio de 2008 05:23 a.m. Para: axis-user@ws.apache.org Asunto: RE: Problem using java2wsdl Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
RE: Problem using java2wsdl
Dear Pierre, thanks for your fast answer, but I did it before and the error was the same.. I mean... C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn C:\Documents and Settings\adriana\workspace\PruebaWSDL\bin\eu\myproject\mycomponent\myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 An error occured while generating codejava.lang.ClassNotFoundException: C:\Documents My interface is like that.. package eu.myproject.mycomponent; import myproject.mycomponent.mymodule1.otherService1; import myproject.mycomponent.mymodule2.otherService2; public interface myService extends otherService1, otherService2 { } Thanks, Adriana. _ De: pierre betz [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 04 de junio de 2008 12:04 Para: axis-user@ws.apache.org Asunto: Re: Problem using java2wsdl a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Re: Problem using java2wsdl
Adriana Maybe you don't even need to use java2wsdl. Are you deploying a Java class as a service? If so, then Axis2 automatically generates the WSDL for you. Paul On Wed, Jun 4, 2008 at 10:48 AM, Adriana Verdejo <[EMAIL PROTECTED]> wrote: > Hi all, > > I am new using axis and I am very lost. I would like to generate my wsdl > from my java interface. I have used the axis plugin for eclipse (axis 2 code > generator) but I find always this error message: "An error occured while > completing process -java.lang.reflect.InvocationTargetException". I don't > know what is wrong. Because of that I tried to do it by command.. > > > C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn > eu.myproject.myComponent.myService > > Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 > > Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 > > > > And I get this error: > > > > An error occured while generating codejava.lang.ClassNotFoundException: > eu.myproject.myComponent.myService > > > > My class is in my workspace. How I should give this information to axis? > > > > Could you please help me? Thanks in advance. > > > Best regards, > > Adriana. -- Paul Fremantle Co-Founder and CTO, WSO2 Apache Synapse PMC Chair OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem using java2wsdl
a codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService is generated when the class is not found. you are using : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject. myComponent.myService which describe that you class myService is in the folder C:\axis2-1.2\axis2-1.2\bin\eu\myproject\myComponent. are you sure that you pu the class in this folder ? if not, you have to explain where is you class, like : C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn yourparentclassdirectory\myService like : if my class is located here : c:\myproject\myClass.class C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn c:\myproject\myClass does it work?
Problem using java2wsdl
Hi all, I am new using axis and I am very lost. I would like to generate my wsdl from my java interface. I have used the axis plugin for eclipse (axis 2 code generator) but I find always this error message: "An error occured while completing process -java.lang.reflect.InvocationTargetException". I don't know what is wrong. Because of that I tried to do it by command.. C:\axis2-1.2\axis2-1.2\bin>java2wsdl -of myService.wsdl -cn eu.myproject.myComponent.myService Using AXIS2_HOME: C:\axis2-1.2\axis2-1.2 Using JAVA_HOME:C:\Archivos de programa\Java\jre1.5.0_11 And I get this error: An error occured while generating codejava.lang.ClassNotFoundException: eu.myproject.myComponent.myService My class is in my workspace. How I should give this information to axis? Could you please help me? Thanks in advance. Best regards, Adriana.
Problem with DataHandler in bean with Java2WSDL
I'm new to Axis2 and I'm trying to implement a file up- and download mechanism via Webservice. I created a simple POJO Webservice FileTransferService with the methods: - uploadFiles(FileWrapper) and - FileWrapper downloadFile() The FileWrapper class is a simple bean with: - setDataHandlers(DataHandler[]) and DataHandler[] getDataHandlers(). My problem is now that when I am using the Java2WSDL Ant-Task I am getting a WSDL with a FileWrapper where the dataHandler attribute type is xs:anyType. elementFormDefault="qualified" targetNamespace="http://service.example/xsd";> name="dataHandler" nillable="true" type="xs:anyType"/> I thaught that would generate an attributeType base64Binary. When I am using the DataHandler in the Service directly without a FileWrapper class it works fine but when I am using a bean class to encapsulate the DataHandler it don't work. Regards, Lasse - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: axis2 1.4 java2wsdl ClassCastException
Hi all, I have a working project that uses axis2 1.2 and I'm trying to upgrade to 1.4. However I get the following error when running my ant java2wsdl task. java.lang.RuntimeException: java.lang.ClassCastException: org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver Is this a known problem? Can someone point me to a solution? I found a post here that dates back to Sept 18, 2007 which sounds similar to my problem. This user was using 1.3. http://www.javakb.com/Uwe/Forum.aspx/java-programmer/38172/long-webservices-moving-on-from-Axis Thanks Chuck Change the world with e-mail. Join the i’m Initiative from Microsoft. _ Make every e-mail and IM count. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ MakeCount
xmit/recv in-mem xml doc? java2wsdl, axiom
Hi, I am trying to figure out how to pass xml data in my WebServcies interface. Basically I want to my server to create an xml document from internal data and return it to the client. I want my service interface to look something like this: xmlDocument getRequestedStats( xmlDocument ) (Where xmlDocument is not a data type, just the content of the data I want to send) Where the input and output are in memory xml documents and are created and managed by AXIOM. However what I do not know how to do is to define java class on the server side such that java2wsdl will create the correct interface for the client and server to send/receive xml documents. So imagine if I have a document on the client that looks something like this: xmlns:po="http://dataservice.org/db";> item75 and I want the server to dynamically (using Axiom) generate response xml that might look somthing like this: xmlns:po="http://dataservice.org/db";> CDATA[ info about item 75 here] I have looked at using strings, OMDocuments and OMElements and serialization but nothing seems to make sense. There must be an easy and correct way to do this but I am just not seeing it. I do not have a lot of WebServer development experience so I am probably just missing something obvious. I guess SOAP wraps my data but I want to wrap my data in XML. I looked at simply making the interface String getRequestedStats( String str ) but somehow I need to get from str to OMDocument and back. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2] java2wsdl - missing enum
Hi folks, I am generating my WSDL from java using ?wsdl in the browser for my web service. I am using Axis2 1.4 and running on Tomcat 5.5.26. I have a single class as a parameter for one of the methods of the webservice. One of the variables in that class is of the type below. @XmlType(name = "DataEncodingType") @XmlEnum public enum DataEncodingType { RAW("RAW"), HEX("HEX"), @XmlEnumValue("BASE64") BASE_64("BASE64"); private final String value; DataEncodingType(String v) { value = v; } public String value() { return value; } public static DataEncodingType fromValue(String v) { for (DataEncodingType c: DataEncodingType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } } As you can see, this is a JAXB generated emum class. But when I generate the WSDL, the complex type that represents this class, looks like this: This is not correct as i am expecting to see the enum values represented in the class above, present in the complexType. Can somebody please let me know how to fix this? This used to work a while back, but for some reason, this isn't working anymore. Hope to hear from you ~Glen
[axis2] java2wsdl - missing enum
Hi folks, I am generating my WSDL from java using ?wsdl in the browser for my web service. I am using Axis2 1.4 and running on Tomcat 5.5.26. I have a single class as a parameter for one of the methods of the webservice. One of the variables in that class is of the type below. @XmlType(name = "DataEncodingType") @XmlEnum public enum DataEncodingType { RAW("RAW"), HEX("HEX"), @XmlEnumValue("BASE64") BASE_64("BASE64"); private final String value; DataEncodingType(String v) { value = v; } public String value() { return value; } public static DataEncodingType fromValue(String v) { for (DataEncodingType c: DataEncodingType.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } } As you can see, this is a JAXB generated class. But when I generate the WSDL, the complex type that represents this class, looks like this: This is not correct as i am expecting to see the enum values represented in the class above, present in the complexType. Can somebody please let me know how to fix this? This used to work a while back, but for some reason, this isn't working anymore. Hope to hear from you ~Glen
java2wsdl failing - why?
I am trying to use Axis2 to develop a simple web service. I care nothing about portability, this Web Service will be strictly internal and only needs to run against java clients. I tried a top-down approach using wsdl2java but couldn't stand the generated code. Therefore I opted for a bottom-up approach, wrote some simple classes and tried to generate a WSDK using java2wsdl. I'm not having much luck. I attempt to run java2wsdl and am getting file not found errors that make no sense to me. What am I missing: export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun;/home/me/apis/axis2-1.4/bin/java2wsdl.sh -of /home/me/wsdl/RDS.wsdl -sn RDS -tn http://www.dot.com -tp rds -stn http://www.dot.com/schema -stp rdss -cp /home/me/workspace/RDS/build/classes:/home/me/workspace/Vendor_Jars/commons-lang-2.4.jar -cn com.dot.data.svc.RDS Using AXIS2_HOME: /home/me/apis/axis2-1.4 Using JAVA_HOME: /usr/lib/jvm/java-1.5.0-sun An error occured while generating codejava.io.IOException: No such file or directory In the above command line: /home/me/apis/axis2-1.4 is AXIS2_HOME, and contains everything that came with the distribution /home/me/wsdl exists so the output file should be able to be put there without error. /home/me/workspace/RDS/build/classes exists and is the base directory of the classpath under which com.dot.data.svc.RDS.class is to be found and /home/me/workspace/Vendor_Jars exists and contains commons-lang-2.4.jar, which is the only external dependency in any of this code. I therefore see nothing that could lead to a file not found, yet something in the java code of java2wsdl is not finding some file it needs. The error tells me that the shell script is executing all the way to launching the java, and is not coming from the shell script itself. Can someone explain what is happening? I don't see much documentation on java2wsdl. I see much more on wsdl2java. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Does Java2WSDL support generics ?
Hi, I would like to generate a WSDL for the following method: "public List getAllCars();". In the generated WSDL I expect to have something similar to ''. When using Java2WSDL, the generated WSDL contains ''. There is no reference to the 'Car' element :o(. Based on this experience I was wondering if Java2WSDL supports generics or should I specify an additional parameter to generate a reference to the 'Car' element in the 'getAllCarsResponse' element ? Regards, Stefan Lecho. -- View this message in context: http://www.nabble.com/Does-Java2WSDL-support-generics---tp16742894p16742894.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java2wsdl style
What are the valid values for style in java2wsdl? -Henry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java2wsdl questions
How does this work with a POJO deployment then? I haven't tried it, but the documentation seems to indicate that with properly annotated POJO classes, super-class methods will be included. Is there a different Java2wsdl converter that works under the covers with a POJO deployment? Maybe that explains why the package path for the included java2wsdl converter doesn't match up with the rest of the axis2 code? If I continue building the WSDL with the converter from Axis(1) - what are the chances that Axis2 will be happy with that WSDL? And in that case, should I use the WSDL -> java converter from Axis1 or Axis2? It seems a little strange to have a 3rd generation product release all the way up to version 1.3 - and it still lacks basic functionality of the 2nd generation product Thanks, Dan On Mon, Apr 7, 2008 at 12:12 AM, Suran Jayathilaka <[EMAIL PROTECTED]> wrote: > Hi Dan, > > The inclusion of super-class methods is currently unavailable in Axis2 > java2wsdl. > This capability is in the works. > > Suran. > > Dan Armbrust wrote: > > > > > > > > > I'm trying to migrate some code from Axis (1.2.1, I think) to Axis2 1.3. > > > > I can't seem to figure out how to make the java2wsdl tool in Axis2 > > properly generate method signatures for a superclass. > > > > The old java2wsdl tool automatically included methods from the super > > class in the generated wsdl. > > > > What am I missing? > > > > Is there more doc somewhere on the java2wsdl tool - other than: > > http://ws.apache.org/axis2/1_3/reference.html ? > > > > Thanks, > > > > Dan > > > > - > > 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] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java2wsdl questions
Hi Dan, The inclusion of super-class methods is currently unavailable in Axis2 java2wsdl. This capability is in the works. Suran. Dan Armbrust wrote: I'm trying to migrate some code from Axis (1.2.1, I think) to Axis2 1.3. I can't seem to figure out how to make the java2wsdl tool in Axis2 properly generate method signatures for a superclass. The old java2wsdl tool automatically included methods from the super class in the generated wsdl. What am I missing? Is there more doc somewhere on the java2wsdl tool - other than: http://ws.apache.org/axis2/1_3/reference.html ? Thanks, Dan - 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]
java2wsdl questions
I'm trying to migrate some code from Axis (1.2.1, I think) to Axis2 1.3. I can't seem to figure out how to make the java2wsdl tool in Axis2 properly generate method signatures for a superclass. The old java2wsdl tool automatically included methods from the super class in the generated wsdl. What am I missing? Is there more doc somewhere on the java2wsdl tool - other than: http://ws.apache.org/axis2/1_3/reference.html ? Thanks, Dan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
hi, i have an error in using axis-1.4 java2wsdl with inner class
hi, is there some problems in axis-1.4 java2wsdl for inner class. does anyone meet the same problem with me. - 雅虎邮箱,您的终生邮箱!
Re: How to create Document / Literal java2WSDL with axis 1.3
Specify -y wrapped rather than -y document. That will produce a "wrapped" document/literal service, and it will automatically generate the beanmappings for you. Anne On Fri, Mar 28, 2008 at 11:24 AM, sh_santosh <[EMAIL PROTECTED]> wrote: > > > > can anybody provide working command like this for > > JAVA2WSDL : > java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u literal -T > 1.2 -n NS.TestService > -y document -o DocLit.wsdl TestService > > WSDL2JAVA : > java org.apache.axis.wsdl.WSDL2Java -s -a -p service.doc.literal -T 1.2 -o > src DocLit.wsdl > > When i run java2wsdl it's throwing exception - > faultString: Please register a typemapping/beanmapping for > > I have made some changes in server-config.wsdd like - >xmlns:ns="urn:webservices.wsdoclittest.test.Stock" > languageSpecificType="java:webservices.wsdoclittest.test.Stock"/> > > but it's not working. > > please help me out. > > > > > Upul Godage wrote: > > > > You can use Axis2 tools in the bin directory java2wsdl, wsdl2java like > > this. > > java2wsdl generates document literal style WSDLs I think. > > > > ./java2wsdl.sh -cn test.Service -cp classes.jar > > > > ./wsdljava.sh -uri service.wsdl > > > > Upul > > > > On Thu, Mar 27, 2008 at 12:55 PM, sh_santosh <[EMAIL PROTECTED]> > > wrote: > > > >> > >> Dear All, > >> > >> > >> 1. How to create Document / Literal WSDL from java interface ?? or how > >> to > >> create Java 2 WSDL using Document/ Literal. > >> 2. from document/literal WSDL to java classes(stub, skelton, serivces). > >> > >> I am using Axis 1.3 , tomcat-5.5.20 and eclipse. > >> > >> Please provide the command and arguments for java2wsdl and wsdl2java for > >> doc/lit. > >> > >> is there any tool that help to generate java2wsdl and wsdl2java for > >> doc/lit. > >> > >> > >> > >> > >> Regards > >> Santosh > >> > >> > >> > >> > >> > >> > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16323309.html > >> Sent from the Axis - User mailing list archive at Nabble.com. > >> > >> > >> - > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > >> For additional commands, e-mail: [EMAIL PROTECTED] > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16351022.html > Sent from the Axis - User mailing list archive at Nabble.com. > > > - > 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]
java2wsdl ClassNotFoundException
I'm trying to create a wsdl based on a java class that i have. I'm using axis eclipse plugin. But, when I try to load my class, I get a ClassNotFoundException I'm sure that my Class Name is correct ( org.tecgraf.liquigas.webservice.TripSearch) but i still can't get it to work I tried to put some dependecies and/or the class folder but nothing here are the imports of the class: package org.tecgraf.liquigas.webservice; import java.sql.Connection; import java.util.GregorianCalendar; import java.util.Vector; import javax.jws.WebMethod; import javax.jws.WebService; import org.tecgraf.liquigas.bean.Trip; import org.tecgraf.liquigas.config.LogHandler; import org.tecgraf.liquigas.database.ConnectionPool; import org.tecgraf.liquigas.database.DAOFactory; import org.tecgraf.liquigas.database.dao.DriverDAO; import org.tecgraf.liquigas.database.dao.TripDAO; The funny thing is that when I try to load a source inside the plugin folder, it works with no problem. (like org.apache.axis2.tool.util.Constants ) Any clue?
Re: How to create Document / Literal java2WSDL with axis 1.3
can anybody provide working command like this for JAVA2WSDL : java org.apache.axis.wsdl.Java2WSDL -l http://localhost:8080 -u literal -T 1.2 -n NS.TestService -y document -o DocLit.wsdl TestService WSDL2JAVA : java org.apache.axis.wsdl.WSDL2Java -s -a -p service.doc.literal -T 1.2 -o src DocLit.wsdl When i run java2wsdl it's throwing exception - faultString: Please register a typemapping/beanmapping for I have made some changes in server-config.wsdd like - but it's not working. please help me out. Upul Godage wrote: > > You can use Axis2 tools in the bin directory java2wsdl, wsdl2java like > this. > java2wsdl generates document literal style WSDLs I think. > > ./java2wsdl.sh -cn test.Service -cp classes.jar > > ./wsdljava.sh -uri service.wsdl > > Upul > > On Thu, Mar 27, 2008 at 12:55 PM, sh_santosh <[EMAIL PROTECTED]> > wrote: > >> >> Dear All, >> >> >> 1. How to create Document / Literal WSDL from java interface ?? or how >> to >> create Java 2 WSDL using Document/ Literal. >> 2. from document/literal WSDL to java classes(stub, skelton, serivces). >> >> I am using Axis 1.3 , tomcat-5.5.20 and eclipse. >> >> Please provide the command and arguments for java2wsdl and wsdl2java for >> doc/lit. >> >> is there any tool that help to generate java2wsdl and wsdl2java for >> doc/lit. >> >> >> >> >> Regards >> Santosh >> >> >> >> >> >> >> >> -- >> View this message in context: >> http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16323309.html >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/How-to-create-Document---Literal-WSDL-with-axis-1.3-tp16323309p16351022.html Sent from the Axis - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Type Mapping java.lang.Integer int after java2wsdl and wsdl2java
I am trying to generate an Axis Webservice from my existing J2EE-EJB and have the following issue: 1. Running java2wsdl over the EJB Remote Interface, which contains all method signatures and references their return value objects. 2. Running wsdl2java over the generated wsdl file to generate the Webservice Server- and Client-Code I am using Axis Version 1.4 (tried 1.2, 1.3 also, same issue) Original Interface (simplified): package org.axis.test; public interface PersonManager { public Long getRandomPersonId(Long fromInternalId, Long toInternalId); } Generated Interface: package org.axis.test; public interface PersonManager extends java.rmi.Remote { public long getRandomPersonId(long in0, long in1) throws java.rmi.RemoteException; } Ant tasks: http://personmanager.test.axis.org"; classname="org.axis.test.PersonManager"/> Does anybody know why the original java.lang.Long gets to java type long (scalar) after the java2wsdl/wsdl2java process and how to change this? It gets generated correct, when I just use rpc encoded style with typemappingversion 1.2 (not so if typemapping=1.1). Looks like typemappingversion gets ignored as soon as style is not RPC AND ENCODED, I have to use document/literal style because we want to include complex types with arrays later, and may have interop with .NET clients. RPC style generated wsdl (types only): DOC/LIT generated wsdl (types only): http://personmanager.test.axis.org"; xmlns="http://www.w3.org/2001/XMLSchema";> Thanks for help, Clemens Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
On Tue, Mar 25, 2008 at 1:00 PM, Mauro Molinari <[EMAIL PROTECTED]> wrote: > Lou Amodeo ha scritto: > > > Thank Deepal. I found your article very helpful. I didn't see any > > discussion regarding exception processing. If I have a class that throws > > somethnig like CustomerNotFoundException (extends Exception) is that > > supported?Thanks Again! > > In Axis2 1.3 it is not supported. > You might have a look at: > https://issues.apache.org/jira/browse/AXIS2-3239 > One other option: take a look at Jibx2Wsdl as it supports axis2. http://www.infoq.com/articles/sosnoski-code-first Works particularly well with hibernate, which I hope to doc someday. HTH, Robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
Lou Amodeo ha scritto: Thank Deepal. I found your article very helpful. I didn't see any discussion regarding exception processing. If I have a class that throws somethnig like CustomerNotFoundException (extends Exception) is that supported?Thanks Again! In Axis2 1.3 it is not supported. You might have a look at: https://issues.apache.org/jira/browse/AXIS2-3239 -- Mauro Molinari Software Developer [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
Thank Deepal. I found your article very helpful. I didn't see any discussion regarding exception processing. If I have a class that throws somethnig like CustomerNotFoundException (extends Exception) is that supported?Thanks Again! On 3/21/08, Deepal jayasinghe <[EMAIL PROTECTED]> wrote: > > > > Thanks for your fast response Deepal. Can you include the link to the > > atricle please. > http://www.developer.com/java/other/article.php/3726461 > > -Deepal > > > > > > > > On 3/21/08, *Deepal jayasinghe* <[EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]>> wrote: > > > > Lou Amodeo wrote: > > > Hi, I am new to Axis2 and trying to understand the basic > > capabilities > > > of Java2WSDL <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> > > mainly some > > guidelines on what the > > > supported capabilities and rules around developing POJO's with > > > various properties, method arguments, return types and > > > exceptions. Does the tool support JAX-WS annotations? Does this > > > change with Axis 1.4? I can't seem to find any specific > > documnetation > > > other than how to invoke the tool. Can someone point me to some > > > information on this? Are there any well-known usage rules like > Java > > > classes must conform to Java Beans etc? Thanks for your help > > I hope following article will help you to get an idea about the > > problem > > you have. > > > > Thank you! > > Deepal > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: [EMAIL PROTECTED] > > <mailto:[EMAIL PROTECTED]> > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
Thanks for your fast response Deepal. Can you include the link to the atricle please. http://www.developer.com/java/other/article.php/3726461 -Deepal On 3/21/08, *Deepal jayasinghe* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Lou Amodeo wrote: > Hi, I am new to Axis2 and trying to understand the basic capabilities > of Java2WSDL <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> mainly some guidelines on what the > supported capabilities and rules around developing POJO's with > various properties, method arguments, return types and > exceptions. Does the tool support JAX-WS annotations? Does this > change with Axis 1.4? I can't seem to find any specific documnetation > other than how to invoke the tool. Can someone point me to some > information on this? Are there any well-known usage rules like Java > classes must conform to Java Beans etc? Thanks for your help I hope following article will help you to get an idea about the problem you have. Thank you! Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
Thanks for your fast response Deepal. Can you include the link to the atricle please. On 3/21/08, Deepal jayasinghe <[EMAIL PROTECTED]> wrote: > > Lou Amodeo wrote: > > Hi, I am new to Axis2 and trying to understand the basic capabilities > > of Java2WSDL <mailto:[EMAIL PROTECTED]> mainly some guidelines on what the > > supported capabilities and rules around developing POJO's with > > various properties, method arguments, return types and > > exceptions. Does the tool support JAX-WS annotations? Does this > > change with Axis 1.4? I can't seem to find any specific documnetation > > other than how to invoke the tool. Can someone point me to some > > information on this? Are there any well-known usage rules like Java > > classes must conform to Java Beans etc? Thanks for your help > I hope following article will help you to get an idea about the problem > you have. > > Thank you! > Deepal > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: [Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
Lou Amodeo wrote: Hi, I am new to Axis2 and trying to understand the basic capabilities of Java2WSDL <mailto:[EMAIL PROTECTED]> mainly some guidelines on what the supported capabilities and rules around developing POJO's with various properties, method arguments, return types and exceptions. Does the tool support JAX-WS annotations? Does this change with Axis 1.4? I can't seem to find any specific documnetation other than how to invoke the tool. Can someone point me to some information on this? Are there any well-known usage rules like Java classes must conform to Java Beans etc? Thanks for your help I hope following article will help you to get an idea about the problem you have. Thank you! Deepal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Axis2] Axis2 1.3 Java2WSDL capabilities and limitations
Hi, I am new to Axis2 and trying to understand the basic capabilities of Java2WSDL <[EMAIL PROTECTED]> mainly some guidelines on what the supported capabilities and rules around developing POJO's with various properties, method arguments, return types and exceptions. Does the tool support JAX-WS annotations? Does this change with Axis 1.4? I can't seem to find any specific documnetation other than how to invoke the tool. Can someone point me to some information on this? Are there any well-known usage rules like Java classes must conform to Java Beans etc? Thanks for your help
Re: java2wsdl customize the "return" element name
Sorry -- it's a problem with the tool. The tool should recognize NCnames that map to prohibitted keywords and automatically convert the name (e.g., prepend it with "_") when mapping it to an object model. Anne On Sun, Mar 9, 2008 at 11:27 PM, Chris Hyzer <[EMAIL PROTECTED]> wrote: > > > > Thank you for your attention, but it is not a soap stack issue. It is an > XML parsing issue. Some scripting languages convert the XML to an object > model (neat trick), so any keyword (e.g. "function", "var", whatever) would > make it fail. So it would be nice to not force people use keywords in their > XML... Granted its difficult to forsee what all keywords are in all > programming languages, but "return" seems like a sure bet. :) Is there a > way to customize this? > > > > Thanks, > > Chris > > > > > - Original Message > From: Anne Thomas Manes <[EMAIL PROTECTED]> > To: axis-user@ws.apache.org; Chris Hyzer <[EMAIL PROTECTED]> > Sent: Sunday, March 9, 2008 3:15:07 PM > Subject: Re: java2wsdl customize the "return" element name > > File a bug report with Adobe. A SOAP stack should not barf on a valid > NCName like "return". > > Anne > > On Sat, Mar 8, 2008 at 11:53 PM, Chris Hyzer <[EMAIL PROTECTED]> wrote: > > > > Hey, > > Im using Axis2 (latest) and all defaults for inputs to Java2WSDL. I have > a > > simple service, and each operation has a "return" element in it. e.g. > > > > > > > > > > > > > > > > > > > type="ns:WsAddMemberResult"/> > > > > > > > > > > > > > > > > This means the XML that comes back looks like this: > > > > > > > > > > > > http://webservices.whatever/xsd";> > > > > > > > > http://www.w3.org/2001/XMLSchema-instance"; > > xsi:nil="true" /> > > > > I have someone connecting to the web service using flash or flex, and > there > > is an XML -> object converter, which converts the XML into a hierarchy of > > objects and fields. But since "return" is a keyword, it barfs. So, I was > > wondering if there is a way (besides hand-editing the WSDL or using XSLT) > to > > customize java2wsdl to get that element to be generated as "the_return" or > > something else besides "return". > > > > > > Thanks! > > Chris > > > > Here is the email from the user: > > > > Notice that the element name on line two of the response is named "return" > > (forget about the "ns" namespace for now). This is perfectly legal XML > but > > "return" is a reserved word in most languages and attempts to access the > > element directly cause problems when compiling the code. e.g. > > --- BEGIN EXAMPLE FLASH CODE--- > > var test : XML = XML("hello worldgood > > bye"); // casts string to xml > > debugit.text = test.body; > > debugit.text = test.child( "return" ); > > --- END EXAMPLE FLASH CODE--- > > All of the above code works fine. Notice that I access the "body" > > element directly but accessed the "return" element using a child method. > > The compiler complains if I attempt to use the syntax "test.return" or any > > variation of it: "test.return.toString()". > > Naming an element "return" is valid; I'm suggesting that it is probably > not > > good practice to use common reserve words as element names (or attribute > > names for that matter). > > > > > > > > > > > > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > > now. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > Looking for last minute shopping deals? Find them fast with Yahoo! Search. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java2wsdl customize the "return" element name
Thank you for your attention, but it is not a soap stack issue. It is an XML parsing issue. Some scripting languages convert the XML to an object model (neat trick), so any keyword (e.g. "function", "var", whatever) would make it fail. So it would be nice to not force people use keywords in their XML... Granted its difficult to forsee what all keywords are in all programming languages, but "return" seems like a sure bet. :) Is there a way to customize this? Thanks, Chris - Original Message From: Anne Thomas Manes <[EMAIL PROTECTED]> To: axis-user@ws.apache.org; Chris Hyzer <[EMAIL PROTECTED]> Sent: Sunday, March 9, 2008 3:15:07 PM Subject: Re: java2wsdl customize the "return" element name File a bug report with Adobe. A SOAP stack should not barf on a valid NCName like "return". Anne On Sat, Mar 8, 2008 at 11:53 PM, Chris Hyzer <[EMAIL PROTECTED]> wrote: > > Hey, > Im using Axis2 (latest) and all defaults for inputs to Java2WSDL. I have a > simple service, and each operation has a "return" element in it. e.g. > > > > > > > > > type="ns:WsAddMemberResult"/> > > > > > > > > This means the XML that comes back looks like this: > > > > > > http://webservices.whatever/xsd";> > > > > http://www.w3.org/2001/XMLSchema-instance"; > xsi:nil="true" /> > > I have someone connecting to the web service using flash or flex, and there > is an XML -> object converter, which converts the XML into a hierarchy of > objects and fields. But since "return" is a keyword, it barfs. So, I was > wondering if there is a way (besides hand-editing the WSDL or using XSLT) to > customize java2wsdl to get that element to be generated as "the_return" or > something else besides "return". > > > Thanks! > Chris > > Here is the email from the user: > > Notice that the element name on line two of the response is named "return" > (forget about the "ns" namespace for now). This is perfectly legal XML but > "return" is a reserved word in most languages and attempts to access the > element directly cause problems when compiling the code. e.g. > --- BEGIN EXAMPLE FLASH CODE--- > var test : XML = XML("hello worldgood > bye"); // casts string to xml > debugit.text = test.body; > debugit.text = test.child( "return" ); > --- END EXAMPLE FLASH CODE--- > All of the above code works fine. Notice that I access the "body" > element directly but accessed the "return" element using a child method. > The compiler complains if I attempt to use the syntax "test.return" or any > variation of it: "test.return.toString()". > Naming an element "return" is valid; I'm suggesting that it is probably not > good practice to use common reserve words as element names (or attribute > names for that matter). > > > > > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs
Re: java2wsdl question
"Wrapped" style produces a document/literal service which provides the best interoperability with .NET. It's the way to go. Anne On Mon, Mar 3, 2008 at 10:52 AM, Luca Rasconi <[EMAIL PROTECTED]> wrote: > Hi all, my goal is to create an interoperable ws (java server and dot > net client) so I would like to create document style wsdl, so I: > - wrote my ws in java and then build wsdl using java2wsd lant task: > output="${wsdl.dir}/buy.wsdl" > location="http://client.yalp.it/buy/services/FetWrapper"; > namespace="it.telecomitalia.rossoalice.fetwrapper.ws.server" > > classname="it.telecomitalia.rossoalice.fetwrapper.ws.server.FetWrapper" > style="document" > > > > > > > > the problem is when i run the task i've this error: > Please register a typemapping/beanmapping for > 'it.telecomitalia.client.interop.beans.GWProduct' > > what'is the meaning? what do i've to do? is there a way to automatically > register it? > > If I generate wsdl with style="wrapped" i've no wanring message but what > kind of wsdl have I as result? > Using a dot net client the marshalling dot net side doesn't work. > > Any suggestion is appreciated. > Luca > > > - > 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: java2wsdl customize the "return" element name
File a bug report with Adobe. A SOAP stack should not barf on a valid NCName like "return". Anne On Sat, Mar 8, 2008 at 11:53 PM, Chris Hyzer <[EMAIL PROTECTED]> wrote: > > Hey, > Im using Axis2 (latest) and all defaults for inputs to Java2WSDL. I have a > simple service, and each operation has a "return" element in it. e.g. > > > > > > > > >type="ns:WsAddMemberResult"/> > > > > > > > > This means the XML that comes back looks like this: > > > > > > http://webservices.whatever/xsd";> > > > > http://www.w3.org/2001/XMLSchema-instance"; > xsi:nil="true" /> > > I have someone connecting to the web service using flash or flex, and there > is an XML -> object converter, which converts the XML into a hierarchy of > objects and fields. But since "return" is a keyword, it barfs. So, I was > wondering if there is a way (besides hand-editing the WSDL or using XSLT) to > customize java2wsdl to get that element to be generated as "the_return" or > something else besides "return". > > > Thanks! > Chris > > Here is the email from the user: > > Notice that the element name on line two of the response is named "return" > (forget about the "ns" namespace for now). This is perfectly legal XML but > "return" is a reserved word in most languages and attempts to access the > element directly cause problems when compiling the code. e.g. > --- BEGIN EXAMPLE FLASH CODE--- > var test : XML = XML("hello worldgood > bye"); // casts string to xml > debugit.text = test.body; > debugit.text = test.child( "return" ); > --- END EXAMPLE FLASH CODE--- > All of the above code works fine. Notice that I access the "body" > element directly but accessed the "return" element using a child method. > The compiler complains if I attempt to use the syntax "test.return" or any > variation of it: "test.return.toString()". > Naming an element "return" is valid; I'm suggesting that it is probably not > good practice to use common reserve words as element names (or attribute > names for that matter). > > > > > > > Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it > now. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java2wsdl customize the "return" element name
Hey, Im using Axis2 (latest) and all defaults for inputs to Java2WSDL. I have a simple service, and each operation has a "return" element in it. e.g. This means the XML that comes back looks like this: http://webservices.whatever/xsd";> http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="true" /> I have someone connecting to the web service using flash or flex, and there is an XML -> object converter, which converts the XML into a hierarchy of objects and fields. But since "return" is a keyword, it barfs. So, I was wondering if there is a way (besides hand-editing the WSDL or using XSLT) to customize java2wsdl to get that element to be generated as "the_return" or something else besides "return". Thanks! Chris Here is the email from the user: Notice that the element name on line two of the response is named "return" (forget about the "ns" namespace for now). This is perfectly legal XML but "return" is a reserved word in most languages and attempts to access the element directly cause problems when compiling the code. e.g. --- BEGIN EXAMPLE FLASH CODE--- var test : XML = XML("hello worldgood bye"); // casts string to xml debugit.text = test.body; debugit.text = test.child( "return" ); --- END EXAMPLE FLASH CODE--- All of the above code works fine. Notice that I access the "body" element directly but accessed the "return" element using a child method. The compiler complains if I attempt to use the syntax "test.return" or any variation of it: "test.return.toString()". Naming an element "return" is valid; I'm suggesting that it is probably not good practice to use common reserve words as element names (or attribute names for that matter). Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Re: java2wsdl question
Ciao Martin, I've a jar containing the beans and after execute wsdl2java i've a new pkg with the same name with other classes with serialize and deserailizer, so I think there are class entity. By the way if I use default style (no style attribute in the axis-java2wsdl ant task) all works fine. tnx Luca Martin Gainty ha scritto: because wrapped effective wraps or includes the entitys datatype It seems your Java class is referencing a class entity which is not yet defined please display to group source for FetWrapper.java as well as any or all classes defined within package it.telecomitalia.client.interop.beans Molte Grazie Martin- - Original Message - From: "Luca Rasconi" <[EMAIL PROTECTED]> To: Sent: Monday, March 03, 2008 9:52 AM Subject: java2wsdl question Hi all, my goal is to create an interoperable ws (java server and dot net client) so I would like to create document style wsdl, so I: - wrote my ws in java and then build wsdl using java2wsd lant task: http://client.yalp.it/buy/services/FetWrapper"; namespace="it.telecomitalia.rossoalice.fetwrapper.ws.server" classname="it.telecomitalia.rossoalice.fetwrapper.ws.server.FetWrapper" style="document" > the problem is when i run the task i've this error: Please register a typemapping/beanmapping for 'it.telecomitalia.client.interop.beans.GWProduct' what'is the meaning? what do i've to do? is there a way to automatically register it? If I generate wsdl with style="wrapped" i've no wanring message but what kind of wsdl have I as result? Using a dot net client the marshalling dot net side doesn't work. Any suggestion is appreciated. Luca - 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: java2wsdl question
did you already do a for java2wsdl? On Mon, Mar 3, 2008 at 10:52 PM, Luca Rasconi <[EMAIL PROTECTED]> wrote: > Hi all, my goal is to create an interoperable ws (java server and dot > net client) so I would like to create document style wsdl, so I: > - wrote my ws in java and then build wsdl using java2wsd lant task: > output="${wsdl.dir}/buy.wsdl" >location="http://client.yalp.it/buy/services/FetWrapper"; >namespace="it.telecomitalia.rossoalice.fetwrapper.ws.server" > > classname="it.telecomitalia.rossoalice.fetwrapper.ws.server.FetWrapper" >style="document" >> > > > > > > the problem is when i run the task i've this error: > Please register a typemapping/beanmapping for > 'it.telecomitalia.client.interop.beans.GWProduct' > > what'is the meaning? what do i've to do? is there a way to automatically > register it? > > If I generate wsdl with style="wrapped" i've no wanring message but what > kind of wsdl have I as result? > Using a dot net client the marshalling dot net side doesn't work. > > Any suggestion is appreciated. > Luca > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Website: http://chitgoks.freehostia.com Java Casino Games: http://chitgoks.tripod.com My Blogs: http://chitgoks.blogspot.com http://wuhtevah.blogspot.com
java2wsdl question
Hi all, my goal is to create an interoperable ws (java server and dot net client) so I would like to create document style wsdl, so I: - wrote my ws in java and then build wsdl using java2wsd lant task: http://client.yalp.it/buy/services/FetWrapper"; namespace="it.telecomitalia.rossoalice.fetwrapper.ws.server" classname="it.telecomitalia.rossoalice.fetwrapper.ws.server.FetWrapper" style="document" > the problem is when i run the task i've this error: Please register a typemapping/beanmapping for 'it.telecomitalia.client.interop.beans.GWProduct' what'is the meaning? what do i've to do? is there a way to automatically register it? If I generate wsdl with style="wrapped" i've no wanring message but what kind of wsdl have I as result? Using a dot net client the marshalling dot net side doesn't work. Any suggestion is appreciated. Luca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[axis2] Unknown Constant Tag Error Encountered When Using java2wsdl
Hi, I'm running java2wsdl on a class file and got the following error: Exception in thread "main" java.lang.ClassFormatError: Unknown constant tag 13 in class file MyClass I'm using Axis2 1.3. Research on the web tells me that this is potentially due to a difference in the java version that was used to compile MyClass and the java version that Axis needs to run java2wsdl. If this is correct, can anyone tell me what java version I need to run java2wsdl? If I'm all wrong about this, please let me know what the error means. In ignorance, Steve
Axis2 - Java2WSDL
Hi I have a list of extra classes for which I need to generate WSDL types definition. The org.apache.ws.java2wsdl.Java2WSDL class takes an option -xc class1 -xc class2 . . The problem is that I have a list of classes, which I need to process. In Axis 1 I had the -extraClasses option which could take the list of classes. -extraClasses class1,class2, Please let me know if I have a better option. Thanks Pradeep
Re: JAVA2wsdl problems
Deepal Jayasinghe wrote: > >> >> 1) I have been using AXIS2's JAVA2WSDL functionality and all was going >> well >> but had some issues when I tried to use the WSDL it generated into other >> programs for use. It seems that its not generating a "compliant" WSDL. >> When I imported the generated WSDL into XMLSpy just to validate it, it >> found >> a bunch of errors. > What are they ? >> Most of the problems there had to do with the MIME parts >> not being named correctly. What has been everyones experience in using >> the >> WSDLs generated into other programs. Any issues? >> > could you please send us your java class so that we can looking to it > and fix the issues. > > Ok. Here are the errors that pop up: > 1) I have a class called SOATestLabService, and it has a method called: int getScalarInteger(), which does nothing but return an integer value from the service, and setScalarInteger(int i), which sets an integer. Here is what is generated in the WSDL: http://schemas.xmlsoap.org/wsdl/"; xmlns:ns1="http://soatestlab"; xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl"; xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:ns0="http://io.java/xsd"; xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"; targetNamespace="http://soatestlab";> http://soatestlab"; attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://soatestlab";> http://schemas.xmlsoap.org/soap/http"; style="document"/> http://schemas.xmlsoap.org/soap/http"; style="document"/> http://soatestlab:8080/axis2/services/SOATestLabService"/> http://soatestlab:8080/axis2/services/SOATestLabService"/> http://soatestlab:8080/axis2/services/SOATestLabService"/> The problems with the above WSDL are: ERROR 1) in SOATestLabServiceHttpBinding attribute 'part' in extensibility element refers to part 'getScalarInteger' on which could not be found in message 'getScalarIntegerRequestMessage'. ERROR 2) in SOATestLabServiceSOAP11Binding attribute 'part' in extensibility element refers to part 'getScalarInteger' on which could not be found in message 'getScalarIntegerRequestMessage'. ERROR 3) in SOATestLabServiceSOAP12Bindingattribute 'part' in extensibility element refers to part 'getScalarInteger' on which could not be found in message 'getScalarIntegerRequestMessage'. I think these are due to the fact that the getScalarInteger has no args, so when I remove this section from each binding in the WSDL they are not noted as an error anymore. For example, this changes: to ISSUE #1: Why is JAVA2WSDL creating INPUT section in the binding for methods with no args? == ERROR 4) in SOATestLabServiceHttpBinding attribute 'part' in extensibility element refers to part 'getScalarInteger' on which could not be found in message 'getScalarIntegerResponseMessage'. ERROR 5) in SOATestLabServiceSOAP11Binding attribute 'part' in extensibility element refers to part 'getScalarInteger' on which could not be found in message 'getScalarIntegerResponseMessage'. ERROR 6) in SOATestLabServiceSOAP12Bindingattribute 'part' in extensibility element refers to part 'getScalarInteger' on which could not be found in message 'getSc