Now that I can get My hand written WSDL, I post this
reply as what to do, for all those having the same
problems.
1. Get the latest axis2 1.1 build (this works for the
1-Nov-2006 nightly snapshot)
2. Structure of aar is to be as follows
* MyService.aar
/META-INF
Services.xml
service.wsdl
/MyService.class
2. Naming
* The axis2 java code that looks for a deployed
WSDL first looks for a wsdl named service.wsdl
if it cannot find it it then looks for a wsdl
named MyService.wsdl if that is not found a
wsdl will be generated.
3. Ensure that Your names matchup in the WSDL and
services.xml
* In the wsdl The service name
<wsdl:service name="MyService"> 'MUST' be
* The same as the name in the services.xml
<serviceGroup>
<service name="MyService">
....
</service>
</serviceGroup>
4. Ensure that the
<parameter name="useOriginalwsdl">true</parameter>
is set in the services.xml
<serviceGroup>
<service name="MyService">
<parameter name="useOriginalwsdl">true</parameter>
....
</service>
</serviceGroup>
4. To test Deploy the axis2.war to your favorite Java
server
Then in the <webappsroot>\axis2\WEB-INF\services
copy your aar and it will be auto deployed
I found copying the log4J.jar to
<webappsroot>\axis2\WEB-INF\lib\
and modifying the
<webappsroot>\axis2\WEB-INF\classes\log4j.properties
To set the logging levels to DEBUG usefull to work
out what what is going on, I did this by modifying
the properties to log all axis packages not just
enterprise.
#log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.org.apache.axis2=DEBUG
If any thing is incorrect here please free to burn me
or add some more constructive comments.
Matt
--- Matthew Hannay <[EMAIL PROTECTED]> wrote:
> OK I have the nightly snap shot jars in place.
>
> I have tried a number of things.
>
> renamed my wsdl to service.wsdl
> (this lives in the META-INF in the aar)
>
> Made sure the names matchup
> service.wsdl:
> ....<wsdl:service name="AddressBook_v1_0_0">.....
>
> services.xml:
> <service name="AddressBook_v1_0_0"
> useOriginalwsdl="true">
>
> is the useOriginalwsdl="true" really required?
>
> Followed what
> http://issues.apache.org/jira/browse/AXIS2-350
> Says?
>
> and It still deploys the generated WSDL!!
>
> Does anyone have any clues?
>
> Matt
>
>
>
> --- Nirmit Desai <[EMAIL PROTECTED]> wrote:
>
> > Matt,
> >
> > I have seen this and solved in past. First thing
> you
> > need is the latest
> > nightly as this cannot be solved in 1.0
> >
> > Then, in your services.xml, add "useOriginalwsdl"
> > parameter and set it to
> > true. Create the aar just like you do, and you
> shud
> > get your own wsdl back.
> >
> > -Nirmit
> >
> >
> >
> >
>
> >
> > "Davanum
>
> >
> > Srinivas"
>
> >
> > <[EMAIL PROTECTED]
>
> > To
> > m>
> > [email protected]
> >
>
> > cc
> > 10/26/2006 09:45
>
> >
> > AM
>
> > Subject
> > Re:
> Deploying
> > Handwritten WSDL in
> > aar with
> > Axis2
> > Please respond to
>
> >
> > [EMAIL PROTECTED]
>
> >
> > he.org
>
> >
> >
>
> >
> >
>
> >
> >
>
> >
> >
> >
> >
> >
> > Matt,
> >
> > JIRA please, with your AAR/WSDL/Services.XML
> >
> > thanks,
> > dims
> >
> > On 10/26/06, Paul Fremantle <[EMAIL PROTECTED]>
> > wrote:
> > > Matt
> > >
> > > I'm pretty surprised its not picking up the WSDL
> > with that name. It
> > > might be worth running (separately) WSDL2Java
> -ss
> > -sd on your WSDL.
> > > This generates a services.xml, and if you run
> ant
> > generates an aar for
> > > you. You can then compare your aar and
> > services.xml with the generated
> > > one and see if there are any differences.
> > >
> > > Paul
> > >
> > > On 10/26/06, Matthew Hannay
> > <[EMAIL PROTECTED]> wrote:
> > > > Deploying Handwritten WSDL in aar with Axis2
> > > >
> > > > I am trying to deploy a web service in
> axis2-1.0
> > > >
> > > > I generate the server code using the eclipse
> > plugin.
> > > >
> > > > I then create a aar, The structure is as
> > follows.
> > > >
> > > > AddressBook-v1-0-0.aar
> > > > META-INF/AddressBook-v1-0-0.wsdl
> > > > META-INF/services.xml
> > > > au/...../some.class
> > > >
> > > > In the Services xml the
> > > > <serviceGroup>
> > > > <service name="AddressBook-v1-0-0">
> > > > and
> > > > In the WSDL the name="AddressBook-v1-0-0"
> > > > All the names match up.
> > > >
> > > > When I deploy my application and put the
> > following in
> > > > the browser
> > > >
> >
>
http://localhost:8080/Services/AddressBook-v1-0-0?wsdl
> > > > I recieve a generated WSDL.
> > > >
> > > > After googling I found some destructions at
> > > >
> >
>
http://www.developer.com/open/print.php/10930_3557741_2
> > > > and followed them however renaming the wsdl to
> > > > service.wsdl
> > > > made no differance?
> > > >
> > > > Does any one know what I need to get the
> correct
> > wsdl
> > > > deployed
> > > >
> > > > Matt
> > > >
> > > >
> > > >
> > > >
> >
> ____________________________________________________
> > > > On Yahoo!7
> > > > Fuel Price Watch: Find the cheapest petrol in
> > your area
> > > > http://au.maps.yahoo.com/fuelwatch/
> > > >
> > > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > > --
> > > Paul Fremantle
> > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >
> > > http://bloglines.com/blog/paulfremantle
> > > [EMAIL PROTECTED]
> > >
> > > "Oxygenating the Web Service Platform",
> > www.wso2.com
>
=== message truncated ===
Send instant messages to your online friends http://au.messenger.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]