Package org.jboss.ws.metadata.jaxrpcmapping

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


/*     */     }
/*     */     else
/*     */     {
/* 813 */       if (seiMethodMapping != null)
/*     */       {
/* 815 */         MethodParamPartsMapping part = seiMethodMapping.getMethodParamPartsMappingByPartName(opOutput.getPartName());
/* 816 */         String mode = null;
/* 817 */         if (part != null)
/*     */         {
/* 819 */           WsdlMessageMapping wsdlMessageMapping = part.getWsdlMessageMapping();
/* 820 */           mode = wsdlMessageMapping.getParameterMode();
/*     */         }
/* 822 */         if ("INOUT".equals(mode))
/*     */         {
/* 824 */           ParameterMetaData inMetaData = opMetaData.getParameter(xmlName);
/* 825 */           if (inMetaData != null)
/*     */           {
/* 827 */             inMetaData.setMode(ParameterMode.INOUT);
/* 828 */             return wsdlPosition;
/*     */           }
/*     */
/* 831 */           throw new WSException("Could not update IN parameter to be INOUT, as indicated in the mapping: " + opOutput.getPartName());
/*     */         }
/*     */
/* 834 */         if ("OUT".equals(mode))
/*     */         {
/* 836 */           hasReturnMapping = false;
/* 837 */           javaTypeName = part.getParamType();
/* 838 */           outMetaData.setIndex(part.getParamPosition());
/* 839 */           outMetaData.setJavaTypeName(javaTypeName);
/*     */         }
/*     */         else
/*     */         {
/* 843 */           WsdlReturnValueMapping returnValueMapping = seiMethodMapping.getWsdlReturnValueMapping();
View Full Code Here


/*     */     }
/* 232 */     String javaTypeName = typeMapping.getJavaTypeName(xmlType);
/* 233 */     boolean mapped = false;
/* 234 */     if (seiMethodMapping != null)
/*     */     {
/* 236 */       MethodParamPartsMapping paramMapping = seiMethodMapping.getMethodParamPartsMappingByPartName(partName);
/* 237 */       if (paramMapping != null)
/*     */       {
/* 239 */         javaTypeName = paramMapping.getParamType();
/* 240 */         pos = paramMapping.getParamPosition();
/* 241 */         mapped = true;
/*     */       }
/* 243 */       else if (!optional)
/*     */       {
/* 245 */         throw new WSException("Cannot obtain method parameter mapping for message part '" + partName + "' in wsdl operation: " + seiMethodMapping.getWsdlOperation());
View Full Code Here

/*     */   {
/* 239 */     WSDLInterfaceOperationInput win = WSDLUtils.getWsdl11Input(wiop);
/* 240 */     WSDLInterfaceOperationOutput output = WSDLUtils.getWsdl11Output(wiop);
/*     */
/* 242 */     JBossXSModel schemaModel = WSDLUtils.getSchemaModel(this.wsdlDefinitions.getWsdlTypes());
/* 243 */     MethodParamPartsMapping mpin = null;
/*     */
/* 245 */     boolean holder = false;
/*     */
/* 247 */     if (win != null)
/*     */     {
View Full Code Here

/* 378 */     xt = xsmodel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());
/* 379 */     if ((xt instanceof XSSimpleTypeDefinition))
/* 380 */       xmlType = SchemaUtils.handleSimpleType((XSSimpleTypeDefinition)xt);
/* 381 */     String partName = header.getPartName();
/*     */
/* 383 */     MethodParamPartsMapping mpin = getMethodParamPartsMapping(semm, elementName, xmlType, paramPosition, wsdlMessageName, mode, partName, false, true);
/* 384 */     semm.addMethodParamPartsMapping(mpin);
/*     */   }
View Full Code Here

/*     */
/* 441 */       XSTypeDefinition xt = schemaModel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());
/* 442 */       if ((xt instanceof XSSimpleTypeDefinition)) {
/* 443 */         xmlType = SchemaUtils.handleSimpleType((XSSimpleTypeDefinition)xt);
/*     */       }
/* 445 */       MethodParamPartsMapping mpin = getMethodParamPartsMapping(semm, xmlName, xmlType, i++, wsdlMessageName, getMode(wiop, part.getName()), partName, false, true);
/*     */
/* 447 */       semm.addMethodParamPartsMapping(mpin);
/*     */     }
/*     */
/* 450 */     WSDLRPCPart returnParameter = signature.returnParameter();
View Full Code Here

/*     */         }
/*     */
/* 642 */         boolean array = (particle.getMaxOccursUnbounded()) || (particle.getMaxOccurs() > 1);
/* 643 */         boolean primitive = (!element.getNillable()) && ((particle.getMinOccurs() != 0) || (particle.getMaxOccurs() != 1));
/*     */
/* 645 */         MethodParamPartsMapping part = getMethodParamPartsMapping(methodMapping, xmlName, xmlType, partsMappings.size(), messageName, "IN", xmlName.getLocalPart(), array, primitive);
/*     */
/* 647 */         partsMappings.add(part);
/*     */       }
/*     */
/*     */     }
View Full Code Here

/*     */   }
/*     */
/*     */   private MethodParamPartsMapping getMethodParamPartsMapping(ServiceEndpointMethodMapping semm, QName xmlName, QName xmlType, int paramPosition, String wsdlMessageName, String paramMode, String wsdlMessagePartName, boolean array, boolean primitive)
/*     */   {
/* 929 */     String targetNS = this.wsdlDefinitions.getTargetNamespace();
/* 930 */     MethodParamPartsMapping mppm = new MethodParamPartsMapping(semm);
/* 931 */     mppm.setParamPosition(paramPosition);
/* 932 */     String javaType = getJavaTypeAsString(xmlName, xmlType, array, primitive);
/* 933 */     mppm.setParamType(javaType);
/*     */
/* 936 */     WsdlMessageMapping wmm = new WsdlMessageMapping(mppm);
/* 937 */     wmm.setParameterMode(paramMode);
/* 938 */     String wsdlNS = "wsdlMsgNS";
/* 939 */     wmm.setWsdlMessage(new QName(targetNS, wsdlMessageName, wsdlNS));
/* 940 */     wmm.setWsdlMessagePartName(wsdlMessagePartName);
/* 941 */     mppm.setWsdlMessageMapping(wmm);
/* 942 */     return mppm;
/*     */   }
View Full Code Here

/* 283 */     }addPackageMapping(name, namespace);
/*     */   }
/*     */
/*     */   private void buildParamMapping(ServiceEndpointMethodMapping methodMapping, String interfaceName, OperationMetaData operation, String name, String type, String mode, boolean header, int position)
/*     */   {
/* 289 */     MethodParamPartsMapping paramMapping = new MethodParamPartsMapping(methodMapping);
/* 290 */     paramMapping.setParamPosition(position);
/* 291 */     paramMapping.setParamType(type);
/*     */
/* 293 */     WsdlMessageMapping messageMapping = new WsdlMessageMapping(paramMapping);
/* 294 */     messageMapping.setWsdlMessagePartName(name);
/* 295 */     String messageName = interfaceName + "_" + operation.getQName().getLocalPart();
/* 296 */     if ("OUT".equals(mode))
/* 297 */       messageName = messageName + "Response";
/* 298 */     QName messageQName = new QName(this.wsdl.getTargetNamespace(), messageName, "wsdlMsgNS");
/*     */
/* 300 */     messageMapping.setWsdlMessage(messageQName);
/* 301 */     messageMapping.setParameterMode(mode);
/* 302 */     messageMapping.setSoapHeader(header);
/* 303 */     paramMapping.setWsdlMessageMapping(messageMapping);
/* 304 */     methodMapping.addMethodParamPartsMapping(paramMapping);
/*     */   }
View Full Code Here

TOP

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

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.