Data Submission and Technical Specifications (PDF - CCIM
Data Submission and Technical Specifications (PDF - CCIM
Data Submission and Technical Specifications (PDF - CCIM
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Community Care Information Management (<strong>CCIM</strong>)<br />
IAR <strong>Data</strong> <strong>Submission</strong><br />
`<br />
`<br />
<br />
<br />
<br />
<br />
The following Java snippet shows how the Security Policy is loaded into the client <strong>and</strong> a request<br />
being initiated:<br />
public <strong>Submission</strong>ServiceStub() throws org.apache.axis2.AxisFault,<br />
XMLStreamException {<br />
//Web Service end point<br />
this("http://localhost:8181/IAR_Webservice5/services/<strong>Submission</strong>Service"<br />
);<br />
Options options = _serviceClient.getOptions();<br />
//loading client-plain-text-security-policy<br />
options.setProperty(RampartMessage<strong>Data</strong>.KEY_RAMPART_POLICY,Policy.loadPo<br />
licy("plain-policy-client.xml"));<br />
//setting credentials<br />
options.setUserName("libuser");<br />
options.setPassword("books");<br />
//engaging Rampart WS-Security engine<br />
_serviceClient.engageModule("rampart");<br />
}<br />
Testing<br />
In order to confirm that the client side stub code has been configured correctly; the actual endpoint<br />
i.e. the web service needs to be deployed on a server that is accessible to the client stub.<br />
For local testing, an application server like Tomcat is suitable. The server side web service<br />
needs to be deployed as a st<strong>and</strong>ard Java web application archive file (*.WAR). Once the WAR<br />
file has been deployed, the web service will be active <strong>and</strong> be listening for incoming client<br />
requests.<br />
A typical request will look like this:<br />
<br />
<br />
<br />
<br />
libuser<br />
books<br />
<br />
<br />
<br />
<br />
<br />
<br />
20