I believe that port 5222 is set up for client to server communication, so connecting to that port with a component namespace will be invalid. You will need to put something like:

<service id="myservicelinker">
  <host>myservice.localhost</host>
  <accept>
    <ip>127.0.0.1</ip> <!--Or whatever the IP of the component is-->
    <port>5233</port>
    <secret>mysecret</secret>
    <timeout>30</timeout>
  </accept>
</service>

In your jabber.xml file. If you want the service to be browsable you will also need to add something to the browse section of your jabber.xml file.

Hemendra Rana wrote:

I telnetted to port 5222 of the JabberD running on my machine and sent it the following data:



<stream:stream xmlns='jabber:component:accept' stream:xmlns='http://etherx.jabber.org/streams' to='localhost'>



I got the following in response from the server:



<?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' id='3F270909' xmlns='jabber:client' from='localhost'><stream:error>Invalid Namespace</stream:error></stream:stream>



Connection to host lost.



Any idea what I might be doing wrong?



Thanks!





-----Original Message-----
*From:* Hemendra Rana
*Sent:* Tuesday, July 29, 2003 4:25 PM
*To:* [EMAIL PROTECTED]
*Subject:* [JDEV] Jabber Component Development Guide



I am new to the Jabber world and would like to develop and run a Jabber Component. Is there a Component Development Guide available somewhere? Pointers will be highly appreciated. The one that I found at jabber.org is empty.



Thanks in advance!





_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to