Package org.jboss.ws.metadata.jaxrpcmapping

Examples of org.jboss.ws.metadata.jaxrpcmapping.ServiceInterfaceMapping


      if (this.serviceName == null || serviceName.length() == 0)
         throw new IllegalArgumentException("MappingFileGenerator:Service Name is null");

      String targetNS = wsdlDefinitions.getTargetNamespace();
      String prefix = WSToolsConstants.WSTOOLS_CONSTANT_MAPPING_SERVICE_PREFIX;
      ServiceInterfaceMapping sim = new ServiceInterfaceMapping(jwm);
      String className = ToolsUtils.firstLetterUpperCase(javaServiceName);
      sim.setServiceInterface(getPackageName(targetNS) + "." + className);
      sim.setWsdlServiceName(new QName(targetNS, serviceName, prefix));

      WSDLEndpoint[] endpoints = ser.getEndpoints();
      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);
      }
      return sim;
   }
View Full Code Here


   {
      QName origQName = endpoint.getServiceMetaData().getServiceName();
      String serviceInterfaceName = endpoint.getServiceEndpointInterface().getPackage().getName() + "." + origQName.getLocalPart();
      QName serviceQName = new QName(origQName.getNamespaceURI(), origQName.getLocalPart(), "serviceNS");

      ServiceInterfaceMapping serviceMapping = new ServiceInterfaceMapping(javaWsdlMapping);
      serviceMapping.setServiceInterface(serviceInterfaceName);
      serviceMapping.setWsdlServiceName(serviceQName);

      String endpointName = endpoint.getPortName().getLocalPart();
      PortMapping portMapping = new PortMapping(serviceMapping);
      portMapping.setJavaPortName(endpointName);
      portMapping.setPortName(endpointName);
      serviceMapping.addPortMapping(portMapping);

      javaWsdlMapping.addServiceInterfaceMappings(serviceMapping);

      String interfaceName = endpoint.getPortTypeName().getLocalPart();
      ServiceEndpointInterfaceMapping seiMapping = new ServiceEndpointInterfaceMapping(javaWsdlMapping);
View Full Code Here

/* 146 */     if ((this.serviceName == null) || (this.serviceName.length() == 0)) {
/* 147 */       throw new IllegalArgumentException("MappingFileGenerator:Service Name is null");
/*     */     }
/* 149 */     String targetNS = this.wsdlDefinitions.getTargetNamespace();
/* 150 */     String prefix = "serviceNS";
/* 151 */     ServiceInterfaceMapping sim = new ServiceInterfaceMapping(jwm);
/* 152 */     sim.setServiceInterface(this.packageName + "." + javaServiceName);
/* 153 */     sim.setWsdlServiceName(new QName(targetNS, this.serviceName, prefix));
/*     */
/* 155 */     WSDLEndpoint[] endpoints = ser.getEndpoints();
/* 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);
/*     */     }
/* 169 */     return sim;
/*     */   }
View Full Code Here

/*     */   {
/* 178 */     QName origQName = endpoint.getServiceMetaData().getServiceName();
/* 179 */     String serviceInterfaceName = endpoint.getServiceEndpointInterface().getPackage().getName() + "." + origQName.getLocalPart();
/* 180 */     QName serviceQName = new QName(origQName.getNamespaceURI(), origQName.getLocalPart(), "serviceNS");
/*     */
/* 182 */     ServiceInterfaceMapping serviceMapping = new ServiceInterfaceMapping(this.javaWsdlMapping);
/* 183 */     serviceMapping.setServiceInterface(serviceInterfaceName);
/* 184 */     serviceMapping.setWsdlServiceName(serviceQName);
/*     */
/* 186 */     String endpointName = endpoint.getPortName().getLocalPart();
/* 187 */     PortMapping portMapping = new PortMapping(serviceMapping);
/* 188 */     portMapping.setJavaPortName(endpointName);
/* 189 */     portMapping.setPortName(endpointName);
/* 190 */     serviceMapping.addPortMapping(portMapping);
/*     */
/* 192 */     this.javaWsdlMapping.addServiceInterfaceMappings(serviceMapping);
/*     */
/* 194 */     String interfaceName = endpoint.getPortTypeName().getLocalPart();
/* 195 */     ServiceEndpointInterfaceMapping seiMapping = new ServiceEndpointInterfaceMapping(this.javaWsdlMapping);
View Full Code Here

TOP

Related Classes of org.jboss.ws.metadata.jaxrpcmapping.ServiceInterfaceMapping

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.