10.07.2015 Views

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

Lotus Instant Messaging/ Web Conferencing ... - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

call.setMethodName("logCloseSession");call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);call.setTargetObjectURI(targetObjectURI);Vector params = new Vector();Parameter sourceUserParam = new Parameter("sourceUser",java.lang.String.class, sourceUser, Constants.NS_URI_SOAP_ENC);params.addElement(sourceUserParam);Parameter destinationUserParam = new Parameter("destinationUser",java.lang.String.class, destinationUser, Constants.NS_URI_SOAP_ENC);params.addElement(destinationUserParam);call.setParams(params);Response resp = call.invoke(getURL(), SOAPActionURI);}//Check the response.if (resp.generatedFault()){Fault fault = resp.getFault();call.setFullTargetObjectURI(targetObjectURI);throw new SOAPException(fault.getFaultCode(), fault.getFaultString());}public synchronized void logOpenSession(java.lang.StringsourceUser,java.lang.String destinationUser) throws Exception{String targetObjectURI ="http://tempuri.org/com.ibm.hursley.sametimedataserver.services.Services";String SOAPActionURI = "";if(getURL() == null){throw new SOAPException(Constants.FAULT_CODE_CLIENT,"A URL must be specified via ServicesProxy.setEndPoint(URL).");}call.setMethodName("logOpenSession");call.setEncodingStyleURI(Constants.NS_URI_SOAP_ENC);call.setTargetObjectURI(targetObjectURI);Vector params = new Vector();Parameter sourceUserParam = new Parameter("sourceUser",java.lang.String.class, sourceUser, Constants.NS_URI_SOAP_ENC);params.addElement(sourceUserParam);Parameter destinationUserParam = new Parameter("destinationUser",java.lang.String.class, destinationUser, Constants.NS_URI_SOAP_ENC);params.addElement(destinationUserParam);call.setParams(params);Response resp = call.invoke(getURL(), SOAPActionURI);Appendix A. Visualizing Sametime 437

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!