For Programmers: Free Programming Magazines  


Home > Archive > Java Security > October 2004 > Client-Server communication based on XML protocol









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Client-Server communication based on XML protocol
Raj

2004-10-19, 3:59 pm

Hi,

I am trying to write a client handler for communication between a
client and a server based on a predifined XML protocol. The protocol
is already defined , all I am looking for is a way for me to send and
recieve messages which would be XML based. Can someone help me with
this .

Thanks
Edward A. Feustel

2004-10-21, 8:57 am


"Raj" <raj20013@yahoo.co.in> wrote in message
news:83ff0912.0410191141.78ba0944@posting.google.com...
> Hi,
>
> I am trying to write a client handler for communication between a
> client and a server based on a predifined XML protocol. The protocol
> is already defined , all I am looking for is a way for me to send and
> recieve messages which would be XML based. Can someone help me with
> this .
>
> Thanks
>

How about SOAP?
Ed


MishGun

2004-10-28, 8:58 am

Raj wrote:

> Hi,
>
> I am trying to write a client handler for communication between a
> client and a server based on a predifined XML protocol. The protocol
> is already defined , all I am looking for is a way for me to send and
> recieve messages which would be XML based. Can someone help me with
> this .
>
> Thanks


Hello,
You can use Sockets:

1. Create ServerSocket
2. After client is connected, you read client data in XML
For example you can create DOM, or retreiving data using XPath
3. Create answer as DOM
4. Using Transform to send your answer to client

P.S. In my application I'm using such method, it works...

Regard, Michael

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com