javax.xml.ws.WebEndpoint Java Examples
The following examples show how to use
javax.xml.ws.WebEndpoint.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SCAnnotations.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
SCAnnotations(final Class<?> sc) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class); if(wsc==null) { throw new WebServiceException("Service Interface Annotations required, exiting..."); } String tns = wsc.targetNamespace(); try { JAXWSUtils.getFileOrURL(wsc.wsdlLocation()); } catch (IOException e) { // TODO: report a reasonable error message throw new WebServiceException(e); } for (Method method : sc.getDeclaredMethods()) { WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class); if (webEndpoint != null) { String endpointName = webEndpoint.name(); QName portQName = new QName(tns, endpointName); portQNames.add(portQName); } Class<?> seiClazz = method.getReturnType(); if (seiClazz!=void.class) { classes.add(seiClazz); } } return null; } }); }
Example #2
Source File: SCAnnotations.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
SCAnnotations(final Class<?> sc) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class); if(wsc==null) { throw new WebServiceException("Service Interface Annotations required, exiting..."); } String tns = wsc.targetNamespace(); try { JAXWSUtils.getFileOrURL(wsc.wsdlLocation()); } catch (IOException e) { // TODO: report a reasonable error message throw new WebServiceException(e); } for (Method method : sc.getDeclaredMethods()) { WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class); if (webEndpoint != null) { String endpointName = webEndpoint.name(); QName portQName = new QName(tns, endpointName); portQNames.add(portQName); } Class<?> seiClazz = method.getReturnType(); if (seiClazz!=void.class) { classes.add(seiClazz); } } return null; } }); }
Example #3
Source File: SCAnnotations.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
SCAnnotations(final Class<?> sc) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class); if(wsc==null) { throw new WebServiceException("Service Interface Annotations required, exiting..."); } String tns = wsc.targetNamespace(); try { JAXWSUtils.getFileOrURL(wsc.wsdlLocation()); } catch (IOException e) { // TODO: report a reasonable error message throw new WebServiceException(e); } for (Method method : sc.getDeclaredMethods()) { WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class); if (webEndpoint != null) { String endpointName = webEndpoint.name(); QName portQName = new QName(tns, endpointName); portQNames.add(portQName); } Class<?> seiClazz = method.getReturnType(); if (seiClazz!=void.class) { classes.add(seiClazz); } } return null; } }); }
Example #4
Source File: SCAnnotations.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
SCAnnotations(final Class<?> sc) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class); if(wsc==null) { throw new WebServiceException("Service Interface Annotations required, exiting..."); } String tns = wsc.targetNamespace(); try { JAXWSUtils.getFileOrURL(wsc.wsdlLocation()); } catch (IOException e) { // TODO: report a reasonable error message throw new WebServiceException(e); } for (Method method : sc.getDeclaredMethods()) { WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class); if (webEndpoint != null) { String endpointName = webEndpoint.name(); QName portQName = new QName(tns, endpointName); portQNames.add(portQName); } Class<?> seiClazz = method.getReturnType(); if (seiClazz!=void.class) { classes.add(seiClazz); } } return null; } }); }
Example #5
Source File: SCAnnotations.java From hottub with GNU General Public License v2.0 | 5 votes |
SCAnnotations(final Class<?> sc) { AccessController.doPrivileged(new PrivilegedAction<Void>() { @Override public Void run() { WebServiceClient wsc =sc.getAnnotation(WebServiceClient.class); if(wsc==null) { throw new WebServiceException("Service Interface Annotations required, exiting..."); } String tns = wsc.targetNamespace(); try { JAXWSUtils.getFileOrURL(wsc.wsdlLocation()); } catch (IOException e) { // TODO: report a reasonable error message throw new WebServiceException(e); } for (Method method : sc.getDeclaredMethods()) { WebEndpoint webEndpoint = method.getAnnotation(WebEndpoint.class); if (webEndpoint != null) { String endpointName = webEndpoint.name(); QName portQName = new QName(tns, endpointName); portQNames.add(portQName); } Class<?> seiClazz = method.getReturnType(); if (seiClazz!=void.class) { classes.add(seiClazz); } } return null; } }); }
Example #6
Source File: ExecutorServices_Service.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "ExecutorServicesPort" ) public ExecutorServices getExecutorServicesPort() { return (ExecutorServices)super.getPort(ExecutorServicesPort, ExecutorServices.class); }
Example #7
Source File: EchoServiceClientWithHandler.java From thorntail with Apache License 2.0 | 4 votes |
/** * @param features A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. * @return returns EchoService */ @WebEndpoint(name = "echoPort") public EchoService getEchoPort(WebServiceFeature... features) { return super.getPort(new QName("webservices.swarm.wildfly.org", "echoPort"), EchoService.class, features); }
Example #8
Source File: RecipeExecutorService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipeExecutorServiceSOAP11" ) public RecipeExecutorPortType getRecipeExecutorServiceSOAP11(WebServiceFeature... features) { return (RecipeExecutorPortType)super.getPort(RecipeExecutorServiceSOAP11, RecipeExecutorPortType.class, features); }
Example #9
Source File: RecipeExecutorService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipeExecutorServiceSOAP11" ) public RecipeExecutorPortType getRecipeExecutorServiceSOAP11() { return (RecipeExecutorPortType)super.getPort(RecipeExecutorServiceSOAP11, RecipeExecutorPortType.class); }
Example #10
Source File: RecipeExecutorService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipeExecutorServiceSOAP11" ) public RecipeExecutorPortType getRecipeExecutorServiceSOAP11(WebServiceFeature... features) { return (RecipeExecutorPortType)super.getPort(RecipeExecutorServiceSOAP11, RecipeExecutorPortType.class, features); }
Example #11
Source File: RecipePrescriberService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipePrescriberServiceSOAP11" ) public RecipePrescriberPortType getRecipePrescriberServiceSOAP11(WebServiceFeature... features) { return (RecipePrescriberPortType)super.getPort(RecipePrescriberServiceSOAP11, RecipePrescriberPortType.class, features); }
Example #12
Source File: EchoServiceClientWithHandler.java From thorntail with Apache License 2.0 | 4 votes |
/** * @return returns EchoService */ @WebEndpoint(name = "echoPort") public EchoService getEchoPort() { return super.getPort(new QName("webservices.swarm.wildfly.org", "echoPort"), EchoService.class); }
Example #13
Source File: ServiceGenerator.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
private void writeWebEndpoint(Port port, JMethod m) { JAnnotationUse webEndpointAnn = m.annotate(cm.ref(WebEndpoint.class)); webEndpointAnn.param("name", port.getName().getLocalPart()); }
Example #14
Source File: RecipePrescriberService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipePrescriberServiceSOAP11" ) public RecipePrescriberPortType getRecipePrescriberServiceSOAP11() { return (RecipePrescriberPortType)super.getPort(RecipePrescriberServiceSOAP11, RecipePrescriberPortType.class); }
Example #15
Source File: ServiceGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
private void writeWebEndpoint(Port port, JMethod m) { JAnnotationUse webEndpointAnn = m.annotate(cm.ref(WebEndpoint.class)); webEndpointAnn.param("name", port.getName().getLocalPart()); }
Example #16
Source File: RecipeExecutorService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipeExecutorServiceSOAP11" ) public RecipeExecutorPortType getRecipeExecutorServiceSOAP11(WebServiceFeature... features) { return (RecipeExecutorPortType)super.getPort(RecipeExecutorServiceSOAP11, RecipeExecutorPortType.class, features); }
Example #17
Source File: RecipeExecutorService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipeExecutorServiceSOAP11" ) public RecipeExecutorPortType getRecipeExecutorServiceSOAP11() { return (RecipeExecutorPortType)super.getPort(RecipeExecutorServiceSOAP11, RecipeExecutorPortType.class); }
Example #18
Source File: ExecutorServices_Service.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "ExecutorServicesPort" ) public ExecutorServices getExecutorServicesPort(WebServiceFeature... features) { return (ExecutorServices)super.getPort(ExecutorServicesPort, ExecutorServices.class, features); }
Example #19
Source File: PrescriberServices_Service.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "PrescriberServicesPort" ) public PrescriberServices getPrescriberServicesPort() { return (PrescriberServices)super.getPort(PrescriberServicesPort, PrescriberServices.class); }
Example #20
Source File: RecipeExecutorService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "RecipeExecutorServiceSOAP11" ) public RecipeExecutorPortType getRecipeExecutorServiceSOAP11() { return (RecipeExecutorPortType)super.getPort(RecipeExecutorServiceSOAP11, RecipeExecutorPortType.class); }
Example #21
Source File: ServiceGenerator.java From hottub with GNU General Public License v2.0 | 4 votes |
private void writeWebEndpoint(Port port, JMethod m) { JAnnotationUse webEndpointAnn = m.annotate(cm.ref(WebEndpoint.class)); webEndpointAnn.param("name", port.getName().getLocalPart()); }
Example #22
Source File: PCDHService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "PCDHServiceSOAP11" ) public PCDHPortType getPCDHServiceSOAP11() { return (PCDHPortType)super.getPort(new QName("urn:be:fgov:ehealth:gfddpp:protocol:v1", "PCDHServiceSOAP11"), PCDHPortType.class); }
Example #23
Source File: TestService_Service.java From uavstack with Apache License 2.0 | 4 votes |
/** * * @return returns TestService */ @WebEndpoint(name = "TestServicePort") public TestService getTestServicePort() { return super.getPort(TestServicePort, TestService.class); }
Example #24
Source File: ExecutorServices_Service.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "ExecutorServicesPort" ) public ExecutorServices getExecutorServicesPort() { return (ExecutorServices)super.getPort(ExecutorServicesPort, ExecutorServices.class); }
Example #25
Source File: ServiceGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
private void writeWebEndpoint(Port port, JMethod m) { JAnnotationUse webEndpointAnn = m.annotate(cm.ref(WebEndpoint.class)); webEndpointAnn.param("name", port.getName().getLocalPart()); }
Example #26
Source File: TIPService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "TIPServiceSOAP11" ) public TIPPortType getTIPServiceSOAP11(WebServiceFeature... var1) { return (TIPPortType)super.getPort(new QName("urn:be:fgov:ehealth:gfddpp:protocol:v1", "TIPServiceSOAP11"), TIPPortType.class, var1); }
Example #27
Source File: ServiceGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
private void writeWebEndpoint(Port port, JMethod m) { JAnnotationUse webEndpointAnn = m.annotate(cm.ref(WebEndpoint.class)); webEndpointAnn.param("name", port.getName().getLocalPart()); }
Example #28
Source File: PCDHService.java From freehealth-connector with GNU Affero General Public License v3.0 | 4 votes |
@WebEndpoint( name = "PCDHServiceSOAP11" ) public PCDHPortType getPCDHServiceSOAP11(WebServiceFeature... var1) { return (PCDHPortType)super.getPort(new QName("urn:be:fgov:ehealth:gfddpp:protocol:v1", "PCDHServiceSOAP11"), PCDHPortType.class, var1); }
Example #29
Source File: ServiceGenerator.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
private void writeWebEndpoint(Port port, JMethod m) { JAnnotationUse webEndpointAnn = m.annotate(cm.ref(WebEndpoint.class)); webEndpointAnn.param("name", port.getName().getLocalPart()); }
Example #30
Source File: DisplayService.java From onvif with Apache License 2.0 | 2 votes |
/** * * @param features * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values. * @return * returns DisplayPort */ @WebEndpoint(name = "DisplayPort") public DisplayPort getDisplayPort(WebServiceFeature... features) { return super.getPort(DisplayPort, DisplayPort.class, features); }