[JDEV] need help
David Waite
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
successfully.
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.
-David Waite
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
> as
>
> <?xml version="1.0" encoding="UTF-8" ?>
> <stream:stream to="jabber.com" xmlns="jabber:client"
> xmlns:stream="http://etherx.jabber.org/streams/">
>
> it sends me the following XML srting back
> Text received :<?xml version='1.0'?><stream:stream
> xmlns:stream='http://etherx.j
> abber.org/streams' id='39D8D7E0'><stream:error>This server is not the one in
> you
> 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.
>
> --vinit
>
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list