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 XML on SOAP and HTTP, basic understanding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "XML on SOAP and HTTP, basic understanding" Watch "XML on SOAP and HTTP, basic understanding" New topic
Author

XML on SOAP and HTTP, basic understanding

ram kumar
Ranch Hand

Joined: May 22, 2008
Posts: 146
I am very new bie to web services, and I just have simple doubts.

1.Is SOAP Protocol designed to carry messages in the xml format ?

2.Why cant HTTP carry the XML ? SOAP is also a similar protocol to HTTP !

3.What is WSDL doing here ?

4.How are they related ?

Though the answer is, big or small i would like to learn this through people, who are well versed in it?

Please dont provide me links !

I have read enough !

I just need to get cross verified about these concepts.

Would some one just help me in this aspect !


Discussion - the powerfull way to excellence!
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
ram kumar wrote:1.Is SOAP Protocol designed to carry messages in the xml format ?

Yes, SOAP messages are in the XML format and the contents of a SOAP message is also in XML.

2.Why cant HTTP carry the XML ? SOAP is also a similar protocol to HTTP !

You can do XML over HTTP without using SOAP - for instance RESTful web services often uses this combination.

3.What is WSDL doing here ?

Specifying the operations that are made available by a service, how to communicate with the service and the datastructures used to pass data to and from the web service.

4.How are they related ?

How are which things related?
Best wishes!

My free books and tutorials: http://www.slideshare.net/krizsan
ram kumar
Ranch Hand

Joined: May 22, 2008
Posts: 146
Yes, Thanks man ! Good Work.

>>5. When HTTP Can carry the XML Messages ! Why SOAP is used to carry the XML Messages ? SOAP can be discarded !

>> Can you write me a simple wsdl that has a operation called Print(String value) that passes string as a parameter and returns a String response ...
"Welcome ! Greetings ". that would help me understand the framework.

>> I am using RAD and WebSphere6.1 integarated with Rapid Application Development IDE ...

Right now >>

I am having a WSDL file, and a java code(Webservice) is generated from the WSDL file, I use SOAP UI tool to test the webservice.,,

Unfortunately,

But i dont understand anything, since the wsdl file is too long to read and am new to webservices.

At the end, I need to understand

1.how is this wsdl written, how is the server code generated.
2.How is the client making a call to this framework.
3. The whole framework

I would need this to really put myself up in web services

I need to get a sample tutorial, a very simple tutorial ... that would work in RAD and websphere6.1 to create a web service.

""How are which things related? ""

the relation of XML / SOAP / HTTP / WSDL


Hope,
You will render a good helping hand, thanks Ivan Krizsan
Ivan Krizsan
Bartender

Joined: Oct 04, 2006
Posts: 2193
Hi!
ram kumar wrote:the relation of XML / SOAP / HTTP / WSDL

A brief presentation of my friends XML, SOAP, WSDL and HTTP:
  • XML is the language with which SOAP and WSDL are defined.
  • SOAP is an envelope in which you can put messages and additional information (headers) to send.
  • WSDL describes which operations a service makes available, how to communicate with the service and what data formats to use when communicating with the service.
  • Finally, HTTP is a transport protocol that can be used to send SOAP messages over.

  • Best wishes!
     
    I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
     
    subject: XML on SOAP and HTTP, basic understanding
     
    Similar Threads
    Sending requests in xml
    About SOAP
    SOAP must I use only for web service?
    Regarding javax.xml.ws.Provider interface
    soap question