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.

import org.apache.soap.encoding.*;import org.apache.soap.encoding.soapenc.*;import org.apache.soap.rpc.*;import org.apache.soap.util.xml.*;import org.apache.soap.messaging.*;public class ServicesProxy{private Call call = createCall();private URL url = null;private String stringURL ="http://localhost:8080/SametimeDataServerWA/servlet/rpcrouter";public ServicesProxy(String url){this.stringURL = url + "/SametimeDataServerWA/servlet/rpcrouter";}public synchronized void setEndPoint(URL url){this.url = url;}public synchronized URL getEndPoint() throws MalformedURLException{return getURL();}private URL getURL() throws MalformedURLException{if (url == null && stringURL != null && stringURL.length() > 0){url = new URL(stringURL);}return url;}public synchronized void logCloseSession(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).");}436 <strong>Lotus</strong> <strong>Instant</strong> <strong>Messaging</strong>/<strong>Web</strong> <strong>Conferencing</strong> (Sametime): Building Sametime-Enabled Applications

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

Saved successfully!

Ooh no, something went wrong!