Last change
on this file since 507 was 507, checked in by George Lilly, 15 years ago |
NHIN gateway and adaptor for use on linux with VistA EHR and RPMS
|
File size:
1.4 KB
|
Rev | Line | |
---|
[507] | 1 | /*
|
---|
| 2 | * To change this template, choose Tools | Templates
|
---|
| 3 | * and open the template in the editor.
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | package gov.hhs.fha.nhinc.wsdlissue.sample;
|
---|
| 7 |
|
---|
| 8 | import gov.hhs.fha.nhinc.wsdlissue.wsdl.sample.SampleServicePortType;
|
---|
| 9 | import javax.ejb.Stateless;
|
---|
| 10 | import javax.jws.WebService;
|
---|
| 11 | import gov.hhs.fha.nhinc.wsdlissue.schema.sample.SampleOperationOutputType;
|
---|
| 12 | import gov.hhs.fha.nhinc.wsdlissue.schema.sample.SampleOperationInputType;
|
---|
| 13 |
|
---|
| 14 | /**
|
---|
| 15 | *
|
---|
| 16 | * @author Les Westberg
|
---|
| 17 | */
|
---|
| 18 | @WebService(serviceName = "SampleServiceService", portName = "SampleServicePort", endpointInterface = "gov.hhs.fha.nhinc.wsdlissue.wsdl.sample.SampleServicePortType", targetNamespace = "urn:gov:hhs:fha:nhinc:wsdlissue:wsdl:sample", wsdlLocation = "META-INF/wsdl/SampleService/SampleService.wsdl")
|
---|
| 19 | @Stateless
|
---|
| 20 | public class SampleService implements SampleServicePortType {
|
---|
| 21 |
|
---|
| 22 | public SampleOperationOutputType sampleOperation(SampleOperationInputType part1)
|
---|
| 23 | {
|
---|
| 24 | SampleOperationOutputType oOutput = new SampleOperationOutputType();
|
---|
| 25 | oOutput.setOutputParam("test");
|
---|
| 26 |
|
---|
| 27 | try
|
---|
| 28 | {
|
---|
| 29 | //SampleServiceHelper.retrieveFromUDDIServer();
|
---|
| 30 | SampleServiceHelper oHelper = new SampleServiceHelper();
|
---|
| 31 | oHelper.start();
|
---|
| 32 | }
|
---|
| 33 | catch (Exception e)
|
---|
| 34 | {
|
---|
| 35 | System.out.println("Failed to retrieve data from UDDI server. Exception: " + e.getMessage());
|
---|
| 36 | }
|
---|
| 37 |
|
---|
| 38 | return oOutput;
|
---|
| 39 | }
|
---|
| 40 |
|
---|
| 41 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.