Re: Axis2 Codegen Wizard
Mike, Ensure that you have added all the necessary Axis library jar files and supporting jar files to compile your Java source code in Java Build Path. If so this would not show this ClassNotFound error. Also check while adding the class folder name Have you added the project's bin directory. Hope this would resolve your problem. If none of the suggestion were resolving your problem then use command line utility Java2WSDL to generate Java2WSDL. Regards, Thamizhannal P --- On Sun, 15/3/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Date: Sunday, 15 March, 2009, 8:55 AM #yiv825926677 .hmmessage P { PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;MARGIN:0px;PADDING-TOP:0px;} #yiv825926677 { FONT-SIZE:10pt;FONT-FAMILY:Verdana;} Martin, First, thank you for your reply. I most certainly can supply the source. Do you need just the class that I am try to generate the WSDL for, supporting classes or the entire project? Let me know and I'll get it to you right away. Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Saturday, March 14, 2009 9:59 PM Subject: RE: Axis2 Codegen Wizard Mike- can you Include the java class contents so we can test it here? thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 14 Mar 2009 18:06:21 -0400 From: mtarullo...@optonline.net Subject: Axis2 Codegen Wizard To: axis-user@ws.apache.org I am having a problem generating a WSDL file from my Java code. The Java source/classpath selection page of the Axis2 Codegen Wizard appears to have several bugs. 1) when I enter the fully qualified class name an error message stating that the class name is not properly terminated is displayed; even after I finish entering the fully quilified name the error message remains displayed 2) after adding the folder containing the class files and clicking the Test Class Loading button I get an error message that says a java.lang.ClassNotFoundException was thrown Is there a fix for this? I have added the stax-api-1.0.1.jar and backport-util-concurrent-3.1.jar file to the Axis2 Codegen Wizard \lib folder in Eclipse\plugins. This did not solve the problem for me. This fix was for a target invocation exception, if I recall. Is this all related to the same problem or are there two different problems here? Any workarounds until this gets fixed? Is using Maven2 an alternative? Any help would be greatly appreciated. BTW: I'm using Eclipse Ganymede(v3.4.1), Axis2 v1.4.1 and Axis2 Codegen Wizard v1.3.0 Windows Live™ Contacts: Organize your contact list. Check it out. 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 Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
Re: Axis2 Codegen Wizard
Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As for my Java Build Path it currently contains the following libraries: MySQL Connector Jar File Apache Tomcat v5.5 EAR Libraries Java System Library JDK v1.6.0 Web App Libraries (which contains a number of Axis2 jar files) I noticed that the stax-api jar file that had to be added into the Axis2 Codegen Wizard lib folder under the Eclipse plugins was not listed as one of the jar files under Web App Libraries. I might attempt to add this jar file to the build path and see if that helps since it was one of the files mentioned in the solution I tried. Also, there are various versions of this solution, some say to use the stax-api-1.0.1.jar others say to use the geronimo-stax-api_1.1_spec-1.0.1.jar. I have tried both and neither work. Can you, or any one else, comment on which is the correct file of the two? As for the ~\bin folder, after entering the fully qualified class name I click the Add Folder button and add the path to my projects build folder and the sub-folder under it that contains the class file I am trying to generate WSDL for. BTW, I have also tried Add Jar button and pointed the tool to a jar file I created for my project. This did not work either. Mike - Original Message - From: Thamizh To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 2:40 AM Subject: Re: Axis2 Codegen Wizard Mike, Ensure that you have added all the necessary Axis library jar files and supporting jar files to compile your Java source code in Java Build Path. If so this would not show this ClassNotFound error. Also check while adding the class folder name Have you added the project's bin directory. Hope this would resolve your problem. If none of the suggestion were resolving your problem then use command line utility Java2WSDL to generate Java2WSDL. Regards, Thamizhannal P --- On Sun, 15/3/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Date: Sunday, 15 March, 2009, 8:55 AM Martin, First, thank you for your reply. I most certainly can supply the source. Do you need just the class that I am try to generate the WSDL for, supporting classes or the entire project? Let me know and I'll get it to you right away. Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Saturday, March 14, 2009 9:59 PM Subject: RE: Axis2 Codegen Wizard Mike- can you Include the java class contents so we can test it here? thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 14 Mar 2009 18:06:21 -0400 From: mtarullo...@optonline.net Subject: Axis2 Codegen Wizard To: axis-user@ws.apache.org I am having a problem generating a WSDL file from my Java code. The Java source/classpath selection page of the Axis2 Codegen Wizard appears to have several bugs. 1) when I enter the fully qualified class name an error message stating that the class name is not properly terminated is displayed; even after I finish entering the fully quilified name the error message remains displayed 2) after adding the folder containing the class files and clicking the Test Class Loading button I get an error message that says a java.lang.ClassNotFoundException was thrown Is there a fix for this? I have added the stax-api-1.0.1.jar and backport-util-concurrent-3.1.jar file to the Axis2 Codegen Wizard \lib folder in Eclipse\plugins. This did not solve the problem for me. This fix was for a target invocation exception, if I recall. Is this all related to the same problem or are there two different problems here? Any workarounds until this gets fixed? Is using Maven2 an alternative? Any help would be greatly appreciated. BTW: I'm using Eclipse Ganymede(v3.4.1), Axis2 v1.4.1 and Axis2 Codegen Wizard v1.3.0
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=region5item=java2wsdl_menu [2] http://wso2.org/tools [3] http://wso2.org/projects/wsas On Thu, Mar 12, 2009 at 9:07 PM, Michael 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 (Eclipse\plug-ins\Axis2 code generator\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
Re: Axis2 firsts steps
Hi Simon, You could also try out the WSO2 Web Services Application Server [1]. It is a server built to host Web Services and is built on top of Axis2. It is free and open source and available under the Apache License. It can be run standalone and has a easy to use management console. Thanks, Keith. [1] http://wso2.org/projects/wsas On Sat, Mar 14, 2009 at 12:30 AM, Simon Côté capitainec...@hotmail.comwrote: Hi, I'm sorry to write you, but at this point you are my last hope. I'm a newbe in the WS world. A collegue have suggest me to use your product Axis2 for easily create wsdl code from my Java class. I'm trying to go through the installation guide. I don't have a real server, so I have installed the Axis2 standalone installation. I'm at point that I should install Axis2 in a Servlet Container. There my first question: 1) Do we consider the axis2 installation like a Servlet Container? Do I to put the axis2.war file just created in the webapp folder of my Axis2 installation folder? The problem at the base of me email is that I don't have the Axis web application home page. After have called the axis2server.bat executable, I try to reach the home page by the url http://localhost:8080/axis2;, by I'm instantly redirected to the page http://localhost:8080/axis2/services/; ?? Thanks for any explication, Have a nice day Simon -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
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=region5item=java2wsdl_menu [2] http://wso2.org/tools [3] http://wso2.org/projects/wsas On Thu, Mar 12, 2009 at 9:07 PM, Michael 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 (Eclipse\plug-ins\Axis2 code generator\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: Axis2 Codegen Wizard
if you can provide the class we can determine this is error is eclipse-plugin problem or Java2WSDL also I prefer to create my .project and .classpath from within eclipse environment after downloading 'blessed' plugins thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 08:06:01 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As for my Java Build Path it currently contains the following libraries: MySQL Connector Jar File Apache Tomcat v5.5 EAR Libraries Java System Library JDK v1.6.0 Web App Libraries (which contains a number of Axis2 jar files) I noticed that the stax-api jar file that had to be added into the Axis2 Codegen Wizard lib folder under the Eclipse plugins was not listed as one of the jar files under Web App Libraries. I might attempt to add this jar file to the build path and see if that helps since it was one of the files mentioned in the solution I tried. Also, there are various versions of this solution, some say to use the stax-api-1.0.1.jar others say to use the geronimo-stax-api_1.1_spec-1.0.1.jar. I have tried both and neither work. Can you, or any one else, comment on which is the correct file of the two? As for the ~\bin folder, after entering the fully qualified class name I click the Add Folder button and add the path to my projects build folder and the sub-folder under it that contains the class file I am trying to generate WSDL for. BTW, I have also tried Add Jar button and pointed the tool to a jar file I created for my project. This did not work either. Mike - Original Message - From: Thamizh To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 2:40 AM Subject: Re: Axis2 Codegen Wizard Mike, Ensure that you have added all the necessary Axis library jar files and supporting jar files to compile your Java source code in Java Build Path. If so this would not show this ClassNotFound error. Also check while adding the class folder name Have you added the project's bin directory. Hope this would resolve your problem. If none of the suggestion were resolving your problem then use command line utility Java2WSDL to generate Java2WSDL. Regards, Thamizhannal P --- On Sun, 15/3/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Date: Sunday, 15 March, 2009, 8:55 AM Martin, First, thank you for your reply. I most certainly can supply the source. Do you need just the class that I am try to generate the WSDL for, supporting classes or the entire project? Let me know and I'll get it to you right away. Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Saturday, March 14, 2009 9:59 PM Subject: RE: Axis2 Codegen Wizard Mike- can you Include the java class contents so we can test it here? thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sat, 14 Mar 2009 18:06:21 -0400 From: mtarullo...@optonline.net Subject: Axis2 Codegen Wizard To: axis-user@ws.apache.org I am having a problem generating a WSDL file from my Java code. The Java source/classpath selection page of the Axis2 Codegen Wizard appears to have several bugs. 1) when I enter the fully qualified
unsubscribe
unsubscribe
problem using jaxws WS on tomcat
Hello everybody, I have some issues trying to deploy my annotated service on Tomcat 6. When I try to deploy the same WS using the standalone server of Axis2 everything works fine (I'm using Java6 and latest stable versions of Tomcat and Axis2.war). Using tomcat, I cannot obtain the wsdl but I can get the wsdl2! Does exist any version limitation or extra step to configure the system? I tried [1] and it didn't work and I think I is applied only for Java5, isn't it?. Any clue is welcome. At the end of this message you can see the error message displayed on the browser when I click on the service URL Thank you javier [1] http://weblogs.java.net/blog/ramapulavarthi/archive/2007/07/running_jaxws_s.html javax.xml.ws.WebServiceException: Error occurred generating WSDL file for Web service implementation class {example.ws.Sample}: {java.lang.ClassNotFoundException: com.sun.tools.ws.spi.WSToolsObjectFactory} at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:187) at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.initialize(JAXWSRIWSDLGenerator.java:371) at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.getWSDL(JAXWSRIWSDLGenerator.java:364) at org.apache.axis2.description.AxisService.printWSDL(AxisService.java:1322) at org.apache.axis2.transport.http.ListingAgent.processListService(ListingAgent.java:287) at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:242) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.ClassNotFoundException: com.sun.tools.ws.spi.WSToolsObjectFactory at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:169) at org.apache.axis2.jaxws.description.builder.JAXWSRIWSDLGenerator.generateWsdl(JAXWSRIWSDLGenerator.java:166) ... 19 more
RE: Axis2 Codegen Wizard
%AXIS_HOME%\samples\monmouthJava2WSDL -cn edu.monmouth.rri.ahett.pubwebservice.PublisherWebService Using AXIS2_HOME: F:\AXIS\axis2-1.4 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_04 F:\AXIS\axis2-1.4\samples\monmouthdir *.wsdl Volume in drive F is DRV4_VOL1 Volume Serial Number is F8AC-7975 Directory of F:\AXIS\axis2-1.4\samples\monmouth 03/15/2009 06:14 PM15,239 PublisherWebService.wsdl its the plugin.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 12:44:58 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Martin, Please see attached Jar file. I provided all the source code for my project, just in case you need it. The following are the source code files I'm using when trying to generate a WSDL file: PublisherWebService.java (implements IPublish.java) SubscriberWebService.java (implements ISubscribe.java) If there is anything else you need please do not hesitate to contact me. Thanks, Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 9:55 AM Subject: RE: Axis2 Codegen Wizard if you can provide the class we can determine this is error is eclipse-plugin problem or Java2WSDL also I prefer to create my .project and .classpath from within eclipse environment after downloading 'blessed' plugins thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 08:06:01 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As for my Java Build Path it currently contains the following libraries: MySQL Connector Jar File Apache Tomcat v5.5 EAR Libraries Java System Library JDK v1.6.0 Web App Libraries (which contains a number of Axis2 jar files) I noticed that the stax-api jar file that had to be added into the Axis2 Codegen Wizard lib folder under the Eclipse plugins was not listed as one of the jar files under Web App Libraries. I might attempt to add this jar file to the build path and see if that helps since it was one of the files mentioned in the solution I tried. Also, there are various versions of this solution, some say to use the stax-api-1.0.1.jar others say to use the geronimo-stax-api_1.1_spec-1.0.1.jar. I have tried both and neither work. Can you, or any one else, comment on which is the correct file of the two? As for the ~\bin folder, after entering the fully qualified class name I click the Add Folder button and add the path to my projects build folder and the sub-folder under it that contains the class file I am trying to generate WSDL for. BTW, I have also tried Add Jar button and pointed the tool to a jar file I created for my project. This did not work either. Mike - Original Message - From: Thamizh To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 2:40 AM Subject: Re: Axis2 Codegen Wizard Mike, Ensure that you have added all the necessary Axis library jar files and supporting jar files to compile your Java source code in Java Build Path. If so this would not show this ClassNotFound error. Also check while adding the class folder name Have you added the project's bin directory. Hope this would resolve your problem. If none of the suggestion were resolving your problem then use command line utility Java2WSDL to generate Java2WSDL. Regards, Thamizhannal P --- On Sun, 15/3/09, Michael mtarullo...@optonline.net wrote: From: Michael mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Date: Sunday, 15 March, 2009, 8:55 AM Martin, First, thank you for
Re: Example for WS-SecurityPolicy in WSDL?
Hi Nandana, I've attached one of several variations I've tried which results in this error. I did find that if I take out the TransportBinding part I don't get the error. Thanks for taking a look! - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, Can you post the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the wsdl:binding, but each time I get: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260) [java] ... 2 more [java] Caused by: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492) [java] ... 3 more [java] Java Result: 1 Has anyone been able to get the client-side generation for WS-SecurityPolicy in WSDL to work? If so, can you supply an example WSDL? Thanks, - Dennis -- Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 library-with-policy.wsdl Description: application/wsdl
Re: Axis2 Codegen Wizard
Martin, Thanks for your help. If you think it's going to be some time before the plug-in is fixed would you mind generating the WSDL file for the SubscriberWebService also and sending that to me. Or give me the instructions to execute the Java2WSDL command line, which it appears you did. Either way, I need to include these two WSDL files on a release CD very soon. I think this will hold me over until my next release, at wich time I'm sure the problem with the plugin will be resolved. Once again, thank you very much. Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 6:21 PM Subject: RE: Axis2 Codegen Wizard %AXIS_HOME%\samples\monmouthJava2WSDL -cn edu.monmouth.rri.ahett.pubwebservice.PublisherWebService Using AXIS2_HOME: F:\AXIS\axis2-1.4 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_04 F:\AXIS\axis2-1.4\samples\monmouthdir *.wsdl Volume in drive F is DRV4_VOL1 Volume Serial Number is F8AC-7975 Directory of F:\AXIS\axis2-1.4\samples\monmouth 03/15/2009 06:14 PM15,239 PublisherWebService.wsdl its the plugin.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. -- Date: Sun, 15 Mar 2009 12:44:58 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Martin, Please see attached Jar file. I provided all the source code for my project, just in case you need it. The following are the source code files I'm using when trying to generate a WSDL file: PublisherWebService.java (implements IPublish.java) SubscriberWebService.java (implements ISubscribe.java) If there is anything else you need please do not hesitate to contact me. Thanks, Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 9:55 AM Subject: RE: Axis2 Codegen Wizard if you can provide the class we can determine this is error is eclipse-plugin problem or Java2WSDL also I prefer to create my .project and .classpath from within eclipse environment after downloading 'blessed' plugins thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 08:06:01 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As for my Java Build Path it currently contains the following libraries: MySQL Connector Jar File Apache Tomcat v5.5 EAR Libraries Java System Library JDK v1.6.0 Web App Libraries (which contains a number of Axis2 jar files) I noticed that the stax-api jar file that had to be added into the Axis2 Codegen Wizard lib folder under the Eclipse plugins was not listed as one of the jar files under Web App Libraries. I might attempt to add this jar file to the build path and see if that helps since it was one of the files mentioned in the solution I tried. Also, there are various versions of this solution, some say to use the stax-api-1.0.1.jar others say to use the geronimo-stax-api_1.1_spec-1.0.1.jar. I have tried both and neither work. Can you, or any one else, comment on which is the correct file of the two? As for the ~\bin folder, after entering the fully qualified class name I click the Add Folder button and add the path to my projects build folder and the sub-folder under it that contains the class file I am trying to generate WSDL for. BTW, I have also tried Add Jar button and pointed the tool to a jar file I created for my project. This did not work either. Mike - Original Message - From: Thamizh To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 2:40 AM Subject: Re: Axis2 Codegen Wizard Mike, Ensure that you have added all the necessary Axis library jar files and
Re: Axis2 Codegen Wizard
Thank you! Any idea whan the plug-in will be fixed? Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 8:53 PM Subject: RE: Axis2 Codegen Wizard done! cd %AXIS2_HOME%\samples\monmouth javac .\edu\monmouth\rri\ahett\subwebservice\SubscriberWebService.wsdl Java2WSDL -cn edu.monmouth.rri.ahett.subwebservice.SubscriberWebService Using AXIS2_HOME: F:\AXIS\axis2-1.4 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_04 %AXIS2_HOME%\samples\monmouthdir *.wsdl Volume in drive F is DRV4_VOL1 Volume Serial Number is F8AC-7975 Directory of F:\AXIS\axis2-1.4\samples\monmouth 03/15/2009 08:45 PM30,096 SubscriberWebService.wsdl *wsdl is attached* Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. -- Date: Sun, 15 Mar 2009 20:33:16 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Martin, Thanks for your help. If you think it's going to be some time before the plug-in is fixed would you mind generating the WSDL file for the SubscriberWebService also and sending that to me. Or give me the instructions to execute the Java2WSDL command line, which it appears you did. Either way, I need to include these two WSDL files on a release CD very soon. I think this will hold me over until my next release, at wich time I'm sure the problem with the plugin will be resolved. Once again, thank you very much. Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 6:21 PM Subject: RE: Axis2 Codegen Wizard %AXIS_HOME%\samples\monmouthJava2WSDL -cn edu.monmouth.rri.ahett.pubwebservice.PublisherWebService Using AXIS2_HOME: F:\AXIS\axis2-1.4 Using JAVA_HOME:C:\Program Files\Java\jdk1.6.0_04 F:\AXIS\axis2-1.4\samples\monmouthdir *.wsdl Volume in drive F is DRV4_VOL1 Volume Serial Number is F8AC-7975 Directory of F:\AXIS\axis2-1.4\samples\monmouth 03/15/2009 06:14 PM15,239 PublisherWebService.wsdl its the plugin.. Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Sun, 15 Mar 2009 12:44:58 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Martin, Please see attached Jar file. I provided all the source code for my project, just in case you need it. The following are the source code files I'm using when trying to generate a WSDL file: PublisherWebService.java (implements IPublish.java) SubscriberWebService.java (implements ISubscribe.java) If there is anything else you need please do not hesitate to contact me. Thanks, Mike - Original Message - From: Martin Gainty To: axis-user@ws.apache.org Sent: Sunday, March 15, 2009 9:55 AM Subject: RE: Axis2 Codegen Wizard if you can provide the class we can determine this is error is eclipse-plugin problem or Java2WSDL also I prefer to create my .project and .classpath from within eclipse environment after downloading 'blessed' plugins thanks, Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. -- Date: Sun, 15 Mar 2009 08:06:01 -0400 From: mtarullo...@optonline.net Subject: Re: Axis2 Codegen Wizard To: axis-user@ws.apache.org Thamizhannal, Thank you for your suggestions, particularly the java2wsdl command line tool. I will certainly give this a try as I urgently need to create the WSDL for my next project release. As
Dr_Frank Klaus/MS/WLB ist außer Haus.
Ich werde ab 16.03.2009 nicht im Büro sein. Ich kehre zurück am 20.03.2009. Ich werde Ihre Nachricht nach meiner Rückkehr beantworten. In dringenden Fällen wenden Sie sich bitte an: w...@westlb.de Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided.
RE: Example for WS-SecurityPolicy in WSDL?
hard-gated by lack of create-project.xml in 1.4.1 distros from the doc The recommended procedure is to run the create-project.xml (in the modules\tool directory of the source distribution) i'll see if i can work around Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. Date: Mon, 16 Mar 2009 11:42:29 +1300 From: d...@sosnoski.com To: axis-user@ws.apache.org Subject: Re: Example for WS-SecurityPolicy in WSDL? Hi Nandana, I've attached one of several variations I've tried which results in this error. I did find that if I take out the TransportBinding part I don't get the error. Thanks for taking a look! - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, Can you post the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the wsdl:binding, but each time I get: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260) [java] ... 2 more [java] Caused by: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492) [java] ... 3 more [java] Java Result: 1 Has anyone been able to get the client-side generation for WS-SecurityPolicy in WSDL to work? If so, can you supply an example WSDL? Thanks, - Dennis -- Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 _ Windows Live™ Groups: Create an online spot for your favorite groups to meet. http://windowslive.com/online/groups?ocid=TXT_TAGLM_WL_groups_032009
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=region5item=java2wsdl_menu https://tools.wso2.org/tools/carbon/java2wsdl/index.jsp?region=region5item=java2wsdl_menu [2] http://wso2.org/tools [3] http://wso2.org/projects/wsas On Thu, Mar 12, 2009 at 9:07 PM, Michael mtarullo...@optonline.net 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 (Eclipse\plug-ins\Axis2 code generator\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: Example for WS-SecurityPolicy in WSDL?
Hi Dennis, I think the problem is with the serialization of Transport binding assertion without a transport token. What are your security requirements ? If you only need to have the username token , you can remove the Transport binding assertion completely and have only the SupportingTokens assertion in the policy. If you also need to enforce https transport, you can add a HttpsToken as a transport token. thanks, Nandana On Mon, Mar 16, 2009 at 4:12 AM, Dennis Sosnoski d...@sosnoski.com wrote: Hi Nandana, I've attached one of several variations I've tried which results in this error. I did find that if I take out the TransportBinding part I don't get the error. Thanks for taking a look! - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, Can you post the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski d...@sosnoski.commailto: d...@sosnoski.com wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the wsdl:binding, but each time I get: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260) [java] ... 2 more [java] Caused by: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492) [java] ... 3 more [java] Java Result: 1 Has anyone been able to get the client-side generation for WS-SecurityPolicy in WSDL to work? If so, can you supply an example WSDL? Thanks, - Dennis --Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
Re: Example for WS-SecurityPolicy in WSDL?
Hi Nandana, Yes, I understand that the Transport assertion is not contributing anything useful in this case. AFAIK it's still valid, though, and needs to be supported. Is the error fixed in the current (and 1.5 branch) codebase? If not, should I create a Jira? Thanks, - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, I think the problem is with the serialization of Transport binding assertion without a transport token. What are your security requirements ? If you only need to have the username token , you can remove the Transport binding assertion completely and have only the SupportingTokens assertion in the policy. If you also need to enforce https transport, you can add a HttpsToken as a transport token. thanks, Nandana On Mon, Mar 16, 2009 at 4:12 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com wrote: Hi Nandana, I've attached one of several variations I've tried which results in this error. I did find that if I take out the TransportBinding part I don't get the error. Thanks for taking a look! - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, Can you post the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com mailto:d...@sosnoski.com mailto:d...@sosnoski.com wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the wsdl:binding, but each time I get: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260) [java] ... 2 more [java] Caused by: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492) [java] ... 3 more [java] Java Result: 1 Has anyone been able to get the client-side generation for WS-SecurityPolicy in WSDL to work? If so, can you supply an example WSDL? Thanks, - Dennis --Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
Re: Example for WS-SecurityPolicy in WSDL?
Hi Dennis, If you look at the WS - SecurityPolicy specification, 8.3 TransportBinding Assertion definition, TransportToken is a mandatory element in the TransportBinding. So I don't think this is really a bug, the policy in the WSDL seem to be invalid. thanks, Nandana [1] - http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf On Mon, Mar 16, 2009 at 9:30 AM, Dennis Sosnoski d...@sosnoski.com wrote: Hi Nandana, Yes, I understand that the Transport assertion is not contributing anything useful in this case. AFAIK it's still valid, though, and needs to be supported. Is the error fixed in the current (and 1.5 branch) codebase? If not, should I create a Jira? Thanks, - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, I think the problem is with the serialization of Transport binding assertion without a transport token. What are your security requirements ? If you only need to have the username token , you can remove the Transport binding assertion completely and have only the SupportingTokens assertion in the policy. If you also need to enforce https transport, you can add a HttpsToken as a transport token. thanks, Nandana On Mon, Mar 16, 2009 at 4:12 AM, Dennis Sosnoski d...@sosnoski.commailto: d...@sosnoski.com wrote: Hi Nandana, I've attached one of several variations I've tried which results in this error. I did find that if I take out the TransportBinding part I don't get the error. Thanks for taking a look! - Dennis Nandana Mihindukulasooriya wrote: Hi Dennis, Can you post the WSDL you are code generating against ? thanks, nandana On Fri, Mar 13, 2009 at 3:09 AM, Dennis Sosnoski d...@sosnoski.com mailto:d...@sosnoski.com mailto:d...@sosnoski.com mailto:d...@sosnoski.com wrote: I've been trying to use the client-side code generation support for WS-SecurityPolicy in WSDL, with Axis2 1.4.1 and Rampart 1.4. I've tried several variations of where I place the policy in the WSDL, including using reference and embedding it directly in the wsdl:binding, but each time I get: [java] Exception in thread main org.apache.axis2.wsdl.codegen.CodeGenerationException: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271) [java] at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35) [java] at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24) [java] Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:534) [java] at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:260) [java] ... 2 more [java] Caused by: java.lang.RuntimeException: can't serialize the policy .. [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.getInputElement(AxisServiceBasedMultiLanguageEmitter.java:2732) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.generateMethodElement(AxisServiceBasedMultiLanguageEmitter.java:2261) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.loadOperations(AxisServiceBasedMultiLanguageEmitter.java:2151) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.createDOMDocumentForInterface(AxisServiceBasedMultiLanguageEmitter.java:1207) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeInterface(AxisServiceBasedMultiLanguageEmitter.java:1163) [java] at org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitStub(AxisServiceBasedMultiLanguageEmitter.java:492) [java] ... 3 more [java] Java Result: 1 Has anyone been able to get the client-side generation for WS-SecurityPolicy in WSDL to work? If so, can you supply an example WSDL? Thanks, - Dennis --Dennis M. Sosnoski SOA and Web Services in Java Axis2 Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA
Re: [Axis2 1.4] WS-Policy in WSDL 1.1 vs WSDL2.0 using wsdl2java utility
Hi leon, I raised a JIRA issue on behalf of you. you can track it here[1]. thanks, Pradeep Fernando. [1] https://issues.apache.org/jira/browse/AXIS2-4272