Hi,

how would you like to connect to the webservice?

I'm using java and apache cxf.

This is my code:
==============================================================================
            final JaxWsDynamicClientFactory dcf =
JaxWsDynamicClientFactory.newInstance();
            Client userService = dcf.createClient("
http://openmeetingsserver:5080/openmeetings/services/UserService?wsdl";); //
url for openmeetings UserWebservice

            final HTTPConduit http = (HTTPConduit) userService.getConduit();
            final HTTPClientPolicy httpClientPolicy = new
HTTPClientPolicy();
            httpClientPolicy.setReceiveTimeout(Long.MAX_VALUE);
            httpClientPolicy.setAllowChunking(false);
            httpClientPolicy.setConnectionTimeout(Long.MAX_VALUE);
            http.setClient(httpClientPolicy);

            Object[] sessionres = userService.invoke("getSession");
            Method meth = sessionres[0].getClass().getMethod("getReturn");
            Object elem = meth.invoke(sessionres[0]);
            //getId
            String sid =
(String)elem.getClass().getMethod("getSessionId").invoke(elem );
            System.out.println("SID: " + sid);

//          loginUser
            Object[] loginres = userService.invoke("loginUser", sid,
"openmeetings", "openmeetings");
            System.out.println(loginres + " - " + loginres.length + " - " +
loginres[0]);
==============================================================================


2011/3/15 lsharma sharma <[email protected]>

> http://code.google.com/p/openmeetings/wiki/SoapMethods#getSession
>
> refering to the above link...
>
> i want to fetch the sessionid and use the getsession and loginuser..
> wht is the syntax to do so... wht shd be the url for it
>
> --
> You received this message because you are subscribed to the Google Groups
> "OpenMeetings User" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/openmeetings-user?hl=en.
>
>


-- 
MFG

Natalie

-- 
You received this message because you are subscribed to the Google Groups 
"OpenMeetings User" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/openmeetings-user?hl=en.

Reply via email to