I need to do xml based client server interaction.
As per my knowledge, steps in client server communication through xml may include:
1. client prepares the xml
2. transmittal of the xml
3. server processes the xml
client can send request to the server through xml document. The XML parser at the server will parse the xml file and pass the information to the server.
If so, What will be the output of xml parser to the server?
How to use the xml parser at the server for this purpose?
What will be the response format from server to client( whether can it send response in xml format) to client?
If i am wrong what is the best way to do client server communication through use of xml?
Thank you,
XML is just a container format to pass the data in to the server.
So for instance if you want to pass the username and password of a user to the server you’d sent something like this:
The server would receive this and parse it. It would, (perhaps) create a credentials object out of it like this:
fill out the values it got from parsing the XML and send it to the business layer.
The businesslayer checks with the database (or any other datastore) to check if the credentials are correct.
It will then inform if it was ok.
The server will then send back (probably in XML as well) the result of the logon:
And the client will parse the XML and present the user with the result.
Does this explain your question?