File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes WSDL question.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "WSDL question.." Watch "WSDL question.." New topic

WSDL question..

Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 370

I have used JAX-WS to generate the required classes for my WebService and deployed this onto Weblogic 10.3. I have a question about the resulting WSDL which includes NO information about the types that the methods take or return, this info seems to be in a seperate schema file referenced from the WSDL in the schemaLocation tag:

Is this normal? When I used javaToWSDL in a previous project I'm pretty sure all the type info was contained in the WSDL....

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
Yes, this is normal and it can actually be an advantage, in order to prevent the WSDL from becoming too big.
Often, when looking at a WSDL, it is not necessary to know exactly what the request messages, response messages and fault messages contain. If you, at some occasion, need to know in detail, then just refer to the XML schema file.
Best wishes!
Will Myers
Ranch Hand

Joined: Aug 05, 2009
Posts: 370

great, thanks Ivan.

I was getting worried because my colleague was trying to create a client using Excel but it was failing to find the type information, I guess it's his problem not mine now
I agree. Here's the link:
subject: WSDL question..
It's not a secret anymore!