Using given WSDLs for service in Axis2

2011-10-26 Thread simonemale...@alice.it
  Hi all,
   I have a great problem deploying a JAX-WS WS on Axis2.
I'm working on WS refactor.
I generated Java classes using wsimport tool starting from a given WSDL.
I obtained PortType Interface that I realize using my own class.
Now I'm trying to deploy the system on Axis2 using the AAR system, I build the 
project using Maven plugin.
Here is my services.xml deploy file:




   

 http

   

http://www.w3.org/2004/08/wsdl/in-out"; 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver">

   
it.init.Finish



   

 http

   

http://www.w3.org/2004/08/wsdl/in-out"; 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver">

   
it.init.Check


  

 http

   

http://www.w3.org/2004/08/wsdl/in-out"; 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver">

   
it.init.Start



I annotated my classes specifying endpointInterface, portName, 
serviceName,wsdlLocation, using WSDLs indications as shown in the following 
example:

@WebService(
endpointInterface="com.CheckServicePortType",
portName="CheckServiceHttpPort",
serviceName="CheckService",
wsdlLocation="Check.wsdl")


While I deploy my artifact the system do not use given WSDLs but it generates 
them ex-novo.

I put Axis2 in debug level mode to show if something strange occurs during the 
installation. I found:

[DEBUG] AxisOperation::getSoapAction urn:Check
Could not identify the Annotation


Someone can help me understanding what's happening??
Thank you very much,
Simone



R: Re: Using given WSDLs for service in Axis2

2011-10-26 Thread simonemale...@alice.it
Hi Sagara,
   thanks for your reply.
I try to create a jar file having the following structure:

myjar.jar
com [class folder]
META-INF
Check.wsdl
Start.wsdl
Finish.wsdl

I put it into $AXIS2_HOME/WEB-INF/servicejars

Starting the server I have the following error.

[ERROR] Error:
 No @WebService annotated service implementations found in the jar


I created than again the jar having the following structure instead:
myjar.jar

com[class folder]

---+META-INF
   +Check.wsdl
   +Start.wsdl
   +Finish.wsdl

I put it into $AXIS2_HOME/WEB-INF/servicejars and I have the same error as 
before.

I put  jaxws-rt into Axis2 lib,  and checked the axis2.xml file.

Where I did a mistake?

Thank you
Simone





Messaggio originale
Da: sagara.gunathu...@gmail.com
Data: 26-ott-2011 17.36
A: , "simonemale...@alice.it"
Ogg: Re: Using given WSDLs for service in Axis2

Can you try for 2nd option listed here [1] , that mean use .jar
instead of .aar and let us know you results ?

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

Thanks !

On Wed, Oct 26, 2011 at 3:53 PM, simonemale...@alice.it
 wrote:
>   Hi all,
>I have a great problem deploying a JAX-WS WS on Axis2.
> I'm working on WS refactor.
> I generated Java classes using wsimport tool starting from a given WSDL.
> I obtained PortType Interface that I realize using my own class.
> Now I'm trying to deploy the system on Axis2 using the AAR system, I build
> the project using Maven plugin.
> Here is my services.xml deploy file:
>
> 
> 
> 
>
> 
>  http
> 
>
> 
> http://www.w3.org/2004/08/wsdl/in-out";
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver">
> 
>
> it.init.Finish
>
> 
> 
>
> 
>  http
> 
>
> 
> http://www.w3.org/2004/08/wsdl/in-out";
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver">
> 
>
> it.init.Check
> 
> 
>
> 
>  http
> 
>
> 
> http://www.w3.org/2004/08/wsdl/in-out";
> class="org.apache.axis2.rpc.receivers.RPCMessageReceiver">
> 
>
> it.init.Start
> 
> 
>
> I annotated my classes specifying endpointInterface, portName,
> serviceName,wsdlLocation, using WSDLs indications as shown in the following
> example:
>
> @WebService(
> endpointInterface="com.CheckServicePortType",
> portName="CheckServiceHttpPort",
> serviceName="CheckService",
> wsdlLocation="Check.wsdl")
>
>
> While I deploy my artifact the system do not use given WSDLs but it
> generates them ex-novo.
>
> I put Axis2 in debug level mode to show if something strange occurs during
> the installation. I found:
>
> [DEBUG] AxisOperation::getSoapAction urn:Check
> Could not identify the Annotation
>
>
> Someone can help me understanding what's happening??
> Thank you very much,
> Simone
>
>



-- 
Sagara Gunathunga

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

-
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org