Package org.apache.juddi.v3.client.config

Examples of org.apache.juddi.v3.client.config.UDDIClient


        public UDDICustodyTransferPortType getUDDICustodyTransferService(String endpointURL) throws TransportException {
                try {
                        if (custodyTransferService == null) {
                                if (endpointURL == null) {
                                        UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                                        endpointURL = client.getClientConfig().getUDDINode(nodeName).getCustodyTransferUrl();
                                }
                                UDDIService service = new UDDIService();
                                custodyTransferService = service.getUDDICustodyPort();
                        }
                        if (endpointURL != null) {
View Full Code Here


         */
        public JUDDIApiPortType getJUDDIApiService(String endpointURL) throws TransportException {
                try {
                        if (publisherService == null) {
                                if (endpointURL == null) {
                                        UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                                        endpointURL = client.getClientConfig().getUDDINode(nodeName).getJuddiApiUrl();
                                }
                                JUDDIApiService service = new JUDDIApiService();
                                publisherService = (JUDDIApiPortType) service.getPort(JUDDIApiPortType.class);
                        }
                        if (endpointURL != null) {
View Full Code Here

  public void testDirectCall() throws ConfigurationException, WSDLException, RemoteException, TransportException, MalformedURLException, Exception {
    try {
      tckTModel.saveJoePublisherTmodel(authInfoJoe);
      tckBusiness.saveJoePublisherBusiness(authInfoJoe);
     
      UDDIClerk clerk = new UDDIClient("META-INF/uddi.xml").getClerk("joe");
      Properties properties = clerk.getUDDINode().getProperties();
      URLLocalizer urlLocalizer = new URLLocalizerDefaultImpl();
     
      //get the wsdl
      Definition wsdlDefinition = new ReadWSDL().readWSDL("wsdl/sample.wsdl");
View Full Code Here

         *
         * @param requestContext
         * @throws ConfigurationException
         */
        private void setCredentials(Map<String, Object> requestContext) throws ConfigurationException {
                UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                Properties properties = client.getClientConfig().getUDDINode(nodeName).getProperties();
                if (properties != null) {
                        String username = null;
                        String password = null;
                        if (properties.containsKey(Property.BASIC_AUTH_USERNAME)) {
                                username = properties.getProperty(Property.BASIC_AUTH_USERNAME);
View Full Code Here

  public void testClerkCall() throws ConfigurationException, WSDLException, RemoteException, TransportException, MalformedURLException {
    try {
      tckTModel.saveJoePublisherTmodel(authInfoJoe);
      tckBusiness.saveJoePublisherBusiness(authInfoJoe);
     
      UDDIClerk clerk = new UDDIClient("META-INF/uddi.xml").getClerk("joe");
      clerk.registerWsdls();
     
     
      String portTypeName = "StockQuotePortType";
      String namespace    = "http://example.com/stockquote/";
View Full Code Here

         *
         * @param requestContext
         * @throws ConfigurationException
         */
        private void setCredentials(Map<String, Object> requestContext) throws ConfigurationException {
                UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                Properties properties = client.getClientConfig().getUDDINode(nodeName).getProperties();
                if (properties != null) {
                        String username = null;
                        String password = null;
                        if (properties.containsKey(Property.BASIC_AUTH_USERNAME)) {
                                username = properties.getProperty(Property.BASIC_AUTH_USERNAME);
View Full Code Here

                        if (inquiryv2 == null) {
                                inquiryv2 = new Inquiry3to2();

                        }
                        if (endpointURL == null) {
                                UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                                endpointURL = client.getClientConfig().getUDDINode(nodeName).getInquiryUrl();
                        }
                        Map<String, Object> requestContext = ((BindingProvider) inquiryv2).getRequestContext();
                        requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL);
                        setCredentials(requestContext);
                } catch (Exception e) {
View Full Code Here

                                securityv2 = new Security3to2();

                        }

                        if (endpointURL == null) {
                                UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                                endpointURL = client.getClientConfig().getUDDINode(nodeName).getPublishUrl();
                        }
                        Map<String, Object> requestContext = ((BindingProvider) securityv2).getRequestContext();
                        requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL);
                        setCredentials(requestContext);
                } catch (Exception e) {
View Full Code Here

                        if (publishv2 == null) {
                                publishv2 = new Publish3to2();

                        }
                        if (endpointURL == null) {
                                UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
                                endpointURL = client.getClientConfig().getUDDINode(nodeName).getPublishUrl();
                        }

                        Map<String, Object> requestContext = ((BindingProvider) publishv2).getRequestContext();
                        requestContext.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, endpointURL);
                        setCredentials(requestContext);
View Full Code Here

 
  private static UDDIClient manager;

  @BeforeClass
  public static void startRegistry() throws ConfigurationException {
    manager  = new UDDIClient();
    manager.start();
  }
View Full Code Here

TOP

Related Classes of org.apache.juddi.v3.client.config.UDDIClient

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.