axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kamran Shah" <>
Subject RE: Newbie needs help/resources crafting AXIS2 services.xml
Date Fri, 11 Dec 2009 12:25:12 GMT
It seems to me that the original poster is using JAX-WS.  As I understand
it, wsimport, rather than wsdl2java is what he should be using?  Maybe I am
wrong.  Also, if he is using jax-ws annotations, while I understand he can
still use a services.xml, just to have axis2 use his wsdl, he just needs to
set his @WebService annotation's wsdlLocation parameter.  Please correct me
if I am wrong, I might not know what I am talking about, but this might
clear up my understanding as well.




From: Amila Suriarachchi [] 
Sent: Friday, December 11, 2009 3:10 AM
Subject: Re: Newbie needs help/resources crafting AXIS2 services.xml



On Mon, Dec 7, 2009 at 9:44 PM, <> wrote:

Good morning,

It appears my lack of being immersed in AXIS2 means nothing works quite
how I expect it to.  From a recent email on a different topic it sounds
like I need to set useOriginalwsdl in a services.xml file in my META-INF
directory for AXIS2 (1.3) to actually use the WSDL I was given.

Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
isn't where AXIS2 expects it to be?

Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
deploying a WAR (what's an AAR?) which seems to be working but may be
confusing matters, what with combining JAX-WS and AXIS2.

The couple of brief examples of services.xml files I've found look to
recreate the basic definitions in the WSDL file, so I'm here in part to
ask for any good references to hand-crafting services.xml files -
primarily about what I need to include so the whole thing still works.
Or... with my setup will it even try to read the services.xml file since
the basic web services have worked so far (just not successfully with
complex types)?

So is the XML at the end of this a complete services.xml file where the
WSDL has a line:
   <wsdl:operation name="Foo">
and that service has types defined for the input and output?  Or do I need
to bring more of the WSDL into it?

generate the code to your wsdl with the wsdl2java tool. with -ss -sd
you will see a sample services.xml file under resource folder.




--- services.xml? ---
 <service name="Foo"> </service>
 <service name="Foo" scope="application">
   <parameter name="useOriginalwsdl">true</parameter>

Amila Suriarachchi
WSO2 Inc.

No virus found in this incoming message.
Checked by AVG -
Version: 8.5.426 / Virus Database: 270.14.102/2556 - Release Date: 12/10/09

View raw message