Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Monica Shiralkar
Ranch Hand
Posts: 842
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic