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 What does Bind to soap means Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "What does Bind to soap means" Watch "What does Bind to soap means" New topic
Author

What does Bind to soap means

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 234
Please can any one explain clearly what does the word BINDING in webservices
world refer too. I see this used in so many places like binding WSDL to SOAP...

Thanks


SCJP, SCWCD, SCBCD, SCEA 5
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32767
This should help.


Android appsImageJ pluginsJava web charts
Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 234
Thanks Ulf
For the reply, from that I understand PortType is like an interface and binding basically associates a portType with message format and protocal.

Now the binding element mentioned associated soap over http protocal and message format as document to port type glossary terms.

<binding type="glossaryTerms" name="b1">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />

Question:

Can you give me another example of binding which is not soap over http protocal and different message format Please??. As i find the same binding
in different places and I understand that WSDL binding would let not only soap binding but something else as well??
Thanks for your help in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 32767
WSDL can in theory handle protocols other than SOAP and HTTP; however if you look at the abstract of the WSDL Spec, it says that nothing such is defined at present. Those other message formats might be Email or messaging.

The available styles are rpc/literal, rpc/encoded, document/literal and document/encoded, all of which are explained here.
Deepak Kaul
Greenhorn

Joined: Nov 08, 2005
Posts: 13
<binding type="glossaryTerms" name="b1">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />


There are other than soap, for example there could be EJB binding or Java binding , where the actual implementation is done in a EJB or a plain Java class respectively.

Mohamed Farouk
Ranch Hand

Joined: Jun 08, 2005
Posts: 234
So it is good to have WSIF Clients as it would the provide the clients with a shield from servers stopping to offer any protocals or messages formats.
Say initially have EJB and then later stop EJB and offer only SOAP bindings.
Am i right in thinking?

As with wsif the client interacts with the service in a protocal and message format independent way?
Deepak Kaul
Greenhorn

Joined: Nov 08, 2005
Posts: 13
You are right, using WSIF the client doesn't have to worry about how the service is actually implemented, as long as rest of the WSDL remains the same, the bindings can change without any effect on the clinet
 
 
subject: What does Bind to soap means
 
Threads others viewed
Binding Doubts
rpc and document
SOAP header blocks: Are they specific to the binding?
WSDL Doubts
MIME and HTTP GET/POST bindings are not permitted by the Profile.
developer file tools