File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes is it fine to access webservices without WSDL by creating a client and palyload-envelope xmls Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "is it fine to access webservices without WSDL by creating a client and palyload-envelope xmls" Watch "is it fine to access webservices without WSDL by creating a client and palyload-envelope xmls" New topic
Author

is it fine to access webservices without WSDL by creating a client and palyload-envelope xmls

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
Webservices can be accessed without WSDL by creating a client and palyload-envelope xmls. How is this approach as compared to WDSL approach. Is WSDL approach better.?

thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
I guarantee that creating a SOAP request by plugging values into a text XML template will be much faster than any client software created by interpreting a WSDL.

This is only true if:
1. the service is relatively simple and does not use any WS-* security bits
2. you have a clean example of a request.

Bill
Kumar Raja
Ranch Hand

Joined: Mar 18, 2010
Posts: 518
    
    2

In addition to what William mentioned, as far as I know, you really don't need to have a wsdl at all. If you have xsd that defines the document structure. Still you can create webservices and clients. Spring does it. Ofcourse, you can still see WSDL if you wish to , if you append ?wsdl to the service url.

There is another thread , which talks about same topic.

However, I do have a question to William. Do we need to have WSDL, if we are required to use other WS standards like security, reliable messaging etc.

If we can create a valid SOAP request other mean like using JDOM etc with all the elements, can we not post the SOAP message to the service and still get it to work.


Regards
KumarRaja

Monica. Shiralkar
Ranch Hand

Joined: Jul 07, 2012
Posts: 594
thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: is it fine to access webservices without WSDL by creating a client and palyload-envelope xmls
 
Similar Threads
Creating a webservice using XML over HTTP.
consuming web service without WSDL.
How to connect to multiple web services using JAVA?
What approach should be taken
web-services-java