Package org.jboss.ws.metadata.wsdl

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


      int lenendpoints = 0;
      if (endpoints != null)
         lenendpoints = endpoints.length;
      for (int j = 0; j < lenendpoints; j++)
      {
         WSDLEndpoint endpt = endpoints[j];
         String portname = endpt.getName().getLocalPart();
         //port mapping
         PortMapping pm = new PortMapping(sim);
         pm.setPortName(portname);
         pm.setJavaPortName(portname);
         sim.addPortMapping(pm);
View Full Code Here


      int lenendpoints = 0;
      if (endpoints != null)
         lenendpoints = endpoints.length;
      for (int j = 0; j < lenendpoints; j++)
      {
         WSDLEndpoint endpt = endpoints[j];
         QName binding = endpt.getBinding();
         WSDLBinding wsdlbind = wsdlDefinitions.getBinding(binding);
         String bindName = wsdlbind.getName().getLocalPart();
         QName portTypeName = wsdlbind.getInterfaceName();
         WSDLInterface wsdlintf = wsdlDefinitions.getInterface(portTypeName);
         String portName = wsdlintf.getName().getLocalPart();
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

   {
      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

/*     */     }
/*     */
/* 166 */     WSDLService wsdlService = wsdlDefinitions.getService(epMetaData.getServiceMetaData().getServiceName());
/* 167 */     if (wsdlService != null)
/*     */     {
/* 169 */       WSDLEndpoint wsdlEndpoint = wsdlService.getEndpoint(epMetaData.getPortName());
/* 170 */       if (wsdlEndpoint != null)
/*     */       {
/* 172 */         List portPolicyRefList = wsdlEndpoint.getExtensibilityElements("http://www.jboss.org/jbossws/wsp/policyReference");
/* 173 */         processPolicies(portPolicyRefList, PolicyScopeLevel.WSDL_PORT, localPolicyRegistry, epMetaData);
/*     */       }
/*     */       else
/*     */       {
/* 177 */         log.warn("Cannot get port '" + epMetaData.getPortName() + "' from the given wsdl definitions! Eventual policies attached to this port won't be considered.");
View Full Code Here

/*      */   {
/* 1576 */     log.trace("processPort: " + srcPort.getName());
/*      */
/* 1578 */     Binding srcBinding = getDefinedBinding(srcPort);
/* 1579 */     QName endpointName = new QName(srcWsdl.getTargetNamespace(), srcPort.getName());
/* 1580 */     WSDLEndpoint destEndpoint = new WSDLEndpoint(destService, endpointName);
/* 1581 */     destEndpoint.setBinding(srcBinding.getQName());
/* 1582 */     destEndpoint.setAddress(getSOAPAddress(srcPort));
/* 1583 */     processUnknownExtensibilityElements(srcPort, destEndpoint);
/*      */
/* 1585 */     WSDLBinding destBinding = processBinding(srcWsdl, srcBinding);
/* 1586 */     if (destBinding != null)
/* 1587 */       destService.addEndpoint(destEndpoint);
View Full Code Here

/* 126 */             portName = new QName(nsURI, portName.getLocalPart());
/* 127 */             this.log.warn("Adding wsdl targetNamespace to: " + portName);
/* 128 */             pcMetaData.setWsdlPort(portName);
/*     */           }
/*     */
/* 131 */           WSDLEndpoint wsdlEndpoint = getWsdlEndpoint(wsdlDefinitions, portName);
/* 132 */           if (wsdlEndpoint == null) {
/* 133 */             throw new WSException("Cannot find port in wsdl: " + portName);
/*     */           }
/*     */
/* 136 */           serviceMetaData.setServiceName(wsdlEndpoint.getWsdlService().getName());
/* 137 */           QName interfaceQName = wsdlEndpoint.getInterface().getName();
/*     */
/* 139 */           Endpoint ep = dep.getService().getEndpointByName(linkName);
/* 140 */           ServerEndpointMetaData sepMetaData = new ServerEndpointMetaData(serviceMetaData, ep, portName, interfaceQName, EndpointMetaData.Type.JAXRPC);
/* 141 */           sepMetaData.setPortComponentName(pcMetaData.getPortComponentName());
/* 142 */           sepMetaData.setLinkName(linkName);
View Full Code Here

/* 242 */     throw new WSException("Cannot build meta data: " + ex.getMessage(), ex);
/*     */   }
/*     */
/*     */   private WSDLEndpoint getWsdlEndpoint(WSDLDefinitions wsdlDefinitions, QName portName)
/*     */   {
/* 248 */     WSDLEndpoint wsdlEndpoint = null;
/* 249 */     for (WSDLService wsdlService : wsdlDefinitions.getServices())
/*     */     {
/* 251 */       WSDLEndpoint auxEndpoint = wsdlService.getEndpoint(portName);
/* 252 */       if (auxEndpoint == null)
/*     */         continue;
/* 254 */       wsdlEndpoint = auxEndpoint;
/* 255 */       break;
/*     */     }
View Full Code Here

/* 605 */       appendUnknownExtensibilityElements(buffer, service);
/* 606 */       WSDLEndpoint[] endpoints = service.getEndpoints();
/* 607 */       int lenend = endpoints.length;
/* 608 */       for (int j = 0; j < lenend; j++)
/*     */       {
/* 610 */         WSDLEndpoint endpoint = endpoints[j];
/* 611 */         appendServicePort(buffer, endpoint);
/*     */       }
/*     */
/* 614 */       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.