You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Matthew Hannay <ma...@yahoo.com.au> on 2006/11/02 00:06:16 UTC

Re: Deploying Handwritten WSDL in aar with Axis2

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 <ma...@yahoo.com.au> 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 <ni...@us.ibm.com> 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"                            
>  
> >                       
> >              <davanum@gmail.co                    
>  
> >                    To 
> >              m>                       
> > axis-user@ws.apache.org             
> >                                                   
>  
> >                    cc 
> >              10/26/2006 09:45                     
>  
> >                       
> >              AM                                   
>  
> >               Subject 
> >                                        Re:
> Deploying
> > Handwritten WSDL in   
> >                                        aar with
> > Axis2                      
> >              Please respond to                    
>  
> >                       
> >              axis-user@ws.apac                    
>  
> >                       
> >                   he.org                          
>  
> >                       
> >                                                   
>  
> >                       
> >                                                   
>  
> >                       
> >                                                   
>  
> >                       
> > 
> > 
> > 
> > 
> > Matt,
> > 
> > JIRA please, with your AAR/WSDL/Services.XML
> > 
> > thanks,
> > dims
> > 
> > On 10/26/06, Paul Fremantle <pz...@gmail.com>
> > 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
> > <ma...@yahoo.com.au> 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:
> > axis-user-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail:
> > axis-user-help@ws.apache.org
> > > >
> > > >
> > >
> > >
> > > --
> > > Paul Fremantle
> > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > >
> > > http://bloglines.com/blog/paulfremantle
> > > paul@wso2.com
> > >
> > > "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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Deploying Handwritten WSDL in aar with Axis2

Posted by Matthew Hannay <ma...@yahoo.com.au>.
dims,

I was wondering what the *.list files were for.

One thing there is a typo below I have Services.xml
it should be a small 's' services.xml

Matt

--- Davanum Srinivas <da...@gmail.com> wrote:

> Perfect! One additional thing. If you want to create
> your own WAR and
> deploy in an app server that does not explode the
> directories
> (basically servlet API's getRealPath does not return
> anything) then
> add your services to the services.list in the
> WEB-INF/services
> directory (same deal with modules as well).
> 
> thanks a ton Matt,
> -- dims
> 
> On 11/1/06, Matthew Hannay
> <ma...@yahoo.com.au> wrote:
> > 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 <ma...@yahoo.com.au>
> 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 <ni...@us.ibm.com> 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"
> > >
> > > >
> > > >              <davanum@gmail.co
> > >
> > > >                    To
> > > >              m>
> > > > axis-user@ws.apache.org
> > > >
> > >
> > > >                    cc
> > > >              10/26/2006 09:45
> > >
> > > >
> > > >              AM
> > >
> > > >               Subject
> > > >                                        Re:
> > > Deploying
> > > > Handwritten WSDL in
> > > >                                        aar
> with
> > > > Axis2
> > > >              Please respond to
> > >
> > > >
> > > >              axis-user@ws.apac
> > >
> > > >
> > > >                   he.org
> > >
> > > >
> > > >
> > >
> > > >
> > > >
> > >
> > > >
> > > >
> > >
> > > >
> > > >
> 
=== message truncated ===




Send instant messages to your online friends http://au.messenger.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Deploying Handwritten WSDL in aar with Axis2

Posted by Davanum Srinivas <da...@gmail.com>.
Perfect! One additional thing. If you want to create your own WAR and
deploy in an app server that does not explode the directories
(basically servlet API's getRealPath does not return anything) then
add your services to the services.list in the WEB-INF/services
directory (same deal with modules as well).

thanks a ton Matt,
-- dims

On 11/1/06, Matthew Hannay <ma...@yahoo.com.au> wrote:
> 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 <ma...@yahoo.com.au> 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 <ni...@us.ibm.com> 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"
> >
> > >
> > >              <davanum@gmail.co
> >
> > >                    To
> > >              m>
> > > axis-user@ws.apache.org
> > >
> >
> > >                    cc
> > >              10/26/2006 09:45
> >
> > >
> > >              AM
> >
> > >               Subject
> > >                                        Re:
> > Deploying
> > > Handwritten WSDL in
> > >                                        aar with
> > > Axis2
> > >              Please respond to
> >
> > >
> > >              axis-user@ws.apac
> >
> > >
> > >                   he.org
> >
> > >
> > >
> >
> > >
> > >
> >
> > >
> > >
> >
> > >
> > >
> > >
> > >
> > >
> > > Matt,
> > >
> > > JIRA please, with your AAR/WSDL/Services.XML
> > >
> > > thanks,
> > > dims
> > >
> > > On 10/26/06, Paul Fremantle <pz...@gmail.com>
> > > 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
> > > <ma...@yahoo.com.au> 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:
> > > axis-user-unsubscribe@ws.apache.org
> > > > > For additional commands, e-mail:
> > > axis-user-help@ws.apache.org
> > > > >
> > > > >
> > > >
> > > >
> > > > --
> > > > Paul Fremantle
> > > > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> > > >
> > > > http://bloglines.com/blog/paulfremantle
> > > > paul@wso2.com
> > > >
> > > > "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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org