Package org.jboss.ws.metadata.jaxrpcmapping

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


         if (namespaceURI != null)
            opQName = new QName(namespaceURI, opName);

         // Set java method name
         String javaName = opName.substring(0, 1).toLowerCase() + opName.substring(1);
         ServiceEndpointMethodMapping seiMethodMapping = null;
         if (seiMapping != null)
         {
            epMetaData.setServiceEndpointInterfaceName(seiMapping.getServiceEndpointInterface());

            seiMethodMapping = seiMapping.getServiceEndpointMethodMappingByWsdlOperation(opName);
            if (seiMethodMapping == null)
               throw new WSException("Cannot obtain method mapping for: " + opName);

            javaName = seiMethodMapping.getJavaMethodName();
         }

         OperationMetaData opMetaData = new OperationMetaData(epMetaData, opQName, javaName);
         epMetaData.addOperation(opMetaData);
View Full Code Here


         len = wioparr.length;
      for (int j = 0; j < len; j++)
      {
         WSDLInterfaceOperation wiop = wioparr[j];
         String opname = wiop.getName().getLocalPart();
         ServiceEndpointMethodMapping semm = new ServiceEndpointMethodMapping(seim);
         semm.setJavaMethodName(ToolsUtils.firstLetterLowerCase(opname));
         semm.setWsdlOperation(opname);
         semm.setWrappedElement(isWrapped());

         WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdlDefinitions, wiop);

         if (isDocStyle())
         {
View Full Code Here

      seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());
      seiMapping.setWsdlPortType(new QName(wsdl.getTargetNamespace(), interfaceName, "portTypeNS"));
      seiMapping.setWsdlBinding(new QName(wsdl.getTargetNamespace(), interfaceName + "Binding", "bindingNS"));
      for (OperationMetaData operation : endpoint.getOperations())
      {
         ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);
         methodMapping.setJavaMethodName(operation.getJavaName());
         methodMapping.setWsdlOperation(operation.getQName().getLocalPart());
         boolean isWrapped = operation.isDocumentWrapped();
         methodMapping.setWrappedElement(isWrapped);
         int i = 0;
         for (ParameterMetaData param : operation.getParameters())
         {
            if (isWrapped && param.isInHeader() == false)
            {
View Full Code Here

         len = wioparr.length;
      for (int j = 0; j < len; j++)
      {
         WSDLInterfaceOperation wiop = wioparr[j];
         String opname = wiop.getName().getLocalPart();
         ServiceEndpointMethodMapping semm = new ServiceEndpointMethodMapping(seim);
         semm.setJavaMethodName(ToolsUtils.firstLetterLowerCase(opname));
         semm.setWsdlOperation(opname);
         semm.setWrappedElement(isWrapped());

         WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(wsdlDefinitions, wiop);

         if (isDocStyle())
         {
View Full Code Here

      xst.setPackageName(getPackageName(typeNamespace));
      ServiceEndpointMethodMapping[] mapArr = seim.getServiceEndpointMethodMappings();
      int len = mapArr != null ? mapArr.length : 0;
      for (int i = 0; i < len; i++)
      {
         ServiceEndpointMethodMapping mm = mapArr[i];
         String opname = mm.getJavaMethodName();
         String sei = seim.getServiceEndpointInterface();
         String plainClassName = utils.getJustClassName(sei);
         String classname = plainClassName + "_" + opname + "_RequestStruct";
         List<VAR> listInputs = new ArrayList<VAR>();
         MethodParamPartsMapping[] mppmarr = mm.getMethodParamPartsMappings();
         int lenmppmarr = mppmarr != null ? mppmarr.length : 0;
         for (int j = 0; j < lenmppmarr; j++)
         {
            listInputs.addAll(xst.getVARList((XSComplexTypeDefinition)xsmodel.getTypeDefinition(opname, typeNamespace), xsmodel, false));
         }
View Full Code Here

      seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());
      seiMapping.setWsdlPortType(new QName(wsdl.getTargetNamespace(), interfaceName, "portTypeNS"));
      seiMapping.setWsdlBinding(new QName(wsdl.getTargetNamespace(), interfaceName + "Binding", "bindingNS"));
      for (OperationMetaData operation : endpoint.getOperations())
      {
         ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);
         methodMapping.setJavaMethodName(operation.getJavaName());
         methodMapping.setWsdlOperation(operation.getQName().getLocalPart());
         boolean isWrapped = operation.isDocumentWrapped();
         methodMapping.setWrappedElement(isWrapped);
         int i = 0;
         for (ParameterMetaData param : operation.getParameters())
         {
            if (isWrapped && param.isInHeader() == false)
            {
View Full Code Here

/* 170 */       if (namespaceURI != null) {
/* 171 */         opQName = new QName(namespaceURI, opName);
/*     */       }
/*     */
/* 174 */       String javaName = opName.substring(0, 1).toLowerCase() + opName.substring(1);
/* 175 */       ServiceEndpointMethodMapping seiMethodMapping = null;
/* 176 */       if (seiMapping != null)
/*     */       {
/* 178 */         epMetaData.setServiceEndpointInterfaceName(seiMapping.getServiceEndpointInterface());
/*     */
/* 180 */         seiMethodMapping = seiMapping.getServiceEndpointMethodMappingByWsdlOperation(opName);
/* 181 */         if (seiMethodMapping == null) {
/* 182 */           throw new WSException("Cannot obtain method mapping for: " + opName);
/*     */         }
/* 184 */         javaName = seiMethodMapping.getJavaMethodName();
/*     */       }
/*     */
/* 187 */       OperationMetaData opMetaData = new OperationMetaData(epMetaData, opQName, javaName);
/* 188 */       epMetaData.addOperation(opMetaData);
/*     */
View Full Code Here

/* 197 */     xst.setPackageName(this.packageName);
/* 198 */     ServiceEndpointMethodMapping[] mapArr = seim.getServiceEndpointMethodMappings();
/* 199 */     int len = mapArr != null ? mapArr.length : 0;
/* 200 */     for (int i = 0; i < len; i++)
/*     */     {
/* 202 */       ServiceEndpointMethodMapping mm = mapArr[i];
/* 203 */       String opname = mm.getJavaMethodName();
/* 204 */       String sei = seim.getServiceEndpointInterface();
/* 205 */       String plainClassName = WSDLUtils.getJustClassName(sei);
/* 206 */       String classname = plainClassName + "_" + opname + "_RequestStruct";
/* 207 */       List listInputs = new ArrayList();
/* 208 */       MethodParamPartsMapping[] mppmarr = mm.getMethodParamPartsMappings();
/* 209 */       int lenmppmarr = mppmarr != null ? mppmarr.length : 0;
/* 210 */       for (int j = 0; j < lenmppmarr; j++)
/*     */       {
/* 212 */         listInputs.addAll(xst.getVARList((XSComplexTypeDefinition)xsmodel.getTypeDefinition(opname, typeNamespace), xsmodel, false));
/*     */       }
View Full Code Here

/* 212 */       len = wioparr.length;
/* 213 */     for (int j = 0; j < len; j++)
/*     */     {
/* 215 */       WSDLInterfaceOperation wiop = wioparr[j];
/* 216 */       String opname = wiop.getName().getLocalPart();
/* 217 */       ServiceEndpointMethodMapping semm = new ServiceEndpointMethodMapping(seim);
/* 218 */       semm.setJavaMethodName(ToolsUtils.firstLetterLowerCase(opname));
/* 219 */       semm.setWsdlOperation(opname);
/* 220 */       semm.setWrappedElement(isWrapped());
/*     */
/* 222 */       WSDLBindingOperation bindingOperation = HeaderUtil.getWSDLBindingOperation(this.wsdlDefinitions, wiop);
/*     */
/* 224 */       if (isDocStyle())
/*     */       {
View Full Code Here

/* 196 */     seiMapping.setServiceEndpointInterface(endpoint.getServiceEndpointInterfaceName());
/* 197 */     seiMapping.setWsdlPortType(new QName(this.wsdl.getTargetNamespace(), interfaceName, "portTypeNS"));
/* 198 */     seiMapping.setWsdlBinding(new QName(this.wsdl.getTargetNamespace(), interfaceName + "Binding", "bindingNS"));
/* 199 */     for (OperationMetaData operation : endpoint.getOperations())
/*     */     {
/* 201 */       ServiceEndpointMethodMapping methodMapping = new ServiceEndpointMethodMapping(seiMapping);
/* 202 */       methodMapping.setJavaMethodName(operation.getJavaName());
/* 203 */       methodMapping.setWsdlOperation(operation.getQName().getLocalPart());
/* 204 */       boolean isWrapped = operation.isDocumentWrapped();
/* 205 */       methodMapping.setWrappedElement(isWrapped);
/* 206 */       int i = 0;
/* 207 */       for (ParameterMetaData param : operation.getParameters())
/*     */       {
/* 209 */         if ((isWrapped) && (!param.isInHeader()))
/*     */         {
View Full Code Here

TOP

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

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.