[jdev] In-Band RPC and SOAP discovery
stpeter at stpeter.im
Thu May 22 10:24:40 CDT 2008
On 05/22/2008 7:25 AM, Jonathan Dickinson wrote:
> Hey all,
> What are the options here?
> One potentially elegant solution would be (for XMPP-RPC):
> <iq type='get'
> from='requester at company-b.com/jrpc-client'
> to='responder at company-a.com/jrpc-server'
> <query xmlns='http://jabber.org/protocol/disco#info'/>
> <iq type='result'
> to='requester at company-b.com/jrpc-client'
> from='responder at company-a.com/jrpc-server'
> <query xmlns='http://jabber.org/protocol/disco#info'>
> <identity category='automation' type='rpc'/>
> <feature var='jabber:iq:rpc'/>
> <identity category='automation' type='jabber:iq:rpc' />
> <feature var='http://www.mycompany.org/xml-rpc/example.ConvertCurrency.php' />
What exactly does that identify? Is that a *feature* or a *service*?
If it's a service, it's better to identify it via disco#items or even
XEP-0215 as Maciek notes, because the service is external to the XMPP
> <wsdl:definitions name='SomeService'
> xmlns:wsdl='http://schemas.xmlsoap.org/wsdl/' />
Six of one, half a dozen of the other. :)
I'm not a huge WSDL fan, but what you've described will work, I think.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
More information about the JDev