Package org.jboss.ws.metadata.wsdl

Examples of org.jboss.ws.metadata.wsdl.WSDLEndpoint


/*     */
/*     */   protected abstract void processTypes();
/*     */
/*     */   protected void processEndpoint(WSDLService service, EndpointMetaData endpoint)
/*     */   {
/*  86 */     WSDLEndpoint wsdlEndpoint = new WSDLEndpoint(service, endpoint.getPortName());
/*  87 */     String address = endpoint.getEndpointAddress();
/*  88 */     wsdlEndpoint.setAddress(address == null ? "REPLACE_WITH_ACTUAL_URL" : address);
/*  89 */     service.addEndpoint(wsdlEndpoint);
/*     */
/*  91 */     QName interfaceQName = endpoint.getPortTypeName();
/*  92 */     WSDLInterface wsdlInterface = new WSDLInterface(this.wsdl, interfaceQName);
/*  93 */     this.wsdl.addInterface(wsdlInterface);
/*     */
/*  96 */     if (!interfaceQName.getNamespaceURI().equals(endpoint.getServiceMetaData().getServiceName().getNamespaceURI()))
/*     */     {
/*  98 */       WSDLImport wsdlImport = new WSDLImport(this.wsdl);
/*  99 */       wsdlImport.setLocation(interfaceQName.getLocalPart() + "_PortType");
/* 100 */       wsdlImport.setNamespace(interfaceQName.getNamespaceURI());
/* 101 */       this.wsdl.addImport(wsdlImport);
/* 102 */       this.wsdl.registerNamespaceURI(interfaceQName.getNamespaceURI(), null);
/*     */     }
/*     */
/* 105 */     QName bindingQName = new QName(interfaceQName.getNamespaceURI(), interfaceQName.getLocalPart() + "Binding");
/* 106 */     WSDLBinding wsdlBinding = new WSDLBinding(this.wsdl, bindingQName);
/* 107 */     wsdlBinding.setInterfaceName(interfaceQName);
/* 108 */     wsdlBinding.setType(endpoint.getBindingId());
/* 109 */     this.wsdl.addBinding(wsdlBinding);
/* 110 */     wsdlEndpoint.setBinding(bindingQName);
/*     */
/* 112 */     for (OperationMetaData operation : endpoint.getOperations())
/*     */     {
/* 114 */       processOperation(wsdlInterface, wsdlBinding, operation);
/*     */     }
View Full Code Here


/* 156 */     int lenendpoints = 0;
/* 157 */     if (endpoints != null)
/* 158 */       lenendpoints = endpoints.length;
/* 159 */     for (int j = 0; j < lenendpoints; j++)
/*     */     {
/* 161 */       WSDLEndpoint endpt = endpoints[j];
/* 162 */       String portname = endpt.getName().getLocalPart();
/*     */
/* 164 */       PortMapping pm = new PortMapping(sim);
/* 165 */       pm.setPortName(portname);
/* 166 */       pm.setJavaPortName(portname);
/* 167 */       sim.addPortMapping(pm);
View Full Code Here

/* 181 */     int lenendpoints = 0;
/* 182 */     if (endpoints != null)
/* 183 */       lenendpoints = endpoints.length;
/* 184 */     for (int j = 0; j < lenendpoints; j++)
/*     */     {
/* 186 */       WSDLEndpoint endpt = endpoints[j];
/* 187 */       QName binding = endpt.getBinding();
/* 188 */       WSDLBinding wsdlbind = this.wsdlDefinitions.getBinding(binding);
/* 189 */       String bindName = wsdlbind.getName().getLocalPart();
/* 190 */       QName portTypeName = wsdlbind.getInterfaceName();
/* 191 */       WSDLInterface wsdlintf = this.wsdlDefinitions.getInterface(portTypeName);
/* 192 */       String portName = wsdlintf.getName().getLocalPart();
View Full Code Here

   {
      log.trace("processPort: " + srcPort.getName());

      Binding srcBinding = getDefinedBinding(srcPort);
      QName endpointName = new QName(srcWsdl.getTargetNamespace(), srcPort.getName());
      WSDLEndpoint destEndpoint = new WSDLEndpoint(destService, endpointName);
      destEndpoint.setBinding(srcBinding.getQName());
      destEndpoint.setAddress(getSOAPAddress(srcPort));
      processUnknownExtensibilityElements(srcPort, destEndpoint);

      WSDLBinding destBinding = processBinding(srcWsdl, srcBinding);
      if (destBinding != null)
         destService.addEndpoint(destEndpoint);
View Full Code Here

   protected Map<String,String> packageNamespaceMap = new HashMap<String,String>();

   protected void processEndpoint(WSDLService service, EndpointMetaData endpoint)
   {
      WSDLEndpoint wsdlEndpoint = new WSDLEndpoint(service, endpoint.getPortName());
      String address = endpoint.getEndpointAddress();
      wsdlEndpoint.setAddress(address == null ? "REPLACE_WITH_ACTUAL_URL" : address);
      service.addEndpoint(wsdlEndpoint);

      QName interfaceQName = endpoint.getPortTypeName();
      WSDLInterface wsdlInterface = new WSDLInterface(wsdl, interfaceQName);
      wsdl.addInterface(wsdlInterface);

      // Add imports
      if (!interfaceQName.getNamespaceURI().equals(endpoint.getServiceMetaData().getServiceName().getNamespaceURI()))
      {
         WSDLImport wsdlImport = new WSDLImport(wsdl);
         wsdlImport.setLocation(interfaceQName.getLocalPart() + "_PortType");
         wsdlImport.setNamespace(interfaceQName.getNamespaceURI());
         wsdl.addImport(wsdlImport);
         wsdl.registerNamespaceURI(interfaceQName.getNamespaceURI(), null);
      }

      QName bindingQName = new QName(interfaceQName.getNamespaceURI(), interfaceQName.getLocalPart() + "Binding");
      WSDLBinding wsdlBinding = new WSDLBinding(wsdl, bindingQName);
      wsdlBinding.setInterfaceName(interfaceQName);
      wsdlBinding.setType(endpoint.getBindingId());
      wsdl.addBinding(wsdlBinding);
      wsdlEndpoint.setBinding(bindingQName);

      for (OperationMetaData operation : endpoint.getOperations())
      {
         processOperation(wsdlInterface, wsdlBinding, operation);
      }
View Full Code Here

   protected Map<String,String> packageNamespaceMap = new HashMap<String,String>();

   protected void processEndpoint(WSDLService service, EndpointMetaData endpoint)
   {
      WSDLEndpoint wsdlEndpoint = new WSDLEndpoint(service, endpoint.getPortName());
      String address = endpoint.getEndpointAddress();
      wsdlEndpoint.setAddress(address == null ? "REPLACE_WITH_ACTUAL_URL" : address);
      service.addEndpoint(wsdlEndpoint);

      QName interfaceQName = endpoint.getPortTypeName();
      WSDLInterface wsdlInterface = new WSDLInterface(wsdl, interfaceQName);
      wsdl.addInterface(wsdlInterface);

      // Add imports
      if (!interfaceQName.getNamespaceURI().equals(endpoint.getServiceMetaData().getServiceName().getNamespaceURI()))
      {
         WSDLImport wsdlImport = new WSDLImport(wsdl);
         wsdlImport.setLocation(interfaceQName.getLocalPart() + "_PortType");
         wsdlImport.setNamespace(interfaceQName.getNamespaceURI());
         wsdl.addImport(wsdlImport);
         wsdl.registerNamespaceURI(interfaceQName.getNamespaceURI(), null);
      }

      QName bindingQName = new QName(interfaceQName.getNamespaceURI(), interfaceQName.getLocalPart() + "Binding");
      WSDLBinding wsdlBinding = new WSDLBinding(wsdl, bindingQName);
      wsdlBinding.setInterfaceName(interfaceQName);
      wsdlBinding.setType(endpoint.getBindingId());
      wsdl.addBinding(wsdlBinding);
      wsdlEndpoint.setBinding(bindingQName);

      if (endpoint.getDocumentation() != null)
      {
         String prefix = wsdl.getPrefix(Constants.URI_JAXWS_WSDL_CUSTOMIZATIONS);
         if (prefix == null)
View Full Code Here

         appendUnknownExtensibilityElements(buffer, service);
         WSDLEndpoint[] endpoints = service.getEndpoints();
         int lenend = endpoints.length;
         for (int j = 0; j < lenend; j++)
         {
            WSDLEndpoint endpoint = endpoints[j];
            appendServicePort(buffer, endpoint);
         }

         buffer.append("</service>");
      }
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.wsdl.WSDLEndpoint

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.