Hi tom,
Thanx for ur mail. I agree with that "what you are saying". WSDL file is required when client programe need to invoke Web Services. (To get methods and theris parameters). As you wrote, http://foo.com/myservice.jws?wsdl this is the way to get WSDL file on the client side and further wsing this WSDL we can genrate STUB and SKELTEN by using WSDL2JAVA command.
But I am not understanding, is this if the above command is working fine to get WSDL , then what the need to create seprate .WSDL file using command( like http://foo.com/myservice.wsdl) and anotherthing where should i store this .wsdl file. (On server side)
Thanks
Anup Kumar
Tom Oinn <[EMAIL PROTECTED]> wrote:
Tom Oinn <[EMAIL PROTECTED]> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Anup,
If .jws is sufficient for you (you're using simple types such as
strings, ints and arrays) then fine. You don't need to do anything
further - the WSDL comes in potentially when writing clients and not, in
this case, the server.
The WSDL informs the client software (or its author) how it, he or she
should interact with the service. In the case of .jws deployment you
don't need to explicitly save or generate this, it will be available at
the ?wsdl address. For example, if your service endpoint is at
http://foo.com/myservice.jws the WSDL will be available at
http://foo.com/myservice.jws?wsdl
On the client side I suggest you take a look at
http://ws.apache.org/axis/java/user-guide.html especially the section
'Using WSDL with Axis' (it's a bit over half way down) which explains
the use of the WSDL2Java tool to build your client side stubs. A stub
class is a bit of code that abstracts away the transport (SOAP + HTTP)
from the client code, and it is this code that can be generated
automatically from the WSDL.
HTH,
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Cygwin32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAqMlFvIo3NIa9d1ARAm85AJ4jc59E2mgljD+vLr0/qXJudoc0mwCfVSIw
GnbER9fQBcZF5yDH9EfhnjA=
=fOc4
-----END PGP SIGNATURE-----
Yahoo! India Matrimony: Find your partner online.
