AdminClient just takes your existing WSDL file and deploys it to the web
server under Axis. You must run Java2WSDL separately to create the WSDL file
in the first place. Are you working in a team where someone else has created
the WSDL file? Here are the basic steps I am following:

1) Create public interface, i.e. MyService.java (and class file version of
it).
2) Compile above with -g
3) Run Java2WSDL to create the WSDL file.
4) Run WSDL2Java to create my web service code from the WSDL file created
above.
5) Edit MyServiceSoapBindingImpl.java to tie its code to my existing code
that I want to expose as a web service.
6) Compile all of my files above.
7) Jar them up.
8) Move jar to axis lib directory.
9) Run AdminClient to deploy it (uses deploy.wsdd created by WSDL2Java).
10) Test it with a client, etc.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 9:28 AM
To: [EMAIL PROTECTED]
Subject: RE: how to modify--> wsdl:part name="in0" type="xsd:string" 


Couple of more things about my environment....

1. I am using class, not an interface.
2. I am not using Java2WSDL, but using AdminClient to deploy the service. (I
assume AdminClient internally is using Java2WSDL?!?! )

So, I tried following command to deploy the webserivce but the WSDL output
was the same as before...

java org.apache.axis.client.AdminClient deploy.wsdd -l
http://x.y.z:8080/myWebApplication/servlet/AxisServlet -ddd

any clues or suggestions??

Thanks a lot for quick responses.




Bill Werth <[EMAIL PROTECTED]> wrote:

>According to the user guide:
>"Write and compile a Java interface (or class) that describes the web
>service interface. Note: If you compile your class with debug information,
>Java2WSDL will use the debug information to obtain the method parameter
>names. Use the Java2WSDL tool to create a WSDL file from the interface
>above."
>
>So you want to compile your java file with the -g option so Java2WSDL can
>extract the parameter names.
>
>Although, even though the above says you can use an interface, you must use
>a class for it to correctly extract the parameter names. You could also use
>the -i option with Java2WSDL, but haven't tried that myself as it doesn't
>help much in my case (see below).
>
>My additional question is: Is this a bug in Java2WSDL or an error in the
>user guide? I hope this is a bug that will be fixed.
>
>I am creating a web service out of existing older code that can't be
>modified. In the process I am writing a new interface class for the web
>service that has different method names and parameters than the original
>code. I'd like to be able to use Java2WSDL against the interface, but
>instead I'm having to make it into a class with empty method bodies to work
>around this issue.
>
>-----Original Message-----
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>Sent: Thursday, July 08, 2004 7:48 AM
>To: [EMAIL PROTECTED]
>Subject: how to modify--> wsdl:part name="in0" type="xsd:string" 
>
>
>Hi,
>
>I am a newbie for axis, and I tried to search for this question on the
>maillist but could not find it.
>
>By default the axis adminclient deployment tool creates wsdl with
><wsdl:message name="getSomethingRequest">
> <wsdl:part name="in0" type="xsd:string" />
> <wsdl:part name="in1" type="impl:ArrayOf_xsd_string" />
> <wsdl:part name="in2" type="impl:ArrayOf_xsd_string" />
></wsdl:message>
>
>How can I modify deployment wsdd that it can generate
>
><wsdl:message name="getSomethingRequest">
> <wsdl:part name="userName" type="xsd:string" />
> <wsdl:part name="contactNames" type="impl:ArrayOf_xsd_string" />
> <wsdl:part name="contactNumbers" type="impl:ArrayOf_xsd_string" />
></wsdl:message>
>
>
>Thanks a lot in advance.
>
>Regards,
>Riken
>
>
>__________________________________________________________________
>Switch to the New Netscape Internet Service.
>As low as $9.95 a month -- Sign up today at
http://isp.netscape.com/register
>
>Netscape. Just the Net You Need. 
>
>New! Netscape Toolbar for Internet Explorer
>Search from anywhere on the Web and block those annoying pop-ups.
>Download now at http://channels.netscape.com/ns/search/install.jsp
>

__________________________________________________________________
Switch to the New Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need. 

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

Reply via email to