Package javax.xml.ws

Examples of javax.xml.ws.Service


        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getInquiryUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, INQUIRY_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        inquiryService = (UDDIInquiryPortType) service.getPort(UDDIInquiryPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return inquiryService;
View Full Code Here


        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSecurityUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, SECURITY_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        securityService = (UDDISecurityPortType) service.getPort(UDDISecurityPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return securityService;
View Full Code Here

        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getPublishUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, PUBLISH_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        publishService = (UDDIPublicationPortType) service.getPort(UDDIPublicationPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return publishService;
View Full Code Here

        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, SUBSCRIPTION_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        subscriptionService = (UDDISubscriptionPortType) service.getPort(UDDISubscriptionPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return subscriptionService;
View Full Code Here

        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getSubscriptionListenerUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, SUBSCRIPTION_LISTENER_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        subscriptionListenerService = (UDDISubscriptionListenerPortType) service.getPort(UDDISubscriptionListenerPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return subscriptionListenerService;
View Full Code Here

        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getCustodyTransferUrl();
        }
        QName qName = new QName(UDDI_V3_SERVICE_NAMESPACE, CUSTODY_TRANSFER_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        custodyTransferService = (UDDICustodyTransferPortType) service.getPort(UDDICustodyTransferPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return custodyTransferService;
View Full Code Here

        if (endpointURL==null)  {
          UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(managerName);
          endpointURL = manager.getClientConfig().getUDDINode(nodeName).getJuddiApiUrl();
        }
        QName qName = new QName(JUDDI_V3_SERVICE_NAMESPACE, PUBLISHER_SERVICE);
        Service service = Service.create(new URL(endpointURL), qName);
        publisherService = (JUDDIApiPortType) service.getPort(JUDDIApiPortType.class);
      } catch (Exception e) {
        throw new TransportException(e.getMessage(), e);
      }
    }
    return publisherService;
View Full Code Here

        Bus bus = bf.createBus(busFile.toString());
        SpringBusFactory.setDefaultBus(bus);
        SpringBusFactory.setThreadDefaultBus(bus);

        URL wsdl = AsymmetricBindingTest.class.getResource("DoubleIt.wsdl");
        Service service = Service.create(wsdl, SERVICE_QNAME);
        QName portQName = new QName(NAMESPACE, "DoubleItAsymmetricSAML1Port");
        DoubleItPortType asymmetricSaml1Port =
                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(asymmetricSaml1Port, PORT);
        if (standalone) {
            TokenTestUtils.updateSTSPort((BindingProvider)asymmetricSaml1Port, STSPORT2);
        }
       
View Full Code Here

        Bus bus = bf.createBus(busFile.toString());
        SpringBusFactory.setDefaultBus(bus);
        SpringBusFactory.setThreadDefaultBus(bus);

        URL wsdl = AsymmetricBindingTest.class.getResource("DoubleIt.wsdl");
        Service service = Service.create(wsdl, SERVICE_QNAME);
        QName portQName = new QName(NAMESPACE, "DoubleItAsymmetricSAML2Port");
        DoubleItPortType asymmetricSaml2Port =
                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(asymmetricSaml2Port, PORT);
        if (standalone) {
            TokenTestUtils.updateSTSPort((BindingProvider)asymmetricSaml2Port, STSPORT2);
        }
       
View Full Code Here

        Bus bus = bf.createBus(busFile.toString());
        SpringBusFactory.setDefaultBus(bus);
        SpringBusFactory.setThreadDefaultBus(bus);

        URL wsdl = UsernameTokenTest.class.getResource("DoubleItUt.wsdl");
        Service service = Service.create(wsdl, SERVICE_QNAME);
        QName portQName = new QName(NAMESPACE, "DoubleItPlaintextPort");
        DoubleItPortType utPort =
                service.getPort(portQName, DoubleItPortType.class);
        updateAddressPort(utPort, PORT);
       
        utPort.doubleIt(25);
       
        ((java.io.Closeable)utPort).close();
View Full Code Here

TOP

Related Classes of javax.xml.ws.Service

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.