On Wed, Apr 11, 2012 at 9:24 PM, Emmanuel GUITON <
emmanuel.gui...@intrinsec.com> wrote:

>   Hello,****
>
> ** **
>
> I am struggling with trying to make a JAX-WS top-down generated
> web-service works in Axis2 (1.6.1).****
>
> Java files are generated from a WSDL using wsimport. I then package the
> result in an AAR archive that I deploy in Axis2. I use
> org.apache.axis2.rpc.receivers.RPCMessageReceiver as a message receiver.**
> **
>
> My web-services are correctly listed and when I send a SOAP message, the
> correct Java method are called.
>

It seems you have mixed JAX-WS deployment with POJO deployment. For JAX-WS
once you have completed code you can package them as .Jar and need to
deploy on 'servicejars' directory instead of 'services' directory. Also
there is no meta data file requited, please refer following guide for more
details [1].

[1] - http://axis.apache.org/axis2/java/core/docs/jaxws-guide.html

Thanks !

> ****
>
> ** **
>
> However, I face blocking issues :****
>
> **-          **A java.lang.NullPointerException in
> RPCMessageReceiver.invokeBusinessLogic(MessageContext inMessage,
> MessageContext outMessage) when throwing my custom exception (which should
> generate a SOAP fault response)****
>
> **-          **while deserializing a client message, Axis2 throws a
> java.lang.InstantiationException because it is trying to instantiates a
> java.lang.Enum using instance = clazz.newInstance(); (you obviously do not
> want to do that on an enum)****
>
> ** **
>
> I am surprised to find that kind of errors with no clue about how to get
> rid of them. I suspect I am missing something in the web-service
> configuration.****
>
> What should I do to make JAX-WS generated files work fine in an AAR ?****
>
> ** **
>
> Thanks,****
>
> **-          **emmanuel****
>
> ** **
>
> ** **
>
>
> *Emmanuel** **GUITON*
>
> *Ingénieur développement *
> Fixe : +33 1  70 92 84 16 l Standard : +33 1 41 91 77 77
>
> 215, Avenue Georges Clemenceau l 92024 Nanterre
>
> <http://www.intrinsec.com/>
>   <http://www.intrinsec.com/>
>  *Cliquez ici pour obtenir la dernière étude Markess sur le 
> Cloud*<http://www.markess.fr/demandedocument.php?refdoc=798>
>



-- 
Sagara Gunathunga

Blog      - http://ssagara.blogspot.com
Web      - http://people.apache.org/~sagara/
LinkedIn - http://www.linkedin.com/in/ssagara

<<image9da6b1.gif@29aa24b7.004f4c71>>

<<imageb48068.jpg@8ee67ca9.15634e31>>

Reply via email to