Package org.apache.juddi.v3.client.mapping.wsdl

Examples of org.apache.juddi.v3.client.mapping.wsdl.ReadWSDL


        registrationInfo.setPortName(portName);
        registrationInfo.setServiceUrl(serviceUrl);
        registrationInfo.setWsdlUrl(wsdlURL);
        registrationInfo.setWsdlDefinition(wsdlDefinition);
        registrationInfo.setRegistrationType(RegistrationType.BPEL);
        registration = new AsyncRegistration(bpelClerk, urlLocalizer, properties, registrationInfo);
        Thread thread = new Thread(registration);
        thread.start();
      } catch (Exception e) {
        log.error("Unable to register service " + serviceQName
            + " ." + e.getMessage(),e);
View Full Code Here


   * @param wsdlRef
   */
  public void unRegisterBPELEPR(QName serviceName, String portName, URL serviceURL) {
    if (selfRegister) {
      try {
        BPEL2UDDI bpel2UDDI = new BPEL2UDDI(bpelClerk, urlLocalizer, properties);
        String serviceKey = bpel2UDDI.unRegister(serviceName, portName, serviceURL);
        if (registration.getServiceLocator(bpelClerk.getName())!=null) {
          registration.getServiceLocator(bpelClerk.getName()).removeService(serviceKey);
        }
      } catch (Exception e) {
        log.error("Unable to unRegister EPR for " + serviceName
View Full Code Here

  public void registerBPELProcess(QName serviceQName, String version, String portName, URL serviceUrl,
      URL wsdlURL, Definition wsdlDefinition) {
    if (selfRegister) {
     
      try {
        RegistrationInfo registrationInfo = new RegistrationInfo();
        registrationInfo.setServiceQName(serviceQName);
        registrationInfo.setVersion(version);
        registrationInfo.setPortName(portName);
        registrationInfo.setServiceUrl(serviceUrl);
        registrationInfo.setWsdlUrl(wsdlURL);
        registrationInfo.setWsdlDefinition(wsdlDefinition);
        registrationInfo.setRegistrationType(RegistrationType.BPEL);
        registration = new AsyncRegistration(bpelClerk, urlLocalizer, properties, registrationInfo);
        Thread thread = new Thread(registration);
        thread.start();
      } catch (Exception e) {
        log.error("Unable to register service " + serviceQName
View Full Code Here

                } catch (Exception e) {
                        logger.error(e.getMessage(), e);
                        Assert.fail("Could not obtain authInfo token.");
                }
                rw = new ReadWSDL();
        }
View Full Code Here

        private List<String> FetchWSDL(String value) {
                List<String> items = new ArrayList<String>();

                if (value.startsWith("http://") || value.startsWith("https://")) {
                        //here, we need an HTTP Get for WSDLs
                        org.apache.juddi.v3.client.mapping.wsdl.ReadWSDL r = new ReadWSDL();
                        r.setIgnoreSSLErrors(true);
                        try {
                                Definition wsdlDefinition = r.readWSDL(new URL(value));
                                Properties properties = new Properties();

                                properties.put("keyDomain", "domain");
                                properties.put("businessName", "biz");
                                properties.put("serverName", "localhost");
View Full Code Here

  public void publishAndRegisterHttpCallbackEndpoint() throws BindException {
    if (clerk!=null && listenerEndpoint==null) {
      try {
        listenerServiceUrl = new URL(urlLocalizer.rewrite(new URL(DEFAULT_SUBSCRIPTION_LISTENER_URL)));
        WSDL2UDDI wsdl2UDDI = new WSDL2UDDI(clerk, urlLocalizer, properties);
        Definition wsdlDefinition = new ReadWSDL().readWSDL("org/apache/juddi/v3/client/mapping/UDDIClientSubscriptionListener.wsdl");
       
        String bindingKey = wsdl2UDDI.registerBusinessService(
            SUBSCRIPTION_LISTENER_SERVICE_NAME,
            SUBSCRIPTION_LISTENER_PORT_NAME, listenerServiceUrl, wsdlDefinition).getBindingKey();
        UDDISubscriptionListenerPortType subscriptionListener = new UDDIClientSubscriptionListenerImpl(bindingKey, this);
View Full Code Here

                        properties.putAll(this.getUDDINode().getProperties());

                        for (WSDL wsdl : this.getWsdls()) {
                                try {
                                        URL wsdlUrl = this.getClass().getClassLoader().getResource(wsdl.getFileName());
                                        ReadWSDL rw = new ReadWSDL();
                                        Definition wsdlDefinition = rw.readWSDL(wsdlUrl);
                                        if (wsdl.keyDomain != null) {
                                                properties.setProperty("keyDomain", wsdl.keyDomain);
                                        }
                                        if (wsdl.businessKey != null) {
                                                properties.setProperty("businessKey", wsdl.getBusinessKey());
View Full Code Here

                        properties.putAll(this.getUDDINode().getProperties());

                        for (WSDL wsdl : this.getWsdls()) {
                                try {
                                        URL wsdlUrl = this.getClass().getClassLoader().getResource(wsdl.getFileName());
                                        ReadWSDL rw = new ReadWSDL();
                                        Definition wsdlDefinition = rw.readWSDL(wsdlUrl);
                                        if (wsdl.keyDomain != null) {
                                                properties.setProperty("keyDomain", wsdl.keyDomain);
                                        }
                                        if (wsdl.businessKey != null) {
                                                properties.setProperty("businessKey", wsdl.getBusinessKey());
View Full Code Here

        private List<String> FetchWSDL(String value) {
                List<String> items = new ArrayList<String>();

                if (value.startsWith("http://") || value.startsWith("https://")) {
                        //here, we need an HTTP Get for WSDLs
                        org.apache.juddi.v3.client.mapping.wsdl.ReadWSDL r = new ReadWSDL();
                        r.setIgnoreSSLErrors(true);
                        try {
                                Definition wsdlDefinition = r.readWSDL(new URL(value));
                                Properties properties = new Properties();

                                properties.put("keyDomain", "domain");
                                properties.put("businessName", "biz");
                                properties.put("serverName", "localhost");
View Full Code Here

public class ReadWSDLTest {

    @Test
    public void readFromFile() throws WSDLException, URISyntaxException, Exception {

        ReadWSDL readWSDL = new ReadWSDL();
        Definition definition = readWSDL.readWSDL("wsdl/HelloWorld.wsdl");
        Assert.assertNotNull(definition);
    }
View Full Code Here

TOP

Related Classes of org.apache.juddi.v3.client.mapping.wsdl.ReadWSDL

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.