Package org.jboss.ws.metadata.jaxrpcmapping

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


      return mppm;
   }
  
   private WsdlMessageMapping constructWsdlMessageMapping(MethodParamPartsMapping mppm)
   {
      WsdlMessageMapping wmm = new WsdlMessageMapping(mppm);
      wmm.setWsdlMessage(new QName("http://org.jboss/types","HelloWs_sayHello","wsdlMsgNS"));
      wmm.setWsdlMessagePartName("String_1");
      wmm.setParameterMode("IN");
      return wmm;
   }
View Full Code Here


      return mppm;
   }
  
   private WsdlMessageMapping constructWsdlMessageMapping(MethodParamPartsMapping mppm)
   {
      WsdlMessageMapping wmm = new WsdlMessageMapping(mppm);
      wmm.setWsdlMessage(new QName("http://org.jboss/types","HelloWs_sayHello","wsdlMsgNS"));
      wmm.setWsdlMessagePartName("String_1");
      wmm.setParameterMode("IN");
      return wmm;
   }
View Full Code Here

            throw new WSException("Cannot obtain java/xml type mapping for: " + xmlType);

         Map<String, String> variableMap = createVariableMappingMap(javaXmlTypeMapping.getVariableMappings());
         for (MethodParamPartsMapping partMapping : seiMethodMapping.getMethodParamPartsMappings())
         {
            WsdlMessageMapping wsdlMessageMapping = partMapping.getWsdlMessageMapping();
            if (wsdlMessageMapping.isSoapHeader())
               continue;

            if (wsdlMessageMapping == null)
               throw new IllegalArgumentException("wsdl-message-message mapping required for document/literal wrapped");

            String elementName = wsdlMessageMapping.getWsdlMessagePartName();

            // Skip attachments
            if (bindingInput.getMimePart(elementName) != null)
               continue;

            String variable = variableMap.get(elementName);
            if (variable == null)
               throw new IllegalArgumentException("Could not determine variable name for element: " + elementName);

            WrappedParameter wrapped = new WrappedParameter(new QName(elementName), partMapping.getParamType(), variable, partMapping.getParamPosition());

            String parameterMode = wsdlMessageMapping.getParameterMode();
            if (parameterMode == null || parameterMode.length() < 2)
               throw new IllegalArgumentException("Invalid parameter mode for element: " + elementName);

            if (!"OUT".equals(parameterMode))
               wrappedParameters.add(wrapped);
View Full Code Here

         {
            MethodParamPartsMapping part = seiMethodMapping.getMethodParamPartsMappingByPartName(opOutput.getPartName());
            String mode = null;
            if (part != null)
            {
               WsdlMessageMapping wsdlMessageMapping = part.getWsdlMessageMapping();
               mode = wsdlMessageMapping.getParameterMode();
            }
            if ("INOUT".equals(mode))
            {
               ParameterMetaData inMetaData = opMetaData.getParameter(xmlName);
               if (inMetaData != null)
View Full Code Here

      mppm.setParamPosition(paramPosition);
      String javaType = getJavaTypeAsString(xmlName, xmlType, xmlType.getNamespaceURI(), array, primitive);
      mppm.setParamType(javaType);

      //WSDL Message Mapping
      WsdlMessageMapping wmm = new WsdlMessageMapping(mppm);
      wmm.setParameterMode(paramMode);
      String wsdlNS = WSToolsConstants.WSTOOLS_CONSTANT_MAPPING_WSDL_MESSAGE_NS;
      wmm.setWsdlMessage(new QName(targetNS, wsdlMessageName, wsdlNS));
      wmm.setWsdlMessagePartName(wsdlMessagePartName);
      mppm.setWsdlMessageMapping(wmm);
      return mppm;
   }
View Full Code Here

   {
      MethodParamPartsMapping paramMapping = new MethodParamPartsMapping(methodMapping);
      paramMapping.setParamPosition(position);
      paramMapping.setParamType(type);

      WsdlMessageMapping messageMapping = new WsdlMessageMapping(paramMapping);
      messageMapping.setWsdlMessagePartName(name);
      String messageName = interfaceName + "_" + operation.getQName().getLocalPart();
      if ("OUT".equals(mode))
         messageName += "Response";
      QName messageQName = new QName(wsdl.getTargetNamespace(), messageName, "wsdlMsgNS");

      messageMapping.setWsdlMessage(messageQName);
      messageMapping.setParameterMode(mode);
      messageMapping.setSoapHeader(header);
      paramMapping.setWsdlMessageMapping(messageMapping);
      methodMapping.addMethodParamPartsMapping(paramMapping);
   }
View Full Code Here

      mppm.setParamPosition(paramPosition);
      String javaType = getJavaTypeAsString(xmlName, xmlType, xmlType.getNamespaceURI(), array, primitive);
      mppm.setParamType(javaType);

      //WSDL Message Mapping
      WsdlMessageMapping wmm = new WsdlMessageMapping(mppm);
      wmm.setParameterMode(paramMode);
      String wsdlNS = WSToolsConstants.WSTOOLS_CONSTANT_MAPPING_WSDL_MESSAGE_NS;
      wmm.setWsdlMessage(new QName(targetNS, wsdlMessageName, wsdlNS));
      wmm.setWsdlMessagePartName(wsdlMessagePartName);
      mppm.setWsdlMessageMapping(wmm);
      return mppm;
   }
View Full Code Here

   {
      MethodParamPartsMapping paramMapping = new MethodParamPartsMapping(methodMapping);
      paramMapping.setParamPosition(position);
      paramMapping.setParamType(type);

      WsdlMessageMapping messageMapping = new WsdlMessageMapping(paramMapping);
      messageMapping.setWsdlMessagePartName(name);
      String messageName = interfaceName + "_" + operation.getQName().getLocalPart();
      if ("OUT".equals(mode))
         messageName += "Response";
      QName messageQName = new QName(wsdl.getTargetNamespace(), messageName, "wsdlMsgNS");

      messageMapping.setWsdlMessage(messageQName);
      messageMapping.setParameterMode(mode);
      messageMapping.setSoapHeader(header);
      paramMapping.setWsdlMessageMapping(messageMapping);
      methodMapping.addMethodParamPartsMapping(paramMapping);
   }
View Full Code Here

/* 645 */         throw new WSException("Cannot obtain java/xml type mapping for: " + xmlType);
/*     */       }
/* 647 */       Map variableMap = createVariableMappingMap(javaXmlTypeMapping.getVariableMappings());
/* 648 */       for (MethodParamPartsMapping partMapping : seiMethodMapping.getMethodParamPartsMappings())
/*     */       {
/* 650 */         WsdlMessageMapping wsdlMessageMapping = partMapping.getWsdlMessageMapping();
/* 651 */         if (wsdlMessageMapping.isSoapHeader()) {
/*     */           continue;
/*     */         }
/* 654 */         if (wsdlMessageMapping == null) {
/* 655 */           throw new IllegalArgumentException("wsdl-message-message mapping required for document/literal wrapped");
/*     */         }
/* 657 */         String elementName = wsdlMessageMapping.getWsdlMessagePartName();
/*     */
/* 660 */         if (bindingInput.getMimePart(elementName) != null) {
/*     */           continue;
/*     */         }
/* 663 */         String variable = (String)variableMap.get(elementName);
/* 664 */         if (variable == null) {
/* 665 */           throw new IllegalArgumentException("Could not determine variable name for element: " + elementName);
/*     */         }
/* 667 */         WrappedParameter wrapped = new WrappedParameter(new QName(elementName), partMapping.getParamType(), variable, partMapping.getParamPosition());
/*     */
/* 669 */         String parameterMode = wsdlMessageMapping.getParameterMode();
/* 670 */         if ((parameterMode == null) || (parameterMode.length() < 2)) {
/* 671 */           throw new IllegalArgumentException("Invalid parameter mode for element: " + elementName);
/*     */         }
/* 673 */         if (!"OUT".equals(parameterMode))
/* 674 */           wrappedParameters.add(wrapped);
View Full Code Here

/*     */       {
/* 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)
View Full Code Here

TOP

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

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.