Programmatically add transport to a user

Hello,

I’'d like to ask about a way to add a transports to users (register transport for users) programmatically.

If yes, can you please share a couple of lines of code that illustrate a way to manage transports for users?

Thanks

Message was edited by: Bezel

GATE-102 will be the ‘‘official’’ way to do things like this in the future. Basically I’'m aiming to add a SOAP interface with which to add users and such. Is that what you were aiming to do? Add a registration from an external application?

Yes, I need an external application to manage users and their transport “assignments”.

Any expectations about a date it can be ready?

Message was edited by: Bezel

Unfortunately, not really, unless you happen to know of some good and easy to use (and ideally small) SOAP libraries I could make use of. =/ I found one awesome one but it had something like 20 dependencies and generally was far too big for it’‘s worth. It wasn’‘t easy to find ones that supported WSDL. (but then, maybe I could get away with not bothering with WSDL, still having it would be idea) I’'d like to aim for next release if possible. So if you, or anyone, has any good suggestions, please send them my way!!! (post here)

Thanks for all your replies.

I’‘m relatively new to the Wildfire server, so I’'m not sure if the SOAP is the best idea for an interface there.

But anyway, may be it can be much easier to handle this task using SQL queries?

It seems to me you store transport assignments information for user in the DB somewhere.

If yes, can you let me/us know what tables is this info in and I may simply manage it using sql way…

Bezel wrote:

Thanks for all your replies.

I’‘m relatively new to the Wildfire server, so I’'m not sure if the SOAP is the best idea for an interface there.

But anyway, may be it can be much easier to handle this task using SQL queries?

It seems to me you store transport assignments information for user in the DB somewhere.

If yes, can you let me/us know what tables is this info in and I may simply manage it using sql way…

It is, but there’‘s more going on than just simply adding the entries into the gatewayRegistrations table. We also automatically add to the user’‘s real roster using internal APIs. It’'s possible that you could get away with dodging the API and just add in the appropriate entry to gatewayRegistrations, and the related entry into jiveRoster. The contents should be obvious. The roster item will be something like “msn.yourserver.org” or whatever, depending on the transport in question.

Good. I’'ll try that.