RE: Newbie wsdl2java question...
Can't you just download the WSDL using a browser and use it locally as a workaround ? From: james a. cubeta [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 8:28 PM To: axis-user@ws.apache.org Subject: Re: Newbie wsdl2java question... Thanks Ryan - some stupid follow-up question: First, setup a java keystore. A simple google search should get you going. Just set up an empty keystore? Next, put this code in the WSDL2Java main function: // set the keystore stuff System.setProperty(javax.net.ssl.trustStore, keystore_filename); System.setProperty(javax.net.ssl.keyStorePassword, keystore_password); How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related JARs. Thanks, James -Ryan From: james a. cubeta [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] Sent: Thursday, September 18, 2008 3:10 PM To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org Subject: Newbie wsdl2java question... Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta -- james a. cubeta
Re: {Disarmed} Re: Newbie wsdl2java question...
I hope it's okay for me to jump in here: james a. cubeta [EMAIL PROTECTED] wrote on 09/18/2008 08:28:15 PM: Thanks Ryan - some stupid follow-up question: First, setup a java keystore. A simple google search should get you going. Just set up an empty keystore? I believe the keystore needs to contain the trust path for SSL certificate being used. At it's simplest, that is the certificate of the certificate authority that signed the SSL cert. (I wish there was a less circuitous way of saying that!). But there may be one or more intermediate certs, too - I know this is the case for the GoDaddy commercial certs we use. Next, put this code in the WSDL2Java main function: // set the keystore stuff System.setProperty(javax.net.ssl.trustStore, keystore_filename); System.setProperty(javax.net.ssl.keyStorePassword, keystore_password); How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related JARs. This goes in the the code that WSDL2Java generated, i.e. your client app. Hope this helps, Steve __ Steve Gruverman, Programmer IntelliCare, Inc. | A Medco Health Solutions Company - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Newbie wsdl2java question...
Well, I actually HAD done that and ran into a different problem. I reverted back to referring to it via the full URL because I wondered if, by saving the WSDL locally, I had caused my different problem. Let me give your suggestion another go, and you'll see another post from me about THAT problem. :) Thanks, James On Fri, Sep 19, 2008 at 8:07 AM, Soyer, Muhammed A. [EMAIL PROTECTED]wrote: Can't you just download the WSDL using a browser and use it locally as a workaround ? *From:* james a. cubeta [mailto:[EMAIL PROTECTED] *Sent:* Thursday, September 18, 2008 8:28 PM *To:* axis-user@ws.apache.org *Subject:* Re: Newbie wsdl2java question... Thanks Ryan - some stupid follow-up question: First, setup a java keystore. A simple google search should get you going. Just set up an *empty* keystore? Next, put this code in the WSDL2Java main function: // set the keystore stuff System.setProperty(javax.net.ssl.trustStore, keystore_filename); System.setProperty(javax.net.ssl.keyStorePassword, keystore_password); How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related JARs. Thanks, James -Ryan *From:* james a. cubeta [mailto:[EMAIL PROTECTED] *Sent:* Thursday, September 18, 2008 3:10 PM *To:* axis-user@ws.apache.org *Subject:* Newbie wsdl2java question... Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta -- james a. cubeta -- james a. cubeta
RE: Newbie wsdl2java question...
No, you have to setup the keystore to contain the self-signed certificate. If you perform a google search you will see examples of how this can be done. There may be an alternative to using System.setProperty so that you do not need to modify the WSDL2Java code. Someone on this list may be able to tell you how, or Google is your friend. Regardless, I don't see how this would fix your Instantiation exception reported in the other email. From: james a. cubeta [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 6:28 PM To: axis-user@ws.apache.org Subject: Re: Newbie wsdl2java question... Thanks Ryan - some stupid follow-up question: First, setup a java keystore. A simple google search should get you going. Just set up an empty keystore? Next, put this code in the WSDL2Java main function: // set the keystore stuff System.setProperty(javax.net.ssl.trustStore, keystore_filename); System.setProperty(javax.net.ssl.keyStorePassword, keystore_password); How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related JARs. Thanks, James -Ryan From: james a. cubeta [mailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]] Sent: Thursday, September 18, 2008 3:10 PM To: axis-user@ws.apache.orgmailto:axis-user@ws.apache.org Subject: Newbie wsdl2java question... Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta -- james a. cubeta
Newbie wsdl2java question...
Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta
RE: Newbie wsdl2java question...
First, setup a java keystore. A simple google search should get you going. Next, put this code in the WSDL2Java main function: // set the keystore stuff System.setProperty(javax.net.ssl.trustStore, keystore_filename); System.setProperty(javax.net.ssl.keyStorePassword, keystore_password); -Ryan From: james a. cubeta [mailto:[EMAIL PROTECTED] Sent: Thursday, September 18, 2008 3:10 PM To: axis-user@ws.apache.org Subject: Newbie wsdl2java question... Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta
Re: Newbie wsdl2java question...
Thanks Ryan - some stupid follow-up question: First, setup a java keystore. A simple google search should get you going. Just set up an *empty* keystore? Next, put this code in the WSDL2Java main function: // set the keystore stuff System.setProperty(javax.net.ssl.trustStore, keystore_filename); System.setProperty(javax.net.ssl.keyStorePassword, keystore_password); How am I to modify the WSDL2Java utility? I only have a bunch of Axis-related JARs. Thanks, James -Ryan *From:* james a. cubeta [mailto:[EMAIL PROTECTED] *Sent:* Thursday, September 18, 2008 3:10 PM *To:* axis-user@ws.apache.org *Subject:* Newbie wsdl2java question... Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta -- james a. cubeta
Re: Newbie wsdl2java question...
On a side note if you are new to Axis then I recommend that you use Axis2 instead of Axis. Thanks, Keith. On Fri, Sep 19, 2008 at 2:39 AM, james a. cubeta [EMAIL PROTECTED]wrote: Hello everyone, I am both new to Axis and new to this mailing list, so I apologize in advance if my questions are simple or have been covered... I am trying to use Axis 1.4 to develop a simple application that will test a web service that is deployed on a private network. As a first step, I am trying to generate stub code using the WSDL2Java tool. Because the server is https uses an IP only, my command line resembles this: java org.apache.axis.wsdl.WSDL2Java --username user --password pass https://192.168.1.150:8443/example-ws/services/SimpleExample?wsdl When I run this, I get the following exception: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target exception stack truncated Questions: 1. I assume that the reason this is happening is because the server is using a self-signed certificate, and the JVM cannot validate it. Is this assumption correct? 2. How can I get around this problem? (Note that I do not have administrative access to the server, so making changes on that end is probably not possible). Thanks in advance for any help or references, James -- james a. cubeta -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org
wsdl2java question
We had been using the Eclipse plug-in for WSDL-to-Java codegen. When we recently tried the same codegen with wsdl2java.bat, we received Malformed uri runtime errors. It was easy to find the problem (we had removed a security policy from the WSDL but had forgotten to remove the policy reference). I could not find a set of options for the wsdl2java.bat that would successfully run the codegen so I'm wondering if this indicates a problem with the Eclipse plug-in. Using Axis2 1.3. Sample WSDL is attached. (See attached file: Simple.wsdl) - Steve __ Steve Gruverman, Programmer IntelliCare, Inc. | A Medco Health Solutions Company 500 Southborough Drive | South Portland ME 04106 Simple.wsdl Description: Binary data - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wsdl2java question
most of the code gen templates use that. On 8/31/07, Lindsey Hess [EMAIL PROTECTED] wrote: Thank you, Amila. Which template is that? Lindsey *Amila Suriarachchi [EMAIL PROTECTED]* wrote: in the template it says /** * xsl:value-of select=@name/.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: #axisVersion# #today# */ I think it has pick a wrong version some where. Amila. On 8/31/07, Lindsey Hess [EMAIL PROTECTED] wrote: Hi, I'm running Axis 1.2.1's wsdl2java against a WSDL, and when I look at the generated code it says: This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 Shouldn't this say Apache Axis 1.2.1? I'm a bit confused... Thank you. Lindsey -- Shape Yahoo! in your own image. Join our Network Research Panel today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 -- Amila Suriarachchi, WSO2 Inc. -- Ready for the edge of your seat? Check out tonight's top pickshttp://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/on Yahoo! TV. -- Amila Suriarachchi, WSO2 Inc.
Re: wsdl2java question
Thank you, Amila. Which template is that? Lindsey Amila Suriarachchi [EMAIL PROTECTED] wrote: in the template it says /** * xsl:value-of select=@name/.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: #axisVersion# #today# */ I think it has pick a wrong version some where. Amila. On 8/31/07, Lindsey Hess [EMAIL PROTECTED] wrote: Hi, I'm running Axis 1.2.1's wsdl2java against a WSDL, and when I look at the generated code it says: This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 Shouldn't this say Apache Axis 1.2.1? I'm a bit confused... Thank you. Lindsey - Shape Yahoo! in your own image. Join our Network Research Panel today! -- Amila Suriarachchi, WSO2 Inc. - Ready for the edge of your seat? Check out tonight's top picks on Yahoo! TV.
RE: wsdl2java question
I guess my problem is that the error message isn't really clear, I'm in a situation of putting an API out there to third parties, and so I've gone with a pretty strict API to make message validation easier, but I'm finding ADB error messages to be rather terse and uninformative. So I'm kind of curious if there is a hooking point where I can extend the ADB layer to return a more meaningful message, something akin to what you would get out of validating the request against the schema. In my example the absence, or misplacement of that categoryId field returns an error indicating that it is categoryId that is broken, but it is possible for there to many instances of category id so with out a reference to which one, or a line number, or even a more clear error message a user is sort of left with an uneasy feeling on exactly what went wrong. Has anyone else tackled complex validation scenario's? From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Friday, August 31, 2007 12:27 AM To: axis-user@ws.apache.org Subject: Re: wsdl2java question in the template it says /** * xsl:value-of select=@name/.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: #axisVersion# #today# */ I think it has pick a wrong version some where. Amila. On 8/31/07, Lindsey Hess [EMAIL PROTECTED] wrote: Hi, I'm running Axis 1.2.1's wsdl2java against a WSDL, and when I look at the generated code it says: This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 Shouldn't this say Apache Axis 1.2.1? I'm a bit confused... Thank you. Lindsey Shape Yahoo! in your own image. Join our Network Research Panel today! http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo _panel_invite.asp?a=7 -- Amila Suriarachchi, WSO2 Inc.
RE: wsdl2java question
Sorry wrong thread From: Geoff Peart [mailto:[EMAIL PROTECTED] Sent: Friday, August 31, 2007 9:04 AM To: axis-user@ws.apache.org Subject: RE: wsdl2java question From: Amila Suriarachchi [mailto:[EMAIL PROTECTED] Sent: Friday, August 31, 2007 12:27 AM To: axis-user@ws.apache.org Subject: Re: wsdl2java question in the template it says /** * xsl:value-of select=@name/.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: #axisVersion# #today# */ I think it has pick a wrong version some where. Amila. On 8/31/07, Lindsey Hess [EMAIL PROTECTED] wrote: Hi, I'm running Axis 1.2.1's wsdl2java against a WSDL, and when I look at the generated code it says: This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 Shouldn't this say Apache Axis 1.2.1? I'm a bit confused... Thank you. Lindsey Shape Yahoo! in your own image. Join our Network Research Panel today! http://us.rd.yahoo.com/evt=48517/*http:/surveylink.yahoo.com/gmrs/yahoo _panel_invite.asp?a=7 -- Amila Suriarachchi, WSO2 Inc.
wsdl2java question
Hi, I'm running Axis 1.2.1's wsdl2java against a WSDL, and when I look at the generated code it says: This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 Shouldn't this say Apache Axis 1.2.1? I'm a bit confused... Thank you. Lindsey - Shape Yahoo! in your own image. Join our Network Research Panel today!
Re: wsdl2java question
in the template it says /** * xsl:value-of select=@name/.java * * This file was auto-generated from WSDL * by the Apache Axis2 version: #axisVersion# #today# */ I think it has pick a wrong version some where. Amila. On 8/31/07, Lindsey Hess [EMAIL PROTECTED] wrote: Hi, I'm running Axis 1.2.1's wsdl2java against a WSDL, and when I look at the generated code it says: This file was auto-generated from WSDL by the Apache Axis 1.4 Apr 22, 2006 Shouldn't this say Apache Axis 1.2.1? I'm a bit confused... Thank you. Lindsey -- Shape Yahoo! in your own image. Join our Network Research Panel today!http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 -- Amila Suriarachchi, WSO2 Inc.
[Axis 1.4] - WSDL2Java question
Hi all, I have a running set web services that exposes a set of entity and various actions available on those entities When generating the code using WSDL2Java in Axis 1.4 It took a very long time (5h for all services) to generate the stubs and a lot of memory 1Gb to 1.3Gb. Since I was not able to find any info, googling on the subject I started a debug version of the WSDL2Java and find a few things that I was able to enhance this after a few days of debugging in the source. (speed down to 25 minutes, and memory down to 500Mb by adding some caching and replacing recursion calls by recurrent calls) I have a patch of a recent snapshot available for this change, It would be great if this could some how be integrated in an official release of Axis 1.4, but I don't know exactly how to proceed with this, Unfortunately I can't run the tests till the end since I can't get access to some interop WSDLs from sun... but I'll try to run them later today any help would be greatly appreciated Stephane Moreau - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java Question
Chad, For starters, you can come over here and set up my computer! :-D A couple of questions: 1. Do you use /etc/profile for any env vars? If so, can you send them? 2. Could you send a copy of your local .profile (cleaned, if necessary)? This is obviously something I did during the installation of the system and I'd really like to figure it out. Thanx, Garth ChadDavis wrote: Garth, Everything is working for me, axis2-1.1.1 on Ubuntu. Let me know if I can help. Chad On 1/11/07, Garth Keesler [EMAIL PROTECTED] wrote: Sounds good. I hope you have better luck than I've had! :-) Let me know how it goes. Garth ChadDavis wrote: Garth, I guess they released 1.1.1 two days ago. I've noticed that the documentation was kind of in flux, and that explains your extra version number. I've just pulled down 1.1.1 onto my ubuntu machine and will let you know how it goes. Chad On 1/11/07, Garth Keesler [EMAIL PROTECTED] wrote: I hate to say this but... :-) I set up a virtual W2K box, installed jdk1.5 and Axis2 v1.1.1 and ran wsdl2java.bat against the web service site and it worked just fine, generating the skeleton client java files just as I hoped. Now I can copy the files over to the Ubuntu box and keep going. I'll keep playing with the Linux config and see if I can't get it to work there. Still open to suggestions. Thanx, Garth Garth Keesler wrote: Started over. Built a clean Ubuntu Edgy box with jdk1.5.0_10 and Axis2 v1.1.1. Put env stuff in .profile. Same result. Installed j2sdk1.4.2_13, changed .profile, same result. Unrecognized option -uri. I'm going to try it on XP and see what happens. If it works, I can always xfer the generated stuff back to Linux. Garth Keesler wrote: The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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] - 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] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java Question
Started over. Built a clean Ubuntu Edgy box with jdk1.5.0_10 and Axis2 v1.1.1. Put env stuff in .profile. Same result. Installed j2sdk1.4.2_13, changed .profile, same result. Unrecognized option -uri. I'm going to try it on XP and see what happens. If it works, I can always xfer the generated stuff back to Linux. Garth Keesler wrote: The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
I hate to say this but... :-) I set up a virtual W2K box, installed jdk1.5 and Axis2 v1.1.1 and ran wsdl2java.bat against the web service site and it worked just fine, generating the skeleton client java files just as I hoped. Now I can copy the files over to the Ubuntu box and keep going. I'll keep playing with the Linux config and see if I can't get it to work there. Still open to suggestions. Thanx, Garth Garth Keesler wrote: Started over. Built a clean Ubuntu Edgy box with jdk1.5.0_10 and Axis2 v1.1.1. Put env stuff in .profile. Same result. Installed j2sdk1.4.2_13, changed .profile, same result. Unrecognized option -uri. I'm going to try it on XP and see what happens. If it works, I can always xfer the generated stuff back to Linux. Garth Keesler wrote: The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
Garth, I guess they released 1.1.1 two days ago. I've noticed that the documentation was kind of in flux, and that explains your extra version number. I've just pulled down 1.1.1 onto my ubuntu machine and will let you know how it goes. Chad On 1/11/07, Garth Keesler [EMAIL PROTECTED] wrote: I hate to say this but... :-) I set up a virtual W2K box, installed jdk1.5 and Axis2 v1.1.1 and ran wsdl2java.bat against the web service site and it worked just fine, generating the skeleton client java files just as I hoped. Now I can copy the files over to the Ubuntu box and keep going. I'll keep playing with the Linux config and see if I can't get it to work there. Still open to suggestions. Thanx, Garth Garth Keesler wrote: Started over. Built a clean Ubuntu Edgy box with jdk1.5.0_10 and Axis2 v1.1.1. Put env stuff in .profile. Same result. Installed j2sdk1.4.2_13, changed .profile, same result. Unrecognized option -uri. I'm going to try it on XP and see what happens. If it works, I can always xfer the generated stuff back to Linux. Garth Keesler wrote: The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java Question
Sounds good. I hope you have better luck than I've had! :-) Let me know how it goes. Garth ChadDavis wrote: Garth, I guess they released 1.1.1 two days ago. I've noticed that the documentation was kind of in flux, and that explains your extra version number. I've just pulled down 1.1.1 onto my ubuntu machine and will let you know how it goes. Chad On 1/11/07, Garth Keesler [EMAIL PROTECTED] wrote: I hate to say this but... :-) I set up a virtual W2K box, installed jdk1.5 and Axis2 v1.1.1 and ran wsdl2java.bat against the web service site and it worked just fine, generating the skeleton client java files just as I hoped. Now I can copy the files over to the Ubuntu box and keep going. I'll keep playing with the Linux config and see if I can't get it to work there. Still open to suggestions. Thanx, Garth Garth Keesler wrote: Started over. Built a clean Ubuntu Edgy box with jdk1.5.0_10 and Axis2 v1.1.1. Put env stuff in .profile. Same result. Installed j2sdk1.4.2_13, changed .profile, same result. Unrecognized option -uri. I'm going to try it on XP and see what happens. If it works, I can always xfer the generated stuff back to Linux. Garth Keesler wrote: The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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] - 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: WSDL2Java Question
Garth, Everything is working for me, axis2-1.1.1 on Ubuntu. Let me know if I can help. Chad On 1/11/07, Garth Keesler [EMAIL PROTECTED] wrote: Sounds good. I hope you have better luck than I've had! :-) Let me know how it goes. Garth ChadDavis wrote: Garth, I guess they released 1.1.1 two days ago. I've noticed that the documentation was kind of in flux, and that explains your extra version number. I've just pulled down 1.1.1 onto my ubuntu machine and will let you know how it goes. Chad On 1/11/07, Garth Keesler [EMAIL PROTECTED] wrote: I hate to say this but... :-) I set up a virtual W2K box, installed jdk1.5 and Axis2 v1.1.1 and ran wsdl2java.bat against the web service site and it worked just fine, generating the skeleton client java files just as I hoped. Now I can copy the files over to the Ubuntu box and keep going. I'll keep playing with the Linux config and see if I can't get it to work there. Still open to suggestions. Thanx, Garth Garth Keesler wrote: Started over. Built a clean Ubuntu Edgy box with jdk1.5.0_10 and Axis2 v1.1.1. Put env stuff in .profile. Same result. Installed j2sdk1.4.2_13, changed .profile, same result. Unrecognized option -uri. I'm going to try it on XP and see what happens. If it works, I can always xfer the generated stuff back to Linux. Garth Keesler wrote: The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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] - 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]
WSDL2Java Question
The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WSDL2Java Question
Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java Question
Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
Do you have the Axis jar on your classpath? - Doug From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 1:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WSDL2Java Question
If you want Axis 1.* stubs, then AXIS_HOME should point to your Axis 1.* location (not Axis2). From: Gul Onural [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:38 PM To: axis-user@ws.apache.org Subject: RE: WSDL2Java Question Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and%AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
Sorry, missed a couple. AXIS_HOME=/usr/dev/axis2-1.1.1 CATALINA_HOME=/usr/dev/apache-tomcat-5.5.20 GERONIMO_HOME=/usr/dev/geronimo-1.1.1 Garth Keesler wrote: Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and%AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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] . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WSDL2Java Question
As much reading as I've done on CLASSPATH, it remains a bit of a mystery and I can never quite get it configured correctly. I always do it specifically in any build.xml files and that seems to work for me. However, I'm wide open to suggestion on what it should be. Thanx, Garth Bell, Douglas wrote: Do you have the Axis jar on your classpath? - Doug From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 1:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/l ib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5 .20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axi s2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/m aven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/ sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
I use AXIS2 v1.1.1. Dumb Q but do I want Axis 1.* stubs? I've never gotten far enough with the tool to see what it produces. Thanx, Garth Ted Jones wrote: If you wantAxis 1.* stubs, then AXIS_HOME should point to your Axis 1.* location (not Axis2). From: Gul Onural [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 3:38 PM To: axis-user@ws.apache.org Subject: RE: WSDL2Java Question Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and%AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
There are some schema support limitations with Axis2 code generation that have forced us to use the Axis 1.3 WSDL2JAVA tool against our Axis2 service. Your schema may not have the same issues, so the Axis2 WSDL2JAVA may be sufficient for your needs. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:55 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question I use AXIS2 v1.1.1. Dumb Q but do I want Axis 1.* stubs? I've never gotten far enough with the tool to see what it produces. Thanx, Garth Ted Jones wrote: If you want Axis 1.* stubs, then AXIS_HOME should point to your Axis 1.* location (not Axis2). From: Gul Onural [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:38 PM To: axis-user@ws.apache.org Subject: RE: WSDL2Java Question Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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: WSDL2Java Question
If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and%AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: WSDL2Java Question
The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/l ib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5 .20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axi s2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/m aven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/ sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print
Re: WSDL2Java Question
I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and%AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm
RE: WSDL2Java Question
Hmmm... not sure about that one. Can you try setting JAVA_HOME to a 1.4 JDK and see if that makes a difference? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:30 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/l ib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5 .20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axi s2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/m aven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/ sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question
Re: WSDL2Java Question
I tried but Sun's download servers are "offline for system upgrades". So it'll have to wait for awhile. BTW, I install Axis2-1.1.1 from the binary distro and install it into /usr/dev/axis2-1.1.1 which is where AXIS2_HOME points. I deploy Axis2 using the war file distro and simply drop it into Tomcat;s webapps folder. Should this make any diff? Ted Jones wrote: Hmmm... not sure about that one. Can you trysetting JAVA_HOMEto a 1.4 JDK and see if that makes a difference? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:30 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and%AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.a
RE: WSDL2Java Question
No. They are mutually exclusive events. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 5:17 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question I tried but Sun's download servers are offline for system upgrades. So it'll have to wait for awhile. BTW, I install Axis2-1.1.1 from the binary distro and install it into /usr/dev/axis2-1.1.1 which is where AXIS2_HOME points. I deploy Axis2 using the war file distro and simply drop it into Tomcat;s webapps folder. Should this make any diff? Ted Jones wrote: Hmmm... not sure about that one. Can you try setting JAVA_HOME to a 1.4 JDK and see if that makes a difference? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:30 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/l ib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5 .20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axi s2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/m aven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/ sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2
Re: WSDL2Java Question
What directory did you execute this command from? It looks like its from your home directory, which would mean that your uri is pointing somewhere up into the /home/ directory, which seems unlikely. Am I missing something? If I'm reading this right, you just need to move to the right directory so that your relative path to the wsdl resolves correctly. On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote: I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's a snippet from the web site instructions: Usage: java org.apache.axis.wsdl.WSDL2Java [options] WSDL-URI Options: -h, --help print this message and exit What am I doing wrong? Thanx, Garth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED
RE: WSDL2Java Question
Seems like you would get a better error if the wsdl was not resolvable (at least you do on Windows). Worth a shot though. -Original Message- From: ChadDavis [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 5:25 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question What directory did you execute this command from? It looks like its from your home directory, which would mean that your uri is pointing somewhere up into the /home/ directory, which seems unlikely. Am I missing something? If I'm reading this right, you just need to move to the right directory so that your relative path to the wsdl resolves correctly. On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote: I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp /lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat -5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF /lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/a xis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/d ev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin :/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java http://appsrv:8080/axis2/services/wsVendor?wsdl Exception in thread main java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java Here's
Re: WSDL2Java Question
I actually want to run it against http://appsrv:8080/axis2/services/wsVendor so I can try creating the skeleton of a ws client but whatever options I use always come up as unrecognized and it aborts. What you're seeing are various tests that I have been asked to try, none of which seem to work any better. The test wouldn't work anyhow since it is against folders that don't exist on my machine but it shouldn't choke on the unrecognized option. Thanx ChadDavis wrote: What directory did you execute this command from? It looks like its from your home directory, which would mean that your uri is pointing somewhere up into the /home/ directory, which seems unlikely. Am I missing something? If I'm reading this right, you just need to move to the right directory so that your relative path to the wsdl resolves correctly. On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote: I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp/lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat-5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF/lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/axis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/dev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help
Re: WSDL2Java Question
Several of you appear to be running Windows while I'm on Linux. I have a virtual XP system running on this box. Would it be worth a try doing this on that box? Just a thought... Ted Jones wrote: Seems like you would get a better error if the wsdl was not resolvable (at least you do on Windows). Worth a shot though. -Original Message- From: ChadDavis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 5:25 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question What directory did you execute this command from? It looks like its from your home directory, which would mean that your uri is pointing somewhere up into the /home/ directory, which seems unlikely. Am I missing something? If I'm reading this right, you just need to move to the right directory so that your relative path to the wsdl resolves correctly. On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote: I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp /lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat -5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF /lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/a xis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/d ev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin :/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference and neither obviously works (for me). I can't even get --help to work. [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAIL PROTECTED]:~$ java org.apache.axis.wsdl.WSDL2Java --help http://appsrv:8080/axis2/services/wsVendor Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/wsdl/WSDL2Java [EMAI
Re: WSDL2Java Question
Garth, I'm running on Ubuntu. Seems like you indicated the same. I just reread the thread and your axis home directory is different from mine. I am working with the current binary distribution and when I unpack the zip ( axis2-1.1.zip ) it becomes a directory named axis2-1.1, which is my AXIS2_HOME. I noticed that you have AXIS2_HOME pointing to axis2-1.1.1 ( extra minor revision number '1' ). Perhaps you have a different version of axis, but seems like I got the most recent one a couple days back. Hope this helps, Chad On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote: Several of you appear to be running Windows while I'm on Linux. I have a virtual XP system running on this box. Would it be worth a try doing this on that box? Just a thought... Ted Jones wrote: Seems like you would get a better error if the wsdl was not resolvable (at least you do on Windows). Worth a shot though. -Original Message- From: ChadDavis [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 5:25 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question What directory did you execute this command from? It looks like its from your home directory, which would mean that your uri is pointing somewhere up into the /home/ directory, which seems unlikely. Am I missing something? If I'm reading this right, you just need to move to the right directory so that your relative path to the wsdl resolves correctly. On 1/10/07, Garth Keesler [EMAIL PROTECTED] wrote: I really appreciate your patience... Here's what I get: [EMAIL PROTECTED]:~$ wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide Using AXIS2_HOME: /usr/dev/axis2-1.1.1 Using JAVA_HOME: /usr/dev/jdk1.5.0_10 Unrecognized option: -uri Could not create the Java virtual machine. Ted Jones wrote: The manual is referring to the class and not the .sh script file. Try: wsdl2java.sh -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:08 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question If I take those instructions literally, here's what I get: [EMAIL PROTECTED]:~$ WSDL2Java -uri ../samples/wsdl/Axis2SampleDocLit.wsdl -ss -sd -d xmlbeans -o ../samples -p org.apache.axis2.userguide bash: WSDL2Java: command not found I have searched my Ubuntu edgy box and can not find any file of that name (or even close). If I look in the AXIS2_HOME/bin dir, all I find is wsdl2java.sh and (for Windows) .bat. Am I missing something (no sarcasm please:-)? Thanx Ted Jones wrote: Judging by your error message you are trying to execute the Axis 1.* WSDL2JAVA and your classpath is pointing to Axis2. Here are the instructions for the Axis2 WSDL2JAVA tool: http://ws.apache.org/axis2/1_0/userguide2.html#WSDL2Java_Tool If you prefer to use the Axis 1.* WSDL2JAVA, make sure you point to the Axis 1.* installation. From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 3:47 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Pertinent env vars: JAVA_HOME=/usr/dev/jdk1.5.0_10 JAR_HOME=/usr/dev/jars LANG=en_US.UTF-8 GDMSESSION=default JUNIT_HOME=/usr/dev/junit4.1 HISTCONTROL=ignoredups AXIS_LIBRARIES=/usr/dev/axis2-1.1.1/lib XERCES_HOME=/usr/dev/xerces-2_9_0 JAVAMAIL_HOME=/usr/dev/javamail-1.4 JAVA_ENDORSED_DIRS=/usr/dev/jwsdp-2.0/jaxp/lib:/usr/dev/jwsdp-2.0/jaxp /lib/endorsed:/usr/dev/apache-tomcat-5.5.20/bin:/usr/dev/apache-tomcat -5.5.20/common/lib:/usr/dev/apache-tomcat-5.5.20/webapps/axis2/WEB-INF /lib SOAP_HOME=/usr/dev/soap-2_3_1 PATH=/usr/dev/jdk1.5.0_10/bin:/usr/dev/apache-ant-1.6.5/bin:/usr/dev/a xis2-1.1.1/bin:/usr/dev/jwsdp-2.0:/usr/dev/jwsdp-2.0/jaxrpc/bin:/usr/d ev/maven-2.0.4:/usr/dev/maven-2.0.4/bin:/usr/local/sbin:/usr/local/bin :/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games Do I need more/less/different? Thanx Gul Onural wrote: Most probably... What I have defined to get wsdl2Java working : AXIS2_HOME environment variable pointing to axis2 installation directory and %AXIS2_HOME%\bin in my PATH From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:33 PM To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Yes, both AXIS_HOME and JAVA_HOME point to their correct directories. However they are defined in /etc/profile and not in my local profile. Could that be it? Thanx Gul Onural wrote: Have you defined AXIS_HOME environment variable pointing to your axis2 installation ? From: Garth Keesler [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 10, 2007 4:23 PM To: Axis User Subject: WSDL2Java Question The examples below are straight from http://ws.apache.org/axis
Re: WSDL2Java Question
Marius, The only errors that I see in the WSDL is that you need to remove the namespace attributes from all the soap:body definitions in the binding. (You use the namespace attribute only when using RPC style.) Please make this fix and regenerate (although I doubt this is causing the anomoly). Please let us know what happens. Anne On 8/24/06, Marius Hugo [EMAIL PROTECTED] wrote: Sure, no problem, I've attached the files. I'm sending the entire files, cause I don't want to go and send what I think is important and then it ends up that I am missing something (look for the SessionId). The extra methods (in the Document) seem to be created for each of the xs:simpleTypes that are declared in TradeRootMerchantTypes.xsd. The types aren't always changed (from long to int for instance), but the other types are int and string and I don't really see what else they could change to anyway. Another question: I am not sure how the restrictions that are placed on a type are imposed in the generated code. For instance, in the case of the SessionId type, I don't see any code that enforces the restrictions that are defined (maxInclusive and minInclusive). If I go look at the following generated code though: xs:complexType name=AdditionalDataNOTIFY xs:annotation xs:documentationThis Additional Data is provided by the EUA when there exists a requirement to dispatch a notification instruction./xs:documentation /xs:annotation xs:sequence xs:element name=notificationType xs:simpleType xs:restriction base=xs:string xs:enumeration value=EMAIL/ xs:enumeration value=SMS/ /xs:restriction /xs:simpleType /xs:element xs:element name=notificationAddress xs:simpleType xs:restriction base=xs:string xs:maxLength value=120/ /xs:restriction /xs:simpleType /xs:element /xs:sequence /xs:complexType Then I can see the restriction enforced for notifactionType, but not for notificationAddress. I haven't worked with xsd and wsdl before, so I don't really know if I'm just not understanding the concept of these restrictions or if I'm missing something really obvious, so if anyone would care to explain it to me in very simple terms...that would really be appreciated:D Thanks, Marius -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 23 August 2006 19:46 To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Marius, Given that xsd:long is derived from xsd:int restricted by maxInclusive and minInclusive, it actually makes more sense for you to derive from xsd:int rather than xsd:long. But that's just a nit. This smells like a bug. xsd:long should map to long, not to int; but since you've derived a type, the return type should be your value type, SessionId. But I don't understand why you have two methods. Could you please post the WSDL and XSD? Anne On 8/23/06, Marius Hugo [EMAIL PROTECTED] wrote: This is the first time that I am working with axis and I must now migrate someone else's code from axis to axis2, so I'm a little clueless... I just have a few simple questions concerning what WSDL2Java generated: In ye olden xsd and wsdl: - He declared a simple type (xs:long), SessionId . - He also added restrictions (minInclusive and maxInclusive) to that type - He also declared that one of the responses that I send, uses that type as a field . - From what I've learned, all of this looks right and it worked on the previous version of axis - I then used WSDL2Java to generate code: it generated com.company.product.webservice.types.SessionId it also generated the Document that uses this type - In the generated document, the following methods are available (well, there are others:): - int getSessionId(); - com.company.product.webservice.types.SessionId xgetSessionId(); NOW (these questions apply to both getters and setters) What is the difference between the two methods? Are the restrictions imposed on both of them? Why does the one method return an int, when SessionId was defined as a long? If I were to go send this Document off as a SOAP message, what will I be sending? I mean, if I say went and set both values or just the one? Will I be sending both values that I set, cause that doesn't really make sense to me
RE: WSDL2Java Question
Anne, I've removed the namespace attributes and I'm still getting the extra methods; and in the one method, the sessionId is still changed from a long to an int. -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 25 August 2006 14:07 To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Marius, The only errors that I see in the WSDL is that you need to remove the namespace attributes from all the soap:body definitions in the binding. (You use the namespace attribute only when using RPC style.) Please make this fix and regenerate (although I doubt this is causing the anomoly). Please let us know what happens. Anne On 8/24/06, Marius Hugo [EMAIL PROTECTED] wrote: Sure, no problem, I've attached the files. I'm sending the entire files, cause I don't want to go and send what I think is important and then it ends up that I am missing something (look for the SessionId). The extra methods (in the Document) seem to be created for each of the xs:simpleTypes that are declared in TradeRootMerchantTypes.xsd. The types aren't always changed (from long to int for instance), but the other types are int and string and I don't really see what else they could change to anyway. Another question: I am not sure how the restrictions that are placed on a type are imposed in the generated code. For instance, in the case of the SessionId type, I don't see any code that enforces the restrictions that are defined (maxInclusive and minInclusive). If I go look at the following generated code though: xs:complexType name=AdditionalDataNOTIFY xs:annotation xs:documentationThis Additional Data is provided by the EUA when there exists a requirement to dispatch a notification instruction./xs:documentation /xs:annotation xs:sequence xs:element name=notificationType xs:simpleType xs:restriction base=xs:string xs:enumeration value=EMAIL/ xs:enumeration value=SMS/ /xs:restriction /xs:simpleType /xs:element xs:element name=notificationAddress xs:simpleType xs:restriction base=xs:string xs:maxLength value=120/ /xs:restriction /xs:simpleType /xs:element /xs:sequence /xs:complexType Then I can see the restriction enforced for notifactionType, but not for notificationAddress. I haven't worked with xsd and wsdl before, so I don't really know if I'm just not understanding the concept of these restrictions or if I'm missing something really obvious, so if anyone would care to explain it to me in very simple terms...that would really be appreciated:D Thanks, Marius -Original Message- From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] Sent: 23 August 2006 19:46 To: axis-user@ws.apache.org Subject: Re: WSDL2Java Question Marius, Given that xsd:long is derived from xsd:int restricted by maxInclusive and minInclusive, it actually makes more sense for you to derive from xsd:int rather than xsd:long. But that's just a nit. This smells like a bug. xsd:long should map to long, not to int; but since you've derived a type, the return type should be your value type, SessionId. But I don't understand why you have two methods. Could you please post the WSDL and XSD? Anne On 8/23/06, Marius Hugo [EMAIL PROTECTED] wrote: This is the first time that I am working with axis and I must now migrate someone else's code from axis to axis2, so I'm a little clueless... I just have a few simple questions concerning what WSDL2Java generated: In ye olden xsd and wsdl: - He declared a simple type (xs:long), SessionId . - He also added restrictions (minInclusive and maxInclusive) to that type - He also declared that one of the responses that I send, uses that type as a field . - From what I've learned, all of this looks right and it worked on the previous version of axis - I then used WSDL2Java to generate code: it generated com.company.product.webservice.types.SessionId it also generated the Document that uses this type - In the generated document, the following methods are available (well, there are others:): - int getSessionId(); - com.company.product.webservice.types.SessionId xgetSessionId(); NOW (these questions apply to both getters
WSDL2Java Question
This is the first time that I am working with axis and I must now migratesomeone else's code from axis to axis2, so I'm a little clueless... I just have afew simplequestions concerning what WSDL2Java generated: In ye olden xsd and wsdl: -Hedeclared a simple type (xs:long),"SessionId". -He also added restrictions(minInclusive and maxInclusive) to that type -He also declared that one of the responses that I send, uses that type as a field. - From what I've learned, all of thislooks right and it worked on the previous version of axis -Ithen usedWSDL2Java to generatecode: it generated com.company.product.webservice.types.SessionId it also generatedthe Document that uses this type - In thegenerated document, the following methods are available (well, there are others:): - int getSessionId(); - com.company.product.webservice.types.SessionId xgetSessionId(); NOW (these questions apply to both getters and setters) What is the difference between the two methods? Are the restrictions imposed on both of them? Why does the onemethod return an int, whenSessionId was defined asa long? If I were to go send this Document off as a SOAP message, what will I be sending? I mean,if I say went and set both values or just the one? Will I be sending both values that I set, cause that doesn't really make sense to me. Thanks, Marius
Re: WSDL2Java Question
Marius, Given that xsd:long is derived from xsd:int restricted by maxInclusive and minInclusive, it actually makes more sense for you to derive from xsd:int rather than xsd:long. But that's just a nit. This smells like a bug. xsd:long should map to long, not to int; but since you've derived a type, the return type should be your value type, SessionId. But I don't understand why you have two methods. Could you please post the WSDL and XSD? Anne On 8/23/06, Marius Hugo [EMAIL PROTECTED] wrote: This is the first time that I am working with axis and I must now migrate someone else's code from axis to axis2, so I'm a little clueless... I just have a few simple questions concerning what WSDL2Java generated: In ye olden xsd and wsdl: - He declared a simple type (xs:long), SessionId . - He also added restrictions (minInclusive and maxInclusive) to that type - He also declared that one of the responses that I send, uses that type as a field . - From what I've learned, all of this looks right and it worked on the previous version of axis - I then used WSDL2Java to generate code: it generated com.company.product.webservice.types.SessionId it also generated the Document that uses this type - In the generated document, the following methods are available (well, there are others:): - int getSessionId(); - com.company.product.webservice.types.SessionId xgetSessionId(); NOW (these questions apply to both getters and setters) What is the difference between the two methods? Are the restrictions imposed on both of them? Why does the one method return an int, when SessionId was defined as a long? If I were to go send this Document off as a SOAP message, what will I be sending? I mean, if I say went and set both values or just the one? Will I be sending both values that I set, cause that doesn't really make sense to me. Thanks, Marius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
WSDL2Java question about creating files to different package, plus few others from a newbie
First off, pardon for this newbie-ish question. I have been googling for a long time and I'm also having difficulty finding an answer in the archives since I'm not sure how to phrase the questions (and too many search results on just WSDL2Java). Anyway, I was able to follow along with this tutorial on axis that I found very helpful http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 but now I want to have my simple service return something more complicated than an int so I decided to make a class that would return to me an array of Employee objects. In my com.maintenance package I have: Employee //simple POJO String employeeName; int employeeId EmployeeMaintenance //interface EmployeeMaintenanceImpl //implemenation with Employee[] getEmployees method I then used Java2WSDL: java org.apache.axis.wsdl.Java2WSDL -o employee.wsdl -lhttp://localhost:8080/axis/services/employee; -n urn:com.maintenance -pcom.maintenance urn:com.maintenance com.maintenance.EmployeeMaintenance to make my wsdl ( generated code I pasted here http://www.pastehere.com/?oivegh ). Now, following how I did things from the tutorial, I use WSDL2Java to create my stub classes. Running this from the classes dir where my wsdl is: java org.apache.axis.wsdl.WSDL2Java -o ..\src -d Session -s -p com.maintenance.ws employee.wsdl. When I look at the generated EmployeeSoapBindingImpl class in my new package com.maintenance.ws, it has a method signature for getEmployees that looks like: public com.maintenance.ws.Employee[] getEmployees() throws java.rmi.RemoteException { return null; } The problem now is that I want to edit this class like I did in the tutorial example so that I can return an Employee[] array that my com.maintenance.EmployeeMaintenanceIpml gives me, but for some reason the return signature on the SoapBindingImpl is using the com.mainteance.ws.Employee class it generated in the com.mainteance.ws package (not the package com.maintenance ). If rather than try to to build the stub classes to a new package with WSDL2Java, I instead run it in the same package where I have my initial files (Employee, EmployeeMaintenance, EmployeeMaintenaceImpl), I end up getting Employee overwritten by the WSDL2Java command which I guess is ok since it really is basically the same file. In both situations, I'm also sure that this is probably a problem. Although my classes all compile, IDEA is letting me know that for the getEmployees() method below that org.apache.axis.description.typedesc not public or does not allow instantiation. //EmployeeSoapBindingImpl implements com.maintenance.EmployeeMaintenance public com.maintenance.Employee[] getEmployees() throws java.rmi.RemoteException { I'm also running into problems trying to access getEmployees after I deploy it (stand along access connects but getting AxisFault NoClassDefFoundError. wsdl is out there and jar with bundled classes in axis/web-inf/lib looks ok). But rather than tackle that issue here (which might be related to something above), I'd like to make sure I'm at least doing things correctly above. I've been googling but I'm having trouble finding some good examples that demonstrate returning back arrays of objects or collections with axis/web services. Thanks for any help. -- Rick
Re: WSDL2Java question about creating files to different package, plus few others from a newbie
Maybe ignore the below a bit since this image hopefully helps describe the issue more clearly: http://www.pastehere.com/?kndvie (I am managing to get this service to work as 'null' will return from my Test class, but ultimately what I want Employees being returned). Thanks again for any help. rest of post left below for more detail, but no new comments below On 3/29/06, Rick Reumann [EMAIL PROTECTED] wrote: First off, pardon for this newbie-ish question. I have been googling for a long time and I'm also having difficulty finding an answer in the archives since I'm not sure how to phrase the questions (and too many search results on just WSDL2Java). Anyway, I was able to follow along with this tutorial on axis that I found very helpful http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 but now I want to have my simple service return something more complicated than an int so I decided to make a class that would return to me an array of Employee objects. In my com.maintenance package I have: Employee //simple POJO String employeeName; int employeeId EmployeeMaintenance //interface EmployeeMaintenanceImpl //implemenation with Employee[] getEmployees method I then used Java2WSDL: java org.apache.axis.wsdl.Java2WSDL -o employee.wsdl -lhttp://localhost:8080/axis/services/employee; -n urn:com.maintenance -pcom.maintenance urn:com.maintenance com.maintenance.EmployeeMaintenance to make my wsdl ( generated code I pasted here http://www.pastehere.com/?oivegh ). Now, following how I did things from the tutorial, I use WSDL2Java to create my stub classes. Running this from the classes dir where my wsdl is: java org.apache.axis.wsdl.WSDL2Java -o ..\src -d Session -s -p com.maintenance.ws employee.wsdl. When I look at the generated EmployeeSoapBindingImpl class in my new package com.maintenance.ws, it has a method signature for getEmployees that looks like: public com.maintenance.ws.Employee[] getEmployees() throws java.rmi.RemoteException { return null; } The problem now is that I want to edit this class like I did in the tutorial example so that I can return an Employee[] array that my com.maintenance.EmployeeMaintenanceIpml gives me, but for some reason the return signature on the SoapBindingImpl is using the com.mainteance.ws.Employee class it generated in the com.mainteance.ws package (not the package com.maintenance ). If rather than try to to build the stub classes to a new package with WSDL2Java, I instead run it in the same package where I have my initial files (Employee, EmployeeMaintenance, EmployeeMaintenaceImpl), I end up getting Employee overwritten by the WSDL2Java command which I guess is ok since it really is basically the same file. In both situations, I'm also sure that this is probably a problem. Although my classes all compile, IDEA is letting me know that for the getEmployees() method below that org.apache.axis.description.typedesc not public or does not allow instantiation. //EmployeeSoapBindingImpl implements com.maintenance.EmployeeMaintenance public com.maintenance.Employee[] getEmployees() throws java.rmi.RemoteException { I'm also running into problems trying to access getEmployees after I deploy it (stand along access connects but getting AxisFault NoClassDefFoundError. wsdl is out there and jar with bundled classes in axis/web-inf/lib looks ok). But rather than tackle that issue here (which might be related to something above), I'd like to make sure I'm at least doing things correctly above. I've been googling but I'm having trouble finding some good examples that demonstrate returning back arrays of objects or collections with axis/web services. Thanks for any help. -- Rick -- Rick
Re: WSDL2Java question about creating files to different package, plus few others from a newbie
On 3/29/06, Rick Reumann [EMAIL PROTECTED] wrote: Maybe ignore the below a bit since this image hopefully helps describe the issue more clearly: http://www.pastehere.com/?kndvie (I am managing to get this service to work as 'null' will return from my Test class, but ultimately what I want Employees being returned). I guess it's not a big deal... I can now after using java2WSDL then WSDL2Java, to then go back and refactor my initial EmployeeMaintanceImp class to use the Employee instance that WSDL2java made. I'm not sure if that's the typical approach people take though.
Re: WSDL2Java question about creating files to different package, plus few others from a newbie
Hello Rick, Just to make sure I understand your problem, I'll start writing what I understand of your e-mails. You wrote an interface in the com.maintenance package with a method that returns a Employee POJO which you put in the same interface. You then use Java2WSDL and map the package com.maintenance to the namespace urn:com.maintenance. You then use WSDL2Java and map the namespace to a different package: com.maintenance.ws. You wanted the method in the generated interface (and impl) to return com.maintenance.Employee instead of com.maintenance.ws.Employee? - Don't map it to a different package. You map it to the same package and specify no separate output directory for the generated files. The original files get overwritten. - Specify a different output directory if you don't want the original files to be overwritten. org.apache.axis.description.typedesc not public or does not allow instantiation. Is that a warning or compile error? What does the code look like? Axis generates some extra code in the generated Javabeans to help with (de)serialization. They are probably accessed by classes in the org.apache.axis.description package, and therefore do not need to be public? Regards, Dies Rick Reumann wrote: First off, pardon for this newbie-ish question. I have been googling for a long time and I'm also having difficulty finding an answer in the archives since I'm not sure how to phrase the questions (and too many search results on just WSDL2Java). Anyway, I was able to follow along with this tutorial on axis that I found very helpful http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 but now I want to have my simple service return something more complicated than an int so I decided to make a class that would return to me an array of Employee objects. In my com.maintenance package I have: Employee //simple POJO String employeeName; int employeeId EmployeeMaintenance //interface EmployeeMaintenanceImpl //implemenation with Employee[] getEmployees method I then used Java2WSDL: java org.apache.axis.wsdl.Java2WSDL -o employee.wsdl -lhttp://localhost:8080/axis/services/employee; -n urn:com.maintenance -pcom.maintenance urn:com.maintenance com.maintenance.EmployeeMaintenance to make my wsdl ( generated code I pasted here http://www.pastehere.com/?oivegh ). Now, following how I did things from the tutorial, I use WSDL2Java to create my stub classes. Running this from the classes dir where my wsdl is: java org.apache.axis.wsdl.WSDL2Java -o ..\src -d Session -s -p com.maintenance.ws employee.wsdl. When I look at the generated EmployeeSoapBindingImpl class in my new package com.maintenance.ws, it has a method signature for getEmployees that looks like: public com.maintenance.ws.Employee[] getEmployees() throws java.rmi.RemoteException { return null; } The problem now is that I want to edit this class like I did in the tutorial example so that I can return an Employee[] array that my com.maintenance.EmployeeMaintenanceIpml gives me, but for some reason the return signature on the SoapBindingImpl is using the com.mainteance.ws.Employee class it generated in the com.mainteance.ws package (not the package com.maintenance ). If rather than try to to build the stub classes to a new package with WSDL2Java, I instead run it in the same package where I have my initial files (Employee, EmployeeMaintenance, EmployeeMaintenaceImpl), I end up getting Employee overwritten by the WSDL2Java command which I guess is ok since it really is basically the same file. In both situations, I'm also sure that this is probably a problem. Although my classes all compile, IDEA is letting me know that for the getEmployees() method below that org.apache.axis.description.typedesc not public or does not allow instantiation. //EmployeeSoapBindingImpl implements com.maintenance.EmployeeMaintenance public com.maintenance.Employee[] getEmployees() throws java.rmi.RemoteException { I'm also running into problems trying to access getEmployees after I deploy it (stand along access connects but getting AxisFault NoClassDefFoundError. wsdl is out there and jar with bundled classes in axis/web-inf/lib looks ok). But rather than tackle that issue here (which might be related to something above), I'd like to make sure I'm at least doing things correctly above. I've been googling but I'm having trouble finding some good examples that demonstrate returning back arrays of objects or collections with axis/web services. Thanks for any help. -- Rick
Re: WSDL2Java question about creating files to different package, plus few others from a newbie
On 3/29/06, Dies Koper [EMAIL PROTECTED] wrote: You wanted the method in the generated interface (and impl) to return com.maintenance.Employee instead of com.maintenance.ws.Employee? - Don't map it to a different package. You map it to the same package and specify no separate output directory for the generated files. The original files get overwritten. - Specify a different output directory if you don't want the original files to be overwritten. Thank you Dies!! That was what I was wanting to know - and everything is working great now. I was following this example where they have the java files built to another package http://www.onjava.com/pub/a/onjava/2002/06/05/axis.html?page=2 but in that case they were just returning type int so they weren't having to work with a non native object. org.apache.axis.description.typedesc not public or does not allow instantiation. Is that a warning or compile error? What does the code look like? Axis generates some extra code in the generated Javabeans to help with (de)serialization. They are probably accessed by classes in the org.apache.axis.description package, and therefore do not need to be public? Well, I'm not really sure what it is. Typically IDEA puts things in red that are errors and the getEmployees method of EmployeeMaintenanceSoapBindingImpl (generated by java2WSDL) definitely is RED, (as seen in this image from an earlier post http://www.pastehere.com/?kndvie) yet the whole project compiles fine and the webservice is working great. I'm not going to worry about I guess since things compile fine. Once again, THANKS so much. You really helped clear up a lot of confusion.
WSDL2Java question
Hello all, i am new to Axis2. I am experimenting with the Axis2 examples found at http://ws.apache.org/axis2/userguide.html. After executing WSDL2Java -uri ..\samples\wsdl\Axis2SampleDocLit.wsdl -ss -sd -o ..\samples\src -p org.apache.axis2.userguidethe documentation mentions the following:" This will generate the required classes in the src directory inside samples.This will also generate the schema classes in a directory named schema and please note that these are not source files and should be availed in the class path in order to compile the generated classes "However, both the command line WSDL2Java tool and the eclipse (3.0) plugin create the following 3 directories: org schemaorg_apache_xmlbeans service_descriptors Where is the "schema" directory? Is it the "schemaorg_apache_xmlbeans"? Eclipse reports org.soapinterop.xsd.EchoStringReturnDocument as unresolvable. Where is this type located so i can complete the complilation process? Any help appreciated, thanks, george.
WSDL2Java Question
I have a complete set of Java classes that I am exposing through Axis 1.3. Is there a way, using WSDL2Java, to only generate the binding classes (i.e. Service, ServiceLocator, SoapBindingImpl, SoapBindingStub, SoapBindingSkeleton), the deploy and undeploy WSDD files, without also generating all of the other server-side skeleton code for my existing classes? It would be nice (and convenient) if WSDL2Java would simply hook into my existing classes.. Thanks! Jerry Jalenak Software Engineer Netopia, Inc.
RE: WSDL2Java Question
use -S option while you generate. Thanks, Parikh, Pratik From: Jalenak, Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 10:57 AMTo: axis-user@ws.apache.orgSubject: WSDL2Java Question I have a complete set of Java classes that I am exposing through Axis 1.3. Is there a way, using WSDL2Java, to only generate the binding classes (i.e. Service, ServiceLocator, SoapBindingImpl, SoapBindingStub, SoapBindingSkeleton), the deploy and undeploy WSDD files, without also generating all of the other server-side skeleton code for my existing classes? It would be nice (and convenient) if WSDL2Java would simply hook into my existing classes.. Thanks! Jerry Jalenak Software Engineer Netopia, Inc. CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --
RE: WSDL2Java Question
that should work, Thanks, Parikh, Pratik From: Jalenak, Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 11:09 AMTo: axis-user@ws.apache.orgSubject: RE: WSDL2Java Question Ive done that, and I still get skeleton classes for all of my objects. I think what is happening is that WSDL2Java is creating an entire package for my webservice, when I really already have all the implementation done. What I have been thinking now is, can I simply change the deploy.wsdd to point to my implemented class? Or will that cause other problems? Jerry Jalenak Software Engineer Netopia, Inc. From: Parikh,Pratik [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 11:00 AMTo: axis-user@ws.apache.orgSubject: RE: WSDL2Java Question use -S option while you generate. Thanks, Parikh, Pratik From: Jalenak, Jerry [mailto:[EMAIL PROTECTED] Sent: Friday, November 04, 2005 10:57 AMTo: axis-user@ws.apache.orgSubject: WSDL2Java Question I have a complete set of Java classes that I am exposing through Axis 1.3. Is there a way, using WSDL2Java, to only generate the binding classes (i.e. Service, ServiceLocator, SoapBindingImpl, SoapBindingStub, SoapBindingSkeleton), the deploy and undeploy WSDD files, without also generating all of the other server-side skeleton code for my existing classes? It would be nice (and convenient) if WSDL2Java would simply hook into my existing classes.. Thanks! Jerry Jalenak Software Engineer Netopia, Inc. CONFIDENTIALITY NOTICEThis message and any included attachmentsare from Cerner Corporation and are intendedonly for the addressee. The informationcontained in this message is confidential andmay constitute inside or non-public informationunder international, federal, or statesecurities laws. Unauthorized forwarding,printing, copying, distribution, or use of suchinformation is strictly prohibited and may beunlawful. If you are not the addressee, pleasepromptly delete this message and notify thesender of the delivery error by e-mail or youmay call Cerner's corporate offices in KansasCity, Missouri, U.S.A at (+1) (816)221-1024. --
Help -- WSDL2Java Question
Hi, From the Axis users guide, it says for each entry in the type section, a java class will be generated by WSDL2Java. I have a wsdl file which defines 5 XMl data types in schema part. Eclipse can generate 5 java classes (ContentType, ListRequestType, ReturnedResultCount, SearchString and SummaryRequestType) based on the schema. This makes sense. If I use WSDL2Java to generate client side, I can only get 3 java classes (ContentType, ListRequestType and SummaryRequestType). Could someone tell me why? Do I need to give some options to generate the other twos? The WSDL file is as following. Thanks a lot. Helen ?xml version=1.0 encoding=UTF-8? xsd:schema targetNamespace=http://www.company.com/RID.xsd1 xmlns:SOAP-ENC=http://schemas.xmlsoap.org/soap/encoding/ xmlns:xsd=http://www.w3.org/2001/XMLSchema xmlns:xsd1=http://www.company.com/RID.xsd1 xsd:simpleType name=summaryRequestType xsd:restriction base=xsd:string xsd:enumeration value=SUMMARY-RADIOLOGY/ xsd:enumeration value=SUMMARY-CARDIOLOGY/ xsd:enumeration value=SUMMARY/ xsd:enumeration value=SUMMARY-LABORATORY/ /xsd:restriction /xsd:simpleType xsd:simpleType name=listRequestType xsd:restriction base=xsd:string xsd:enumeration value=LIST-ALLERGIES/ xsd:enumeration value=LIST-MEDS/ /xsd:restriction /xsd:simpleType !-- Please list all content types available, and remove those not available. -- xsd:simpleType name=contentType xsd:restriction base=xsd:string xsd:enumeration value=text/html/ /xsd:restriction /xsd:simpleType !-- Indicates that this item is a returned rows restriction -- xsd:simpleType name=ReturnedResultCount xsd:restriction base=xsd:positiveInteger /xsd:restriction /xsd:simpleType !-- Please use the string Search as a prefix for all search criteria, and list below -- !-- Indicates that this item is a search string -- xsd:simpleType name=SearchString xsd:restriction base=xsd:string /xsd:restriction /xsd:simpleType /xsd:schema