source: ccr/trunk/nhin-vista/projects/NHINC/Current/Product/Production/Examples/WSDLClientFileIssue_OldESB/SampleService1EJB/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 */
5package gov.hhs.fha.nhinc.wsdlissue.sample;
6
7import javax.ejb.Stateless;
8import javax.jws.WebService;
9import gov.hhs.fha.nhinc.wsdlissue.wsdl.sample.SampleServicePortType;
10import gov.hhs.fha.nhinc.wsdlissue.schema.sample.SampleOperationOutputType;
11import 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
19public 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.