[JDEV] need help
dwaite at jabber.com
Mon Oct 2 15:39:24 CDT 2000
Interesting - if you are opening a connection to jabber.com and then
sending with the to attribute as jabber.com, you shouldn't get this.
Indeed, cutting and pasting the XML you send below, I connected
The 'to' attribute in the initial element specifies what server you are
connecting to. It is equivalent to a VirtualHost in HTTP-land. If you
are opening a socket to your own server or to some other server besides
jabber.com and sending that XML, it will respond with the error that the
server 'isn't' jabber.com.
Vinit Mokal wrote:
> hi ,
> Greetings of the day!!!
> we are working on the making a jabber client using java.
> We use socket to open connection on specific port. using syntax
> as follows
> Sockect s1 = new Socket("jabber.com",5222);
> further down i Send the opening string
> <?xml version="1.0" encoding="UTF-8" ?>
> <stream:stream to="jabber.com" xmlns="jabber:client"
> it sends me the following XML srting back
> Text received :<?xml version='1.0'?><stream:stream
> abber.org/streams' id='39D8D7E0'><stream:error>This server is not the one in
> r to attribute.</stream:error></stream:stream>
> where do u think i am going wrong
> is there a another server name i should be using it
> I would really appreciate if u could help me on this one.
> jdev mailing list
> jdev at jabber.org
More information about the JDev