Wednesday, 27 October 2010
SOAP provides for a large variety of synchronous and asynchronous usage scenarios, depending on the transport protocol used. What are they?
SOAP is a protocol for exchanging XML-based messages using HTTP/HTTPS.
What are the requirements that a SOAP message must conform to?
The root class for all SOAP messages. As transmitted on the "wire", a SOAP message is an XML document or a MIME message whose first body part is an XML/SOAP document.
A SOAPMessage object consists of a SOAP part and optionally one or more attachment parts. The SOAP part for a SOAPMessage object is a SOAPPart object, which contains information used for message routing and identification, and which can contain application-specific content. All data in the SOAP Part of a message must be in XML format.
A new SOAPMessage object contains the following by default:
* A SOAPPart object
* A SOAPEnvelope object
* A SOAPBody object
* A SOAPHeader object
The SOAP part of a message can be retrieved by calling the method SOAPMessage.getSOAPPart(). The SOAPEnvelope object is retrieved from the SOAPPart object, and the SOAPEnvelope object is used to retrieve the SOAPBody and SOAPHeader objects.
SOAPPart sp = message.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
SOAPHeader sh = se.getHeader();
A SOAPMessage object consists of a SOAP part and optionally one or more attachment parts. The SOAP part for a SOAPMessage object is a SOAPPart object, which contains information used for message routing and identification, and which can contain application-specific content. All data in the SOAP Part of a message must be in XML format.
A new SOAPMessage object contains the following by default:
* A SOAPPart object
* A SOAPEnvelope object
* A SOAPBody object
* A SOAPHeader object
The SOAP part of a message can be retrieved by calling the method SOAPMessage.getSOAPPart(). The SOAPEnvelope object is retrieved from the SOAPPart object, and the SOAPEnvelope object is used to retrieve the SOAPBody and SOAPHeader objects.
SOAPPart sp = message.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
SOAPHeader sh = se.getHeader();
Why is SOAP used, after all we can use XML quite well without it?
Why SOAP?
It is important for application development to allow Internet communication between programs.
Today's applications communicate using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and security problem; firewalls and proxy servers will normally block this kind of traffic.
A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this.
SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
It is important for application development to allow Internet communication between programs.
Today's applications communicate using Remote Procedure Calls (RPC) between objects like DCOM and CORBA, but HTTP was not designed for this. RPC represents a compatibility and security problem; firewalls and proxy servers will normally block this kind of traffic.
A better way to communicate between applications is over HTTP, because HTTP is supported by all Internet browsers and servers. SOAP was created to accomplish this.
SOAP provides a way to communicate between applications running on different operating systems, with different technologies and programming languages.
Thursday, 21 October 2010
Tutorial on XML
XML Syntax
An XML document must have a single root element that encloses all other elements. This means that the fragment below can't be a well-formed XML document as it stands:
Neddie Seagoon
12 High Road
Sometown
AB12 3CD
Jim Moriarty
45 Low Road
Someplace
EF56 7GH
Q. How could you correct the fragment above so that it becomes a well-formed XML document?
An XML document must have a single root element that encloses all other elements. This means that the fragment below can't be a well-formed XML document as it stands:
Q. How could you correct the fragment above so that it becomes a well-formed XML document?
Wednesday, 13 October 2010
Kingsley's Blog for Internet App. & Web Services: WHAT IS THE DIFFERENCE BETWEEN URI AND URL
Kingsley's Blog for Internet App. & Web Services: WHAT IS THE DIFFERENCE BETWEEN URI AND URL: "URI (Universal resource Identifier) as the name implies are identifiers that points out a resource, while URL is used for identifiers that p..."
WHAT IS THE DIFFERENCE BETWEEN URI AND URL
URI (Universal resource Identifier) as the name implies are identifiers that points out a resource, while URL is used for identifiers that pionts out a location.
URL therefore can be seen as a part of the URI.
URL as described above provides a location and the protocol that would be used to access the stored data.
So it would be safe to call a hyperlink as a URI no matter what it points to, what the name is, and what protocol is used to access the data.
To sum it up, URL is simply a subgroup that is contained by the URI. It was only meant to point to the location of the resource with an indication of the protocol needed.
Read more: Difference Between URI and URL | Difference Between | URI vs URL http://www.differencebetween.net/technology/difference-between-uri-and-url/
URL therefore can be seen as a part of the URI.
URL as described above provides a location and the protocol that would be used to access the stored data.
So it would be safe to call a hyperlink as a URI no matter what it points to, what the name is, and what protocol is used to access the data.
To sum it up, URL is simply a subgroup that is contained by the URI. It was only meant to point to the location of the resource with an indication of the protocol needed.
Read more: Difference Between URI and URL | Difference Between | URI vs URL http://www.differencebetween.net/technology/difference-between-uri-and-url/
Subscribe to:
Posts (Atom)