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 | package gov.hhs.fha.nhinc.wsdlissue.sample;
|
---|
| 6 |
|
---|
| 7 | import javax.ejb.Stateless;
|
---|
| 8 | import javax.jws.WebService;
|
---|
| 9 | import gov.hhs.fha.nhinc.wsdlissue.wsdl.sample.SampleServicePortType;
|
---|
| 10 | import gov.hhs.fha.nhinc.wsdlissue.schema.sample.SampleOperationOutputType;
|
---|
| 11 | import gov.hhs.fha.nhinc.wsdlissue.schema.sample.SampleOperationInputType;
|
---|
| 12 |
|
---|
| 13 | /**
|
---|
| 14 | *
|
---|
| 15 | * @author Les Westberg
|
---|
| 16 | */
|
---|
| 17 | @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")
|
---|
| 18 | @Stateless
|
---|
| 19 | public class SampleService implements SampleServicePortType
|
---|
| 20 | {
|
---|
| 21 | public SampleOperationOutputType sampleOperation(SampleOperationInputType part1)
|
---|
| 22 | {
|
---|
| 23 | SampleOperationOutputType oOutput = new SampleOperationOutputType();
|
---|
| 24 | oOutput.setOutputParam("test");
|
---|
| 25 |
|
---|
| 26 | try
|
---|
| 27 | {
|
---|
| 28 | SampleServiceHelper.retrieveFromUDDIServer();
|
---|
| 29 | //SampleServiceHelper oHelper = new SampleServiceHelper();
|
---|
| 30 | //oHelper.start();
|
---|
| 31 | }
|
---|
| 32 | catch (Exception e)
|
---|
| 33 | {
|
---|
| 34 | System.out.println("Failed to retrieve data from UDDI server. Exception: " + e.getMessage());
|
---|
| 35 | }
|
---|
| 36 |
|
---|
| 37 | return oOutput;
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.