Re: Inheritance in WSDL

2008-09-30 Thread Sagi Mann
Hi, I know this is an old post, but did you find a solution? thanks -- View this message in context: http://www.nabble.com/Inheritance-in-WSDL-tp11831490p19747831.html Sent from the Axis - User mailing list archive at Nabble.com.

@XmlSeeAlso and/or parameter polymorphism

2008-09-30 Thread Sagi Mann
Hi, Is there an axis2-equivalent for the JAXWS 2.1 @XmlSeeAlso annotation? I'm trying to pass a polymorphic parameter to an axis2 web service, but unfortunately I'm unable to find a way to get the web service to "publish" the subclasses in its WSDL. Example: Assuming I have an AbstractBean, and a

Re: AxisFault when using jibx

2008-09-30 Thread Sagi Mann
No problem. BTW, in the meantime, I switched to using jaxbri binding instead of jibx. The full web service code before all the additions of targetNamespace annotation attributes is: @WebService( @XmlSeeAlso(SubBean.class) public class Hello { @WebMethod public String testOneArg(@Web

Starting with JAXBI binding

2008-09-30 Thread Sagi Mann
Hi all, I would like to try Axis2 while using JAXBRI as a binding layer. I did not find any tutorial on the axis2 website - only for adb, xmlbeans and jibx. Can anyone tell me where to start? thanks. -- View this message in context: http://www.nabble.com/Starting-with-JAXBI-binding-tp19740938p19

Re: AxisFault when using jibx

2008-09-30 Thread Sagi Mann
I have an update: unfortunately, the solution with the targetNamespace on each param only worked for me if the param is simple, i.e. String. However, when my param was a bean, the issue continued in a different variation: the bean was non-null, but all its properties were null. Example: I have a

Re: AxisFault when using jibx

2008-09-30 Thread Sagi Mann
Yes, this is misunderstanding, I simply used the sample quick start code tree as a template. This is why you see the .adb package, but I assure you it's jibx. DSosnoski wrote: > > Hi Sagi, > > From your exception stack trace, it appears that you're still using > ADB, rather than JiBX: > An

Re: AxisFault when using jibx

2008-09-30 Thread Sagi Mann
Found a way to solve one part of the problem: explicitly set the namespace for the return value: @WebMethod @WebResult(targetNamespace="http://ws/";) public String testOneArg(@WebParam(mode=Mode.IN, name="testOneArg0") String name) { return "Hello " + name; } This add

AxisFault when using jibx

2008-09-30 Thread Sagi Mann
Hello, I've got an issue when working with a jibx axis2 client, based on the tutorial at: http://ws.apache.org/axis2/1_4_1/userguide-creatingclients-jibx.html http://ws.apache.org/axis2/1_4_1/userguide-creatingclients-jibx.html I'd appreciate if someone could tell if this is a bug or a misuse. t

Passing subclasses in method parameters

2008-09-27 Thread Sagi Mann
Hi, Is it possible to pass subclasses as parameters like in JAXWS 2.x? My issue is this: I'm unable to get an Axis2 client to pass a subclass to a JAXWS web service because although wsdl2java generates a the subclass (when using xmlbeans), I can't seem to properly create an instance in order to

Lists and arrays as web method parameters

2008-09-26 Thread Sagi Mann
Hi, I'm attempting to pass either a java ArrayList or some simple array as a web method param. I've created a test web service with the following 2 methods: public String testListStringArg(List list) { return "List " + list.toString(); } public String testStringArrayArg(Strin

Compatibility issue with JAX-WS

2008-09-25 Thread Sagi Mann
Hello, I've created a test HelloService and deployed it as an Axis2 .aar file over GlassFish2. A standalone Axis2 client works fine and is able to invoke the single test() method of the service. However, when I try to generate a client using wsimport (JAX-WS RI) instead of wsdl2java, I get the wa

Re: Accessing WSDL via https still shows http addresses

2008-09-25 Thread Sagi Mann
Update: I wrote a standalone client to test the impact of this "issue". I create the stub using an HTTPS WSDL URI, and using NetBeans 5.5.1 HTTP monitor, it seems that the POST request sent to the webservice is indeed over HTTPS, so I think that the fact that the WSDL contains HTTP URLs instead of

Accessing WSDL via https still shows http addresses

2008-09-25 Thread Sagi Mann
Hello, I'm trying to get am axis2-based web service to work via https. I deployed axis2.war on GlassFish 2, and deployed a test service called "hello". This works great via http. But when I try to set this up via https, I see something strange: if I access the service's WSDL via https, i.e. https

How to create axis2 ejb client?

2008-09-25 Thread Sagi Mann
Hello, Is it possible to call a remote web service from an EJB? I'm using GlassFish 2 as the EJB container. I was looking for examples, but was not yet able to find one. My main concern is the fact that Axis2 may create threads and/or other resources that are not allowed within EJB containers, suc

Re: SSL: ValidatorException: PKIX path building failed

2008-09-25 Thread Sagi Mann
I have an update: The sample standalone application only behaves as expected when launched from outside NetBeans 5.5.1 (using cmdline ANT). I.e. when no truststore is configured, the error occurs, and when it is set, the webservice is invoked correctly. As far as running a servlet client (not stan

Re: SSL: ValidatorException: PKIX path building failed

2008-09-20 Thread Sagi Mann
Hi, I not only verified the trust store, but also wrote a second client-server application to verify the entire environment: 1. the server side was a simple servlet, running on the same app server as my webservice 2. the client side was a standalone HttpClient-based application (same version used

Re: "Transport out has not been set" when using local WSDL file

2008-09-20 Thread Sagi Mann
Yes, I saw these threads too. I have 59 jars from the axis2/lib folder on my classpath. This seems to be the complete set: activation-1.1.jar annogen-0.1.0.jar axiom-api-1.2.7.jar axiom-dom-1.2.7.jar axiom-impl-1.2.7.jar axis2-adb-1.4.1.jar axis2-adb-codegen-1.4.1.jar axis2-ant-plugin-1.4.1.jar ax

SSL: ValidatorException: PKIX path building failed

2008-09-19 Thread Sagi Mann
Hi all, I am unable to get Axis2 clients to work with via HTTPS. I've read the numerous threads here about it, and I think I have set up everything correcly, but still - no luck. The client code works great over HTTP. I'm using Axis2 1.4.1, NetBeans 5.5.1, SJSAS 9.1 for hosting the web service. T

"Transport out has not been set" when using local WSDL file

2008-09-19 Thread Sagi Mann
Hi all, I'm using axis2 1.4.1 (Java), and I have encountered yet another case of Transport out has not been set error, which I was unable to resolve from looking at the other posts on the subject. The exception occurs when trying to invoke any web service method via the stub (generated using AD