Re: [axis2] jars for ADB client

2007-02-07 Thread ChadDavis

Here's what i use: I think you can strip it down further.

XmlSchema-1.2.jar
activation-1.1.jar
annogen-0.1.0.jar
axiom-api-1.2.2.jar
axiom-impl-1.2.2.jar
axis2-adb-1.1.1.jar
axis2-adb-codegen-1.1.1.jar
axis2-codegen-1.1.1.jar
axis2-java2wsdl-1.1.1.jar
axis2-kernel-1.1.1.jar
axis2-tools-1.1.1.jar
backport-util-concurrent-2.2.jar
commons-codec-1.3.jar
commons-httpclient-3.0.1.jar
commons-logging-1.1.jar
jaxen-1.1-beta-10.jar
mail-1.4.jar
neethi-2.0.jar
stax-api-1.0.1.jar
woden-1.0.0M6.jar
wsdl4j-1.6.2.jar
wstx-asl-3.2.0.jar
xalan-2.7.0.jar
xbean-2.2.0.jar
xml-apis-1.0.b2.jar



Thanks.  Ideally, I'd like to know exactly.  But that's just me being
picky.  Still, I hate to introduce resources into my project that I
don't know exactly their use.  Its probably no big deal, but to my
simple mind, a pile of jar files poses unknown organizational threats.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [axis2] jars for ADB client

2007-02-07 Thread ChadDavis

It's a bit fluid...Example if you are running in JDK1.4 you don't need
 xml-apis-1.0.b2.jar and  xalan-2.7.0.jar. If you are running in
JDK1.6, you don't need stax-api-1.0.1.jar. If you don't need our
experimental wsdl20 support, then you can drop woden-1.0.0M6.jar. If
you don't run xpath over axiom, then you can drop
jaxen-1.1-beta-10.jar. I think the stax parser in JDK1.6 may work in
most cases, then you won't need wstx-asl-3.2.0.jar. So in the end, you
have to do this yourself, for your use case, for your environment what
whatever you do. make sure you do three things...test, test, test :)


Thanks for the insight.  That's the kind of info that I was looking for.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[axis2] wsdl2java operation control

2007-02-07 Thread ChadDavis

I've used wsdl2java to generate a client side stub.  Everything works
fine, but the file is mega-huge.  90k lines.  In fact, it kind of
brings my IDE to its knees.  I only need a single operation from the
stub, so I'm trying to trim the thing down to size, which is kind of
difficult since my IDE can't handle the size very well.

SO . . . is it possible to specify a subset of operations from the
WSDL that the wsdl2java command should build into the stub?

THanks,
Chad

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[axis2] jars for ADB client

2007-02-05 Thread ChadDavis

Seems like there's an obvious answer to this, but I haven't been able
to find it.  How do I determine wich jar files are necessary for
running an ADB client.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Do you know a tool to easily visualize a wsdl file ?

2007-01-17 Thread ChadDavis

What platform / os are you on?

On linux, I had trouble with several xml editors being able to handle
long wsdl's.  The best I'v found is called MLView.  I'm not sure its
what your looking for, in terms of graphical representation, but it is
super fast and represents the document as a DOM hieararchy, which
makes it very easy to see the various elements and regions of a wsdl.
Or you can view the document as the raw document but with element
based code folding which also makes it very easy to peruse lengthy
documents.



On 1/17/07, Samy Mechiri [EMAIL PROTECTED] wrote:



Hi everyone,

do you know any small, easily usable tool to visualize what operations (and
their arguments) are available on a wsd file ?

There seem to be nusoap having such a tool (i've read about it on
http://www.xml.com/lpt/a/1388) but I could not find any reference to it on
nusoap's web page.

Ideally it would output the results as a txt or html file

Thank you for reading.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Do you know a tool to easily visualize a wsdl file ?

2007-01-17 Thread ChadDavis

Samy,

I think the DOM view offerd by MLVIEW is exactly what you show below.
Note: I sent a screen cap of the dom view of MLView to your email
address directly.  I didn't want to clog the bandwith of the list with
a pic.

ALso, I think many xml editors provide a similar DOM view.

Chad

On 1/17/07, Samy Mechiri [EMAIL PROTECTED] wrote:

I am on Windows/CygWin

I am not sure it is what I searching for.
I don't want a simple xml editor. What I want is really specific to wsdl
files.

The idea is to get rid of overload of all the xml grammar

An example of output would be:

configureMyThing: operation
-thingName: [xsd:string]
-thingConfig: [myns:ThingConfiguration]
-thingCount: [xsd:int]
-thingLinks: [xsd:string]
...
...


There you see all the arguments of the functions are separated with
potentially the name of the argument and it's type (when type is not a
primitive it is also recursively detailed)


regards,

Samy MECHIRI - Software Engineer
KXEN - 92158 Suresnes CEDEX
FRANCE

-Original Message-
From: ChadDavis [mailto:[EMAIL PROTECTED]
Sent: mercredi 17 janvier 2007 17:18
To: axis-user@ws.apache.org
Subject: Re: Do you know a tool to easily visualize a wsdl file ?

What platform / os are you on?

On linux, I had trouble with several xml editors being able to handle
long wsdl's.  The best I'v found is called MLView.  I'm not sure its
what your looking for, in terms of graphical representation, but it is
super fast and represents the document as a DOM hieararchy, which makes
it very easy to see the various elements and regions of a wsdl.
Or you can view the document as the raw document but with element based
code folding which also makes it very easy to peruse lengthy
documents.



On 1/17/07, Samy Mechiri [EMAIL PROTECTED] wrote:


 Hi everyone,

 do you know any small, easily usable tool to visualize what operations

 (and their arguments) are available on a wsd file ?

 There seem to be nusoap having such a tool (i've read about it on
 http://www.xml.com/lpt/a/1388) but I could not find any reference to
 it on nusoap's web page.

 Ideally it would output the results as a txt or html file

 Thank you for reading.

-
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]



axis fault -- where does the content come from

2007-01-16 Thread ChadDavis

I'm getting an AxisFault.  It has specific information from the
service in it that seems like a successful exchange with the
service.  In this case, its an authentication attempt.  The message in
the fault seems to be an appropriate, if not desirable, response from
the service.

Why is this an AxisFault then?  Is something wrong?

The authenticate action is not defined to return anything, so is this
the cause of the fault.  The service is returning a bit of
information.  If someone could enlighten me on this, I'd appreciate
it.

Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[axis2] size of wsdl2java generated stub

2007-01-15 Thread ChadDavis

Hello.  I've generated an ADB client stub with the wsdl2java tool.
The wsdl file was about 3600 lines long, and the geneerated stuf is
about 88,800 lines long.  Wow.  Does this sound within the realm of
the expected?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[AXIS2] http1.1/100

2007-01-15 Thread ChadDavis

I get the following INFO message when execturing my client.  Client is
ADB, wsdl2java generated.


Jan 15, 2007 12:45:50 PM org.apache.commons.httpclient.HttpMethodBase
readResponse
INFO: Discarding unexpected response: HTTP/1.1 100 Continue

Is this an error?  What does it indicate?

Thanks for your help.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



empty element responses

2007-01-15 Thread ChadDavis

I'm using an authenticate service that doesn't return anything.
However, axis2 ( ADB with wsdl2java ) provides an empty response
object.  Do I need to inspect this emtpy response object for anything?
What is the purpose of having an empty response?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis2 client JAR requirements

2007-01-15 Thread ChadDavis

Danny,

The axis2 distribution, probably something similar in axis1, has a
script in the bin directory that sets an [EMAIL PROTECTED] variable
that includes all the jars from the lib directory automatically.  I
realize this doesn't answer your question about how many of the jars
from the lib are necessary, but . . . this script is convenient at any
rate.  Its called axis2 and you can use it similarly to 'java'; e.g.

   axis2.sh org.foo.bar.MyClient

Note, it sources a setenv.sh script to set up the classpath, and i
think it needs a environement varialbe for AXIS2_HOME set.

Chad

On 1/15/07, Danny Lin [EMAIL PROTECTED] wrote:



Right now I am getting NoClassDefFoundError (see below), when my code is
creating a stub. Any help is greatly appreciated.



InmateMatchServiceStub stub = new InmateMatchServiceStub(myURL);

java.lang.NoClassDefFoundError: org/apache/axis2/client/Stub
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
 at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
 at
org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1634)
 at
org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:860)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1307)
 at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
 at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
 at
us.sc.state.doc.intake.IntakeInmateMatchAction.searchSCDC(IntakeInmateMatchAction.java:108)


 
 From: Danny Lin [mailto:[EMAIL PROTECTED]
Sent: Monday, January 15, 2007 4:12 PM
To: axis-user@ws.apache.org; axis-dev@ws.apache.org
Subject: Axis2 client JAR requirements



I have a webservice written using XMLBeans databinding. The client is also
using XMLBeans. So far, I've got the web service running and the client (a
Java class with main() method) is able to talk to the service without
problems.

In practice, I need to have a client from another webapp. I want to do
something similar to my client.java in the test. The Axis2 is installed as a
webapp. What's the recommendation for sharing the JAR libraries? Should I
copy all Axis2 JAR to Tomcat shared/lib directory? Or, should I hand pick
the required JARs and pack them within my WAR file? Is there a list of the
required JAR files when using XMLBeans databinding?

Thanks.

Danny



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[axis2] package namespaces generated by wsdl2java

2007-01-13 Thread ChadDavis

Hello.

I am generating ADB, server side code from a WSDL.  When I set the
package parameter, only the skeleton and co. are generated to that
package.  The other classes are still generated to a package that
SEEMS to be coming from some part of the wsdl namespaces.  Can someone
tell me exactly how this package namespace is derived from the WSDL,
if it is?  And can this be overridden, or is that idea just plain
dumb?

I'm working with the ADB, generated from WSDL, examples in the
axis2-1.1.1 user guide.

Thansk for your assistance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: transport out has not been set

2007-01-12 Thread ChadDavis

Thanks for you help.  I'm still not there yet though.

Actually, I didn't change anything in axis2.xml  I started to suspect
that the problem was related to the configuration.  So, is that client
supposed to read the axis2.xml file?  If so, how does it know where to
find it?

Interestingly enought, when I executed the client via the axis2.sh
script, which I notice passes in params to indiciate the location of
the axis2.xml file, I get a different error message.  A required
header representing a message addressing header is not present

All of this seems to indicate that I need to understand the
configuration via the axis2.xml.  I've looked at the documentaiton but
still don't understand how the client reads the axis2.xml file.  ALSO,
which class is bing configured in the case of the client?  AND is
there ever a case where it can run successfully without reading the
axis2.xml file?

On 1/11/07, Charitha Kankanamge [EMAIL PROTECTED] wrote:

Hi ChadDavis,
I deployed the UserGuideSampleService as mentioned  in the axis2 new
user guide and created the client by copying the code included in youe
email. (Which is the same given in the user guide).
I was able to invoke the service without having any issues. I tried with
Tomcat 5.5.16 and the embedded axis2 server. Got the same results in
both instances. My Java version is 1.5.0_06 and axis vesrion axis2-1.1.1.

It seems that you have changed the default settings in the axis2.xml.
Please check your axis2.xml and try again.

Regards
Charitha


ChadDavis wrote:
 I'm trying to run a client from the new user guide.  When I run it I
 get the message that the transport out has not been set.  The code is
 directly from the user guide, but I 'll post it here for convenience.
 What causes this error?

 package org.apache.axis2.axis2userguide;

 import javax.xml.stream.XMLStreamException;
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.OMNamespace;
 import org.apache.axis2.addressing.EndpointReference;
 import org.apache.axis2.client.Options;
 import org.apache.axis2.Constants;
 import org.apache.axis2.client.ServiceClient;

 public class SampleClient {

   private static EndpointReference targetEPR =
 new EndpointReference(

 http://localhost:8080/axis2/services/UserGuideSampleService;);

public static OMElement greetUserPayload(String personToGreet) {
OMFactory fac = OMAbstractFactory.getOMFactory();
OMNamespace omNs = fac.createOMNamespace(
http://example1.org/example1;, example1);
OMElement method = fac.createOMElement(sayHello, omNs);
OMElement value = fac.createOMElement(personToGreet,
 omNs);
value.addChild(fac.createOMText(value, personToGreet));
method.addChild(value);
return method;
}

public static void main(String[] args) {
try {
OMElement payload =
 SampleClient.greetUserPayload(John);
Options options = new Options();
options.setTo(targetEPR);

 options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

ServiceClient sender = new ServiceClient();
sender.setOptions(options);
OMElement result = sender.sendReceive(payload);

String response = result.getFirstElement().getText();
System.out.println(response);

} catch (Exception e) { //(XMLStreamException e) {
System.out.println(e.toString());
}
}

 }

 -
 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]



running a client without axis2.xml

2007-01-12 Thread ChadDavis

Is it possible to run a client without any reference, or
specification, of a global configuraation file ( axis2.xml ) ?  Are
there built in defaults that will work?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: transport out has not been set

2007-01-12 Thread ChadDavis

Okay, so it turns out that I didn't have all of the jars from the
distribution's lib file in my classpath.  The error I received on
trying to run the client was, however, a configuration related error.
I guess this must be because some implementation class with the
default configuration was not found; shouldn't the framework through a
classnotfound error??? There's probably some good reason for this, but
its confusing.



On 1/12/07, ChadDavis [EMAIL PROTECTED] wrote:

Thanks for you help.  I'm still not there yet though.

Actually, I didn't change anything in axis2.xml  I started to suspect
that the problem was related to the configuration.  So, is that client
supposed to read the axis2.xml file?  If so, how does it know where to
find it?

Interestingly enought, when I executed the client via the axis2.sh
script, which I notice passes in params to indiciate the location of
the axis2.xml file, I get a different error message.  A required
header representing a message addressing header is not present

All of this seems to indicate that I need to understand the
configuration via the axis2.xml.  I've looked at the documentaiton but
still don't understand how the client reads the axis2.xml file.  ALSO,
which class is bing configured in the case of the client?  AND is
there ever a case where it can run successfully without reading the
axis2.xml file?

On 1/11/07, Charitha Kankanamge [EMAIL PROTECTED] wrote:
 Hi ChadDavis,
 I deployed the UserGuideSampleService as mentioned  in the axis2 new
 user guide and created the client by copying the code included in youe
 email. (Which is the same given in the user guide).
 I was able to invoke the service without having any issues. I tried with
 Tomcat 5.5.16 and the embedded axis2 server. Got the same results in
 both instances. My Java version is 1.5.0_06 and axis vesrion axis2-1.1.1.

 It seems that you have changed the default settings in the axis2.xml.
 Please check your axis2.xml and try again.

 Regards
 Charitha


 ChadDavis wrote:
  I'm trying to run a client from the new user guide.  When I run it I
  get the message that the transport out has not been set.  The code is
  directly from the user guide, but I 'll post it here for convenience.
  What causes this error?
 
  package org.apache.axis2.axis2userguide;
 
  import javax.xml.stream.XMLStreamException;
  import org.apache.axiom.om.OMAbstractFactory;
  import org.apache.axiom.om.OMElement;
  import org.apache.axiom.om.OMFactory;
  import org.apache.axiom.om.OMNamespace;
  import org.apache.axis2.addressing.EndpointReference;
  import org.apache.axis2.client.Options;
  import org.apache.axis2.Constants;
  import org.apache.axis2.client.ServiceClient;
 
  public class SampleClient {
 
private static EndpointReference targetEPR =
  new EndpointReference(
 
  http://localhost:8080/axis2/services/UserGuideSampleService;);
 
 public static OMElement greetUserPayload(String personToGreet) {
 OMFactory fac = OMAbstractFactory.getOMFactory();
 OMNamespace omNs = fac.createOMNamespace(
 http://example1.org/example1;, example1);
 OMElement method = fac.createOMElement(sayHello, omNs);
 OMElement value = fac.createOMElement(personToGreet,
  omNs);
 value.addChild(fac.createOMText(value, personToGreet));
 method.addChild(value);
 return method;
 }
 
 public static void main(String[] args) {
 try {
 OMElement payload =
  SampleClient.greetUserPayload(John);
 Options options = new Options();
 options.setTo(targetEPR);
 
  options.setTransportInProtocol(Constants.TRANSPORT_HTTP);
 
 ServiceClient sender = new ServiceClient();
 sender.setOptions(options);
 OMElement result = sender.sendReceive(payload);
 
 String response = result.getFirstElement().getText();
 System.out.println(response);
 
 } catch (Exception e) { //(XMLStreamException e) {
 System.out.println(e.toString());
 }
 }
 
  }
 
  -
  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]



axis looking in wrong place for generated ADB factory

2007-01-12 Thread ChadDavis

I've created and partially successfully run the ADB client from the
user guide.  See following link:
http://ws.apache.org/axis2/1_1_1/userguide-creatingclients.html#adb


My Problem:

I've got 3 of four requests / responses behaving properly.  On the
fourth, the multiple parameters in both directions one, it blows up
with a classnotfound on the MultipleParametersAddItemRequest$Factory
class.  This class does exist on the classpath.  The problem is that
it is an inner class, as created by the wsdl2java with ADB set.  It
seems that axis2 is looking for the the MPARequest as a toplevel
class?  Below is the stack trace.  How is this generated Request any
different than the ones for the first three requests?


calling do in only
done
calling two way echo
Knock Knock
calling no parameters.
[EMAIL PROTECTED]
calling mulitp param
org.apache.axis2.AxisFault: java.lang.NoClassDefFoundError:
org/apache/axis2/axis2userguide/MultipleParametersAddItemRequest$Factory
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:271)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:202)
at 
org.apache.axis2.axis2userguide.Axis2UserGuideServiceStub.MultipleParametersAddItem(Axis2UserGuideServiceStub.java:398)
at 
org.apache.axis2.axis2userguide.TestClient.multipleParameters(TestClient.java:89)
at org.apache.axis2.axis2userguide.TestClient.main(TestClient.java:26)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java Question

2007-01-11 Thread ChadDavis

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]



behaviour of wsdl2java adb binding

2007-01-11 Thread ChadDavis

THe documentation says that the ADB data binding may not work for more
complex wsdl's.  What is the behaviour of the wsdl2java in these
cases?  Can I assume that if the stub comes out and compiles that the
wsdl is fully handled by the ADB?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java Question

2007-01-11 Thread ChadDavis

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]



transport out has not been set

2007-01-11 Thread ChadDavis

I'm trying to run a client from the new user guide.  When I run it I
get the message that the transport out has not been set.  The code is
directly from the user guide, but I 'll post it here for convenience.
What causes this error?

package org.apache.axis2.axis2userguide;

import javax.xml.stream.XMLStreamException;
import org.apache.axiom.om.OMAbstractFactory;
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.OMFactory;
import org.apache.axiom.om.OMNamespace;
import org.apache.axis2.addressing.EndpointReference;
import org.apache.axis2.client.Options;
import org.apache.axis2.Constants;
import org.apache.axis2.client.ServiceClient;

public class SampleClient {

  private static EndpointReference targetEPR =
new EndpointReference(
  http://localhost:8080/axis2/services/UserGuideSampleService;);

   public static OMElement greetUserPayload(String personToGreet) {
   OMFactory fac = OMAbstractFactory.getOMFactory();
   OMNamespace omNs = fac.createOMNamespace(
   http://example1.org/example1;, example1);
   OMElement method = fac.createOMElement(sayHello, omNs);
   OMElement value = fac.createOMElement(personToGreet,
omNs);
   value.addChild(fac.createOMText(value, personToGreet));
   method.addChild(value);
   return method;
   }

   public static void main(String[] args) {
   try {
   OMElement payload =
SampleClient.greetUserPayload(John);
   Options options = new Options();
   options.setTo(targetEPR);

options.setTransportInProtocol(Constants.TRANSPORT_HTTP);

   ServiceClient sender = new ServiceClient();
   sender.setOptions(options);
   OMElement result = sender.sendReceive(payload);

   String response = result.getFirstElement().getText();
   System.out.println(response);

   } catch (Exception e) { //(XMLStreamException e) {
   System.out.println(e.toString());
   }
   }

}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [AXIS2] user guide sample / null pointer exception

2007-01-10 Thread ChadDavis

Charitha,

Thanks for your help.  Well, I used the first try block of the code
you use below.  And I used it as you have it, cut and pasted from the
userguide.  I only have one of the try blocks though.  Did you mean
that I need all three?  I thought the three were different ways of
implementing a client.  Besides, the first try block throws a null
pointer exception somewhere down inside the stub.echoString() call, so
the other blocks wouldn't get executed anyhow.

What do you think?

On 1/9/07, Charitha Kankanamge [EMAIL PROTECTED] wrote:

Hi Chad,
I just tried out the user guide Axis2SampleDocLit sample and I was able
to invoke that service by using the client code given in the document.

I used the following client code fragment which is given in the user guide.

package org.apache.axis2.userguide;

public class testclient {

public static void main (String args[]){

try {
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub stub
  = new
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub(null,

http://localhost:8080/axis2/services/Axis2SampleDocLitService;);
//Create the request document to be sent.
org.apache.axis2.userguide.xsd.EchoStringParamDocument reqDoc =

org.apache.axis2.userguide.xsd.EchoStringParamDocument.Factory.newInstance();
reqDoc.setEchoStringParam(Axis2 Echo);
//invokes the Web service.
org.apache.axis2.userguide.xsd.EchoStringReturnDocument
resDoc =
  stub.echoString(reqDoc);
System.out.println(resDoc.getEchoStringReturn());
} catch (java.rmi.RemoteException e) {
 e.printStackTrace();
}

try {
 //Create the stub by passing the AXIS_HOME and target EPR.
 //We pass null to the AXIS_HOME and hence the stub will use
the current directory as the AXIS_HOME
 org.apache.axis2.userguide.Axis2SampleDocLitServiceStub stub =
  new
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub(null,

http://localhost:8080/axis2/services/Axis2SampleDocLitService;);
 //Create the request document to be sent.
 org.apache.axis2.userguide.xsd.EchoStringArrayParamDocument
reqDoc =

org.apache.axis2.userguide.xsd.EchoStringArrayParamDocument.Factory.newInstance();
org.apache.axis2.userguide.xsd.ArrayOfstringLiteral
paramArray =

org.apache.axis2.userguide.xsd.ArrayOfstringLiteral.Factory.newInstance();
paramArray.addString(Axis2);
paramArray.addString(Echo);
reqDoc.setEchoStringArrayParam(paramArray);
org.apache.axis2.userguide.xsd.EchoStringArrayReturnDocument
resDoc =
stub.echoStringArray(reqDoc);
//Get the response params
String[] resParams =
resDoc.getEchoStringArrayReturn().getStringArray();
for (int i = 0; i  resParams.length; i++) {
System.out.println(resParams[i]);
}
  } catch (java.rmi.RemoteException e) {
 e.printStackTrace();
  }


try {
  //Create the stub by passing the AXIS_HOME and target EPR.
  //We pass null to the AXIS_HOME and hence the stub will use the
current directory as the AXIS_HOME
  org.apache.axis2.userguide.Axis2SampleDocLitServiceStub stub =
  new
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub(null,

http://localhost:8080/axis2/services/Axis2SampleDocLitService;);
//Create the request Document
  org.apache.axis2.userguide.xsd.EchoStructParamDocument
reqDoc =

org.apache.axis2.userguide.xsd.EchoStructParamDocument.Factory.newInstance();
   //Create the complex type
  org.apache.axis2.userguide.xsd.SOAPStruct reqStruct =

org.apache.axis2.userguide.xsd.SOAPStruct.Factory.newInstance();
  reqStruct.setVarFloat(100.50F);
  reqStruct.setVarInt(10);
  reqStruct.setVarString(High);
  reqDoc.setEchoStructParam(reqStruct);
  //Service invocation
  org.apache.axis2.userguide.xsd.EchoStructReturnDocument
resDoc =
   stub.echoStruct(reqDoc);
 org.apache.axis2.userguide.xsd.SOAPStruct resStruct =
resDoc.getEchoStructReturn();
 System.out.println(floot Value : + resStruct.getVarFloat());
 System.out.println(int Value : + resStruct.getVarInt());
 System.out.println(String Value : +
resStruct.getVarString());
   } catch (java.rmi.RemoteException e) {
  e.printStackTrace();
  }

}

}

Can you please make sure your client code is correct?

Regards
Charitha

ChadDavis wrote:
 As per the user guide, I'm trying to run the client and web service
 built from Axis2SampleDocLit.wsdl

 When I run the client I get a null pointer exception as follows:

 Exception in thread main java.lang.NullPointerException

problems with quick start

2007-01-10 Thread ChadDavis

Hello all.  I'm doing the ADB Client in the quickstart guide.  I am
able to build the client manually ( wsdl2java from the command line ),
but when I try to use the ant task to generate the client the task
fails.  I doesn't produce a stub, and doesn't produce a build.xml.
The only error ant gives is the complain that it can't find the
build.xml file for the ant . . / task at the end of the target (
generate.client).

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WSDL2Java Question

2007-01-10 Thread ChadDavis

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

2007-01-10 Thread ChadDavis

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: problems with quick start

2007-01-10 Thread ChadDavis

Okay.  So I went back and tried to do the ADB service with the ant
tasks.  I had previously build the service manually.  The ant task
doesn't work for the ADB service either.  Perhaps I've got something
set up wrong.  But in the interest of improving the build file . . .

Here's the target to build the service.  Notice that the output folder
assigned to the WSDL2Java task is the exact same as the directory
indicated in the ant .. task.  The ant tasks wants to execute the
build.xml generated by the wsdl2java task.  And though it intuitively
seems like it should work, since they both point to
${build.dir}/service, it doesn't work for me.  Note,
${build.dir}/service resolves, within the property space of the
executing ant task, to build/service

What happens on my build is that the output from the wsdl2java task
resolves the directory for its output based upon the AXIS2_HOME ( I'm
not sure whether it gets it from the environment variable but that's
where it goes ).  So, the output from the wsdl2java task ends up going
to a AXIS2_HOME/build/service/ BUT the ant . . .  task is looking at
its own local build/service ( which happens to be, in the case of the
quickstart example, AXIS2_HOME/samples/quickstartadb/build/service )
and it can't find the generated build.xml of course.

So, the question is, how does the wsdl2java task resolve its output attribute?

FYI, here's the whole generate.service target:

 target name=generate.service depends=init
   taskdef name=wsdl2java
classname=org.apache.axis2.tool.ant.AntCodegenTask
classpathref=axis2.classpath/
   wsdl2java
wsdlFilename=${basedir}/resources/META-INF/StockQuoteService.wsdl
  output=${build.dir}/service
  packageName=samples.quickstart.service.adb
  language=java
  databindingName=adb
  synconly=true
  serverside=true
  serverSideInterface=true

namespaceToPackages=http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd;
  generateservicexml=true/
   copy 
file=${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java
 toDir=${build.dir}/service/src/samples/quickstart/service/adb/
 overwrite=yes
   /copy
   copy file=${basedir}/resources/META-INF/services.xml
 toDir=${build.dir}/service/resources/
 overwrite=yes
   /copy
   ant dir=${build.dir}/service/
   /target


On 1/10/07, ChadDavis [EMAIL PROTECTED] wrote:

Hello all.  I'm doing the ADB Client in the quickstart guide.  I am
able to build the client manually ( wsdl2java from the command line ),
but when I try to use the ant task to generate the client the task
fails.  I doesn't produce a stub, and doesn't produce a build.xml.
The only error ant gives is the complain that it can't find the
build.xml file for the ant . . / task at the end of the target (
generate.client).



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problems with quick start

2007-01-10 Thread ChadDavis

Talking to myself.  But oh well.

So, I've fixed, at least in my environment, the build files for the
quickstartadb samples.  I changed the wsdl2java tasks in both
generate.service and generate.client to inherently work from the same
directory as the build by writing their output attribute path as
follows:

output=${basedir}/${build.dir}/client

I just added the basedir property.

However, I'm still curious to know whether these build files work for
other people???



On 1/10/07, ChadDavis [EMAIL PROTECTED] wrote:

Okay.  So I went back and tried to do the ADB service with the ant
tasks.  I had previously build the service manually.  The ant task
doesn't work for the ADB service either.  Perhaps I've got something
set up wrong.  But in the interest of improving the build file . . .

Here's the target to build the service.  Notice that the output folder
assigned to the WSDL2Java task is the exact same as the directory
indicated in the ant .. task.  The ant tasks wants to execute the
build.xml generated by the wsdl2java task.  And though it intuitively
seems like it should work, since they both point to
${build.dir}/service, it doesn't work for me.  Note,
${build.dir}/service resolves, within the property space of the
executing ant task, to build/service

What happens on my build is that the output from the wsdl2java task
resolves the directory for its output based upon the AXIS2_HOME ( I'm
not sure whether it gets it from the environment variable but that's
where it goes ).  So, the output from the wsdl2java task ends up going
to a AXIS2_HOME/build/service/ BUT the ant . . .  task is looking at
its own local build/service ( which happens to be, in the case of the
quickstart example, AXIS2_HOME/samples/quickstartadb/build/service )
and it can't find the generated build.xml of course.

So, the question is, how does the wsdl2java task resolve its output attribute?

FYI, here's the whole generate.service target:

  target name=generate.service depends=init
taskdef name=wsdl2java
 classname=org.apache.axis2.tool.ant.AntCodegenTask
 classpathref=axis2.classpath/
wsdl2java
wsdlFilename=${basedir}/resources/META-INF/StockQuoteService.wsdl
   output=${build.dir}/service
   packageName=samples.quickstart.service.adb
   language=java
   databindingName=adb
   synconly=true
   serverside=true
   serverSideInterface=true

namespaceToPackages=http://quickstart.samples/xsd=samples.quickstart.service.adb.xsd;
   generateservicexml=true/
copy 
file=${basedir}/src/samples/quickstart/service/adb/StockQuoteServiceSkeleton.java
  toDir=${build.dir}/service/src/samples/quickstart/service/adb/
  overwrite=yes
/copy
copy file=${basedir}/resources/META-INF/services.xml
  toDir=${build.dir}/service/resources/
  overwrite=yes
/copy
ant dir=${build.dir}/service/
/target


On 1/10/07, ChadDavis [EMAIL PROTECTED] wrote:
 Hello all.  I'm doing the ADB Client in the quickstart guide.  I am
 able to build the client manually ( wsdl2java from the command line ),
 but when I try to use the ant task to generate the client the task
 fails.  I doesn't produce a stub, and doesn't produce a build.xml.
 The only error ant gives is the complain that it can't find the
 build.xml file for the ant . . / task at the end of the target (
 generate.client).




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



documentation moving around?

2007-01-10 Thread ChadDavis

Seems like the documentation has been moving around on the site?  In
particular, the user guide seems to have morphed before my eyes.  Is
this really happening, or do I need to take a break?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [AXIS2] jar resource required by examples

2007-01-09 Thread ChadDavis

Thilina,

Thanks for the help.  I am, however, using AXIS2-1.1 and I still got
the class not found as described above.  Actually, that was the intent
of my post -- to determine whether a jar was missing from the
distribution, or I had done something not quite right.  Do you think
the jar was actually missing?

Chad



On 1/6/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:

Hi Chad,
Try putting [1]  [2] in to the classpath (make sure to remove the
existing stax-api  dev prior to that)...They are the stax jars used
by Axis2 1.1...

Which version of Axis2 are you using.. I would recommend you to start
with the 1.1 release. Download the binary distribution. It contains
almost all the jars required for you (Except for jars required for
advanced usages like Spring jars).

~Thilina
[1]http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar
[2]http://woodstox.codehaus.org/3.1.1/wstx-asl-3.1.1.jar

On 1/7/07, ChadDavis [EMAIL PROTECTED] wrote:
 Hi.  I'm working through the examples in the AXIS2 introduction.  I've
 written a class to invoke the echo string service.  It complained
 about a class not being in the classpath,
 com.bea.xml.stream.MXSomeKindofFactory.  I managed to find a jar (
 stax-1.1.1-dev.jar ) with this on the STAX site and put it in the path
 and proceeded on to other problems.

 However, I'm curious as to why a required resources was missing from
 the AXIS distribution.  I'm sure there's a reason, so . . . what am I
 missing ?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: consequences of choosing axis

2007-01-09 Thread ChadDavis

Anne,


One consequence of selecting Axis2 is that it does not [yet] support
the standard Java APIs for web services (JAX-RPC and JAX-WS). Axis2
uses a platform-specific object model, AXIOM, which is based on StAX,
for processing XML. For the most control, you can use the low-level
API, which represents message data as an OMElement. But you also have
the option of using any data binding system (JAXB, XMLBeans, JiBX,
ADB, etc) to convert the XML messages into Java objects for you.


This may be a dumb question, but what do you mean by platform specific
object model?  How is AXIOM platform specific?  I'm thinking that its
all Java so . . . and I don't recall choosing a particular platform
flavor of the AXIS2 distribution?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



user guide sample / xmlbeans not in classpath

2007-01-09 Thread ChadDavis

Hello.  I'm trying to build and run the web service discussed in the
user guide; the one that is generated off of  Axis2SampleDocLit.wsdl.
I believe I have succesfully built and deployed the service itself.
However, I've been unable to run my client.  I get a classdefnotfound
on a class in the schemaorg__apache_xmlbeans.  This directory is on
the classpath though.  In the package / directory structure under that
directory I don't find java classes though; its the .xsb files.  Am I
missing some phase where you generate class files from these xsb's

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [AXIS2] jar resource required by examples

2007-01-09 Thread ChadDavis

Thanks.  Indeed, wstx-asl-3.0.1.jar is in the distribution and works.
My mistake was that I began looking through the jars for the com.bea.
. . . class that was referenced by the classnotfounderror, and that
class doesn't exist in any of the jars.  I didn't realize some other
class would suffice in lieu of the one named.  Kind of misleading
error message.

Thank you for your help.

On 1/9/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:

Chad,
Axis2 uses the woodstox stax implementation, which i have mentioned my
previous mail..
Everything works fine with them. Please try having only the jars which
came with Axis2 on the class path..

What's your JDK version?

Thanks,
Thilina

On 1/9/07, ChadDavis [EMAIL PROTECTED] wrote:
 Thilina,

 Thanks for the help.  I am, however, using AXIS2-1.1 and I still got
 the class not found as described above.  Actually, that was the intent
 of my post -- to determine whether a jar was missing from the
 distribution, or I had done something not quite right.  Do you think
 the jar was actually missing?

 Chad



 On 1/6/07, Thilina Gunarathne [EMAIL PROTECTED] wrote:
  Hi Chad,
  Try putting [1]  [2] in to the classpath (make sure to remove the
  existing stax-api  dev prior to that)...They are the stax jars used
  by Axis2 1.1...
 
  Which version of Axis2 are you using.. I would recommend you to start
  with the 1.1 release. Download the binary distribution. It contains
  almost all the jars required for you (Except for jars required for
  advanced usages like Spring jars).
 
  ~Thilina
  [1]http://dist.codehaus.org/stax/jars/stax-api-1.0.1.jar
  [2]http://woodstox.codehaus.org/3.1.1/wstx-asl-3.1.1.jar
 
  On 1/7/07, ChadDavis [EMAIL PROTECTED] wrote:
   Hi.  I'm working through the examples in the AXIS2 introduction.  I've
   written a class to invoke the echo string service.  It complained
   about a class not being in the classpath,
   com.bea.xml.stream.MXSomeKindofFactory.  I managed to find a jar (
   stax-1.1.1-dev.jar ) with this on the STAX site and put it in the path
   and proceeded on to other problems.
  
   However, I'm curious as to why a required resources was missing from
   the AXIS distribution.  I'm sure there's a reason, so . . . what am I
   missing ?
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 
 
  --
  Thilina Gunarathne
  WSO2, Inc.; http://www.wso2.com/
  Home page: http://webservices.apache.org/~thilina/
  Blog: http://thilinag.blogspot.com/
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: user guide sample / xmlbeans not in classpath

2007-01-09 Thread ChadDavis

Thanks Javier.

Could you clarify :


There is a class TypeSystemHolder generated for each children of
directory schemaorg_apache_xmlbeans/system. XMLBeans directly generates
the bytecode, so no wonder you don't see a .java file. This has caused
some confusion to Eclipse users (and users of other IDEs).


Do you mean that the .class files are generated at run time?  Or are
they supposed to be created when I use the wsdl2java tool?  That was
the only step indicated in the userguide.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[AXIS2] user guide sample / null pointer exception

2007-01-09 Thread ChadDavis

As per the user guide, I'm trying to run the client and web service
built from Axis2SampleDocLit.wsdl

When I run the client I get a null pointer exception as follows:

Exception in thread main java.lang.NullPointerException
at 
org.apache.axis2.description.ClientUtils.inferInTransport(ClientUtils.java:85)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:253)
at 
org.apache.axis2.userguide.Axis2SampleDocLitServiceStub.echoString(Axis2SampleDocLitServiceStub.java:494)
at chad.test.ClientTester.main(ClientTester.java:20)

I'd appreciate any insight that you might have.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: consequences of choosing axis

2007-01-09 Thread ChadDavis

Anne,

Thanks.  The comparison to other frameworks makes this perfectly
clear, almost to the duh point.  By proprietary you don't mean non
open source do you?  Just non-standard?

Chad



The fact that Axis2 supports a variety of databinding frameworks does
not change the fact that it does not support JAX-RPC or JAX-WS. If
standard Java API support is important to you, then this is an
important issue. If you have no objection to using a propriatary
programming model, then it is not an important issue. But it is still
an issue that has consequences.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



consequences of choosing axis

2007-01-06 Thread ChadDavis

Hi.  I'm jut getting started learning about web services, and I've
decided to use axis2.  I'm trying to figure out whether this choice
incurs any consequences.  I could have chosen from several other
platforms that support web service development, obviously.  From what
I can tell so far, it shouldnt matter, but I'm not that knowledgable
yet, so I'm asking for other people's advice.  My thinking goes
something like this:  if a web service publishses a WSDL, then the
client could be built on any web service technology that works with
WSDL -- correct?  The WSDL is a black box kind of thing and the
provider and the concsumer ( client ) are completely agnostic to one
another?  So, if I need to write a client to consumer a web service
that publishes a WSDL, I can use axis 100% of the time?  Is this true?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[AXIS2] jar resource required by examples

2007-01-06 Thread ChadDavis

Hi.  I'm working through the examples in the AXIS2 introduction.  I've
written a class to invoke the echo string service.  It complained
about a class not being in the classpath,
com.bea.xml.stream.MXSomeKindofFactory.  I managed to find a jar (
stax-1.1.1-dev.jar ) with this on the STAX site and put it in the path
and proceeded on to other problems.

However, I'm curious as to why a required resources was missing from
the AXIS distribution.  I'm sure there's a reason, so . . . what am I
missing ?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



installing AXIS

2007-01-04 Thread ChadDavis

I'm trying to install Axis so that I can start working through the
user guides, et. al.  I've got the axis webapp running no problem.
The happiness page doesn't complaing about any missing jars, etc.

When I try to test the Call function, I get a SOAP repsonse but it
has an error in it, as follows:

soapenv:Envelope
soapenv:Body
soapenv:Fault
faultcodesoapenv:Server.userException/faultcode
faultstring
java.io.FileNotFoundException:
/var/lib/tomcat5/webapps/axis/WEB-INF/jwsClasses/EchoHeaders.java (No
such file or directory)
/faultstring
detail
ns1:hostnamemachineOne/ns1:hostname
/detail
/soapenv:Fault
/soapenv:Body
/soapenv:Envelope

In the log, this translates to:

ava.io.FileNotFoundException:
/var/lib/tomcat5/webapps/axis/WEB-INF/jwsClasses/EchoHeaders.java (No
such file or directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.init(FileOutputStream.java:179)
at java.io.FileOutputStream.init(FileOutputStream.java:70)
at java.io.FileWriter.init(FileWriter.java:46)
at org.apache.axis.handlers.JWSHandler.setupService(JWSHandler.java:180)
at org.apache.axis.handlers.JWSHandler.invoke(JWSHandler.java:72)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:249)



Also, when I consult the log, I see that there is  a problem finding a
configuration file at the time of the server's start up.
Specifically,

- Unable to find config file.  Creating new servlet engine config
file: /WEB-INF/server-config.wsdd

When I look for this configuration file in the webapp structure, it's
not there.

If anyone can see what I'm missing, please let me know.

Chad

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



axis versus axis2

2007-01-04 Thread ChadDavis

If I'm starting my web services project from scratch, with no concern
for legacy stuff, is there any reason NOT to use axis2 instead of
axis?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]