How do you send information from client to server ?

Asked by Viswanathan R

Hi,
  How do you send the client display name, client ip are send to server. In xmds class you just get license key, client id , xmds key but i dont know how these are passed to server and also in server " Display " Grid contains IP address of the client. How do you get this IP from client?
Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

Display name is sent on the Register call. IP is collected from XMDS by the webserver. The client doesn't report it's IP address.

Revision history for this message
Viswanathan R (rvisu87) said :
#2

Thanks,
i want to send what is currently playing in client,so that i can monitor the client from server. how do i send NOW PLAYING info to server

Revision history for this message
Alex Harrington (alexharrington) said :
#3

There's no call for that - so you'd have to add one from scratch.

Revision history for this message
Viswanathan R (rvisu87) said :
#4

sorry, i can't understood what you are saying.please describe clearly

Revision history for this message
Alex Harrington (alexharrington) said :
#5

The client and server don't do that. You'd have to write a new webservice SOAP call to accept that information and do something useful with it, and in the client you'd have to write code to call that new webservice method at some point - either when the layout changes or one a timer or whatever.

Revision history for this message
Viswanathan R (rvisu87) said :
#6

Thanks, what is log? xiboclient contains number of log lines like log.log(2,"info",_("Loaded Download Manager ") + downloaderName)

Revision history for this message
Dan Garner (dangarner) said :
#7

What is it you are trying to do?

You seem to be asking a lot of questions relating to the technical detail of the code - so i assume you are making some modifications?

Perhaps if you shared your goals and your code we could be more useful?

Revision history for this message
Viswanathan R (rvisu87) said :
#8

ya am trying to monitor the client from server side, so that i have send the information of currently playing layout id to server by creating a method
def nextlayout() :
                         lid=tmpLayout.layoutID
   self.xmds.LayoutInfo(lid)
    and then declare this layoutinfo in xmds class by
                      self.server.layoutinfo(self.getKey(),self.getUUID(),self.getName(),self.__schemaVersion__,lid)
then i have added this method in xmdssoap.class.php and service.wsdl

but it throws this bellow error

<Fault SOAP-ENV:Server: Procedure 'LayoutInfo' not present>

what to do.

Revision history for this message
Alex Harrington (alexharrington) said :
#9

Your LayoutInfo call doesn't exist at the webservice - so you probably have a problem in either your new wsdl file, or in the methods you've implemented to handle that call.

Alex

Revision history for this message
Alex Harrington (alexharrington) said :
#10

It's also worth noting that nextLayout() is called in the Player thread in the client, so if your call to the webservice blocks for any reason - eg the server is slow or busy or the link is poor quality or the DNS takes some time to resolve etc then the playback in the client will freeze while that happens.

Alex

Revision history for this message
Dan Garner (dangarner) said :
#11

In principle i think this could be a useful (optional) function to have in the application... might be an idea for you to add it as a blueprint as well (maybe you could contribute your changes by uploading them in a branch?)

I am not an expert on the Python client... but doesnt the syntax have to be the same for self.xmds.LayoutInfo and self.server.layoutinfo?

I know you and your collegue are making a lot of changes to the code, which is fine. However it would be fantastic if you could contribute your changes back to the project so that the community can enjoy them too.

I also feel the need to remind you of the license terms, please have a read of this: http://xibo.org.uk/legal

cheers

Can you help with this problem?

Provide an answer of your own, or ask Viswanathan R for more information if necessary.

To post a message you must log in.