source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Examples/WSDLClientFileIssue_ESBRC1/SampleService4EJB/src/java/gov/hhs/fha/nhinc/wsdlissue/sample/SampleService.java@ 507

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
Line 
1/*
2 * To change this template, choose Tools | Templates
3 * and open the template in the editor.
4 */
5
6package gov.hhs.fha.nhinc.wsdlissue.sample;
7
8import gov.hhs.fha.nhinc.wsdlissue.wsdl.sample.SampleServicePortType;
9import javax.ejb.Stateless;
10import javax.jws.WebService;
11import gov.hhs.fha.nhinc.wsdlissue.schema.sample.SampleOperationOutputType;
12import 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
20public 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.