0

How introspect xml work in alljoyn??

asked 2015-04-28 23:13:58 -0700

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

HI there

Could anybody tell me how introspect xml work in alljoyn??

Who need implement introspect xml?

Who handle introspect xml?

How introSpect xml transport between Provider and Consumer?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-05-02 00:14:23 -0700

praveenb gravatar image

Introspection is a means by which one AllJoyn application can get information regarding the objects, interfaces and members (i.e. methods, signals and properties) implemented by another (possibly remote) AllJoyn application.

An AllJoyn application is developed on top of a Client library (there are two different libraries available - Standard Core and Thin Core). With a Client library, the application registers object paths, interfaces and members it implements. Once this process of registering is done, the Client library can handle introspection requests sent by other AllJoyn applications on behalf of the application.

Under the covers, Introspect is a method call. This method call is a member of org.freedesktop.DBus.Introspectable interface. It takes no input arguments and returns a string in xml format (that has information about the objects, interfaces and members if the application).

The usual sequence of steps is as follows:

  1. Provider registers objects, interfaces and members it implements, with its Client Library
  2. Provider advertises
  3. Consumer discovers Provider
  4. Consumer joins a session with Provider
  5. Consumer sends an Introspect method request to the Provider.
  6. Provider receives the Introspect method request and sends out a method response as an xml string (containing information about the objects, interfaces and method it implements). More specifically, Client Library of Provider receives the Introspect method request and sends out the method response to Consumer.

Recommended Reading: http://dbus.freedesktop.org/doc/dbus-specification.html

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2015-04-28 23:13:58 -0700

Seen: 810 times

Last updated: May 02 '15