Not logged in. · Lost password · Register
Forum: agsXMPP SDK Support RSS
Avatar
sreedevi1984 #1
Member since Oct 2006 · 38 posts
Group memberships: Members
Show profile · Link to this post
Subject: error in file transferring
I get an error message back when the following code is executed:


        private void SendSiIq()
        {
               ...
               Connection.IqGrabber.SendIq(iq, new IqCB(SiIqResult), null);
        }

        private void SiIqResult(object sender, IQ iq, object data)
        {
              //When this method is called, the iq.type is IqType.error, "NotImplemented"...Any idea what would cause this?
        }
   
        How to proceed further....?

Thanks ,
Sreedevi..
This post was edited on 2006-10-30, 09:53 by sreedevi1984.
Avatar
Jabberer #2
Member since Feb 2006 · 249 posts
Group memberships: Members
Show profile · Link to this post
Please post your Debug XML Log here. Without a log we can't find an error.
Software Developer
AG-Software
Avatar
sreedevi1984 #3
Member since Oct 2006 · 38 posts
Group memberships: Members
Show profile · Link to this post
I am sending the debug text here....


" SEND: <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>\nRECV: <stream:features xmlns:stream='http://etherx.jabber.org/streams'><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></mechanisms></stream:features>\nSEND: <auth xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\" mechanism=\"DIGEST-MD5\" />\nRECV: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cmVhbG09ImxvY2FsaG9zdCIsbm9uY2U9ImUyZjZhOWYwY2Y5NTRjMWEzM2UzNTk5ZjdlMGM0YmUzNTNkZTdhZTEiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>\nSEND: <response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\">dXNlcm5hbWU9InNyZWVkZXZpIixyZWFsbT0ibG9jYWxob3N0Iixub25jZT0iZTJmNmE5ZjBjZjk1NGMxYTMzZTM1OTlmN2UwYzRiZTM1M2RlN2FlMSIsY25vbmNlPSI3ZTZlMjEzOGY3NWU4YzIwY2IwZjFkYTAxNWUxM2RmNDg0MDlhY2VlZGJlNDVlNDg3MWVmMzM2NDI0YzRiYjIyIixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL2dzcnYiLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9NzhmMTg3MmY2YWI2YzQzMWI0NmU0Mjc5NDYyZmQ0MjM=</response>\nRECV: <challenge xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>cnNwYXV0aD00YzMyMjRlOTE2YzhlMzRiYWZkOTFlZDFkODE3N2VhYg==</challenge>MGM0YmUzNTNkZTdhZTEiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=</challenge>\nSEND: <response xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\" />\nRECV: <?xml version='1.0'?><stream:stream xmlns:stream='http://etherx.jabber.org/streams' xmlns='jabber:client' from='localhost' version='1.0' id='v4mujb8jb5sv9kobzhge1m7ii56wqwim05gkhp3s'>0aG09bWQ1LXNlc3M=</challenge>\nSEND: <stream:stream to='localhost' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>\nRECV: <stream:features xmlns:stream='http://etherx.jabber.org/streams'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>G09bWQ1LXNlc3M=</challenge>\nRECV: <stream:features xmlns:stream='http://etherx.jabber.org/streams'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>G09bWQ1LXNlc3M=</challenge>\nSEND: <iq xmlns=\"jabber:client\" id=\"agsXMPP_1\" type=\"set\" to=\"gsrv\"><bind xmlns=\"urn:ietf:params:xml:ns:xmpp-bind\"><resource>MiniClient</resource></bind></iq>\nRECV: <iq xmlns='jabber:client' id='agsXMPP_1' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>sreedevi@localhost/MiniClient</jid></bind></iq>pp-session'/></stream:features>G09bWQ1LXNlc3M=</challenge>\nSEND: <iq xmlns=\"jabber:client\" id=\"agsXMPP_2\" type=\"set\" to=\"gsrv\"><session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\" /></iq>\nRECV: <iq xmlns='jabber:client' id='agsXMPP_2' type='result'/>bind xmlns='urn:ietf:params:xml:ns:xmpp-bind'><jid>sreedevi@localhost/MiniClient</jid></bind></iq>pp-session'/></stream:features>G09bWQ1LXNlc3M=</challenge>\nSEND: <iq xmlns=\"jabber:client\" id=\"agsXMPP_3\" type=\"get\" to=\"gsrv\"><query xmlns=\"jabber:iq:agents\" /></iq>\nSEND: <iq xmlns=\"jabber:client\" id=\"agsXMPP_4\" type=\"get\"><query xmlns=\"jabber:iq:roster\" /></iq>\nRECV: <iq xmlns='jabber:client' type='result' id='agsXMPP_4'><query xmlns='jabber:iq:roster'><item subscription='from' jid='dep@localhost'/><item name='abc' subscription='both' jid='abc@localhost'/><item subscription='from' jid='usd@localhost'/><item subscription='both' jid='sar@localhost'/><item name='asd' ask='subscribe' subscription='none' jid='asd@server.org'/><item subscription='both' jid='prv@localhost'/></query></iq>\nSEND: <presence xmlns=\"jabber:client\"><status /><priority>10</priority></presence>\nRECV: <presence xmlns='jabber:client' to='sreedevi@localhost/MiniClient' from='sar@localhost/Psi'>\n<x xmlns='jabber:x:delay' from='sar@localhost/Psi' stamp='20061030T08:34:18'/><priority>5</priority>\n</presence>tion='from' jid='usd@localhost'/><item subscription='both' jid='sar@localhost'/><item name='asd' ask='subscribe' subscription='none' jid='asd@server.org'/><item subscription='both' jid='prv@localhost'/></query></iq>\nRECV: <presence xmlns='jabber:client' to='sreedevi@localhost/MiniClient' from='abc@localhost/Psi'>\n<x xmlns='jabber:x:delay' from='abc@localhost/Psi' stamp='20061030T09:19:32'/><priority>5</priority>\n</presence><presence xmlns='jabber:client' to='sreedevi@localhost/MiniClient' from='sreedevi@localhost/Psi'>\n<x xmlns='jabber:x:delay' from='sreedevi@localhost/Psi' stamp='20061030T08:54:00'/><priority>5</priority>\n</presence>/query></iq>\nRECV: <presence xmlns='jabber:client' to='sreedevi@localhost/MiniClient' from='abc@localhost/Psi'>\n<x xmlns='jabber:x:delay' from='abc@localhost/Psi' stamp='20061030T09:19:32'/><priority>5</priority>\n</presence><presence xmlns='jabber:client' to='sreedevi@localhost/MiniClient' from='sreedevi@localhost/Psi'>\n<x xmlns='jabber:x:delay' from='sreedevi@localhost/Psi' stamp='20061030T08:54:00'/><priority>5</priority>\n</presence>/query></iq>\nRECV: <iq xmlns='jabber:client' from='gsrv' to='sreedevi@localhost/MiniClient' type='error' id='agsXMPP_3'><error type='cancel' code='404'><remote-server-not-found xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><query xmlns='jabber:iq:agents'/></iq>vi@localhost/MiniClient' from='sreedevi@localhost/Psi'>\n<x xmlns='jabber:x:delay' from='sreedevi@localhost/Psi' stamp='20061030T08:54:00'/><priority>5</priority>\n</presence>/query></iq>\nSEND: <iq xmlns=\"jabber:client\" id=\"agsXMPP_5\" to=\"sar@localhost\" type=\"set\"><si xmlns=\"http://jabber.org/protocol/si\" profile=\"http://jabber.org/protocol/si/profile/file-transfer\" id=\"ec9bb0c7-1976-46de-9b71-8848ee30be60\"><file xmlns=\"http://jabber.org/protocol/si/profile/file-transfer\" name=\"agsxmpp.chm\" size=\"2463170\"><desc>testing...</desc><range /></file><feature xmlns=\"http://jabber.org/protocol/feature-neg\"><x xmlns=\"jabber:x:data\" type=\"form\"><field type=\"list-single\" var=\"stream-method\"><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>\nSEND:  \nRECV: <iq xmlns='jabber:client' from='sar@localhost' type='error' to='sreedevi@localhost/MiniClient' id='agsXMPP_5'><error type='cancel' code='501'><feature-not-implemented xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/></error><si xmlns='http://jabber.org/protocol/si' id='ec9bb0c7-1976-46de-9b71-8848ee30be60' profile='http://jabber.org/protocol/si/profile/file-transfer'><file xmlns='http://jabber.org/protocol/si/profile/file-transfer' size='2463170' name='agsxmpp.chm'><desc>testing...</desc><range/></file><feature xmlns='http://jabber.org/protocol/feature-neg'><x xmlns='jabber:x:data' type='form'><field var='stream-method' type='list-single'><option><value>http://jabber.org/protocol/bytestreams</value></option></field></x></feature></si></iq>\nSEND:  "



Thanks...
Avatar
Alex #4
Member since Feb 2003 · 4245 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

you are sending your request to a bare jid. As jabberer mentioned in the other thread you have to send IQ's always to a full Jid.
The bare Jid works for messages because there server routes them to the correct resource automatically. But not for IQ's

Alex
Alexander Gnauck
AG-Software
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP SDK Support RSS