Examples of WSDLRPCPart


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

/* 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();
/* 451 */     if (returnParameter != null)
/*     */     {
/* 453 */       String partName = returnParameter.getName();
/* 454 */       QName xmlName = new QName(partName);
/* 455 */       QName xmlType = returnParameter.getType();
/*     */
/* 457 */       XSTypeDefinition xt = schemaModel.getTypeDefinition(xmlType.getLocalPart(), xmlType.getNamespaceURI());
/* 458 */       if ((xt instanceof XSSimpleTypeDefinition)) {
/* 459 */         xmlType = SchemaUtils.handleSimpleType((XSSimpleTypeDefinition)xt);
/*     */       }
View Full Code Here

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

/* 58 */         if (output != null) {
/* 59 */           this.returnParameter = output.getChildPart(item.getName()); continue;
/*    */         }
/*    */       }
/*    */
/* 63 */       WSDLRPCPart part = null;
/* 64 */       if (input != null)
/* 65 */         part = input.getChildPart(item.getName());
/* 66 */       if ((output != null) && (part == null)) {
/* 67 */         part = output.getChildPart(item.getName());
/*    */       }
/* 69 */       if (part != null) {
/* 70 */         this.parameters.add(part);
/*    */       }
/*    */     }
/* 73 */     for (WSDLRPCPart part : input.getChildParts())
/*    */     {
/* 75 */       if (operation.getRpcSignatureitem(part.getName()) == null) {
/* 76 */         this.parameters.add(part);
/*    */       }
/*    */     }
/* 79 */     if (output != null)
/*    */     {
/* 81 */       for (WSDLRPCPart part : output.getChildParts())
/*    */       {
/* 83 */         if (operation.getRpcSignatureitem(part.getName()) == null)
/*    */         {
/* 86 */           if (input.getChildPart(part.getName()) != null) {
/*    */             continue;
/*    */           }
/* 89 */           if (this.returnParameter == null)
/*    */           {
/* 91 */             this.returnParameter = part;
View Full Code Here

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

            else
            {
               QName xmlType = returnParameter.getXmlType();
               String ns = getNamespace(returnParameter.getJavaType(), xmlType.getNamespaceURI());
               QName newXmlType = new QName(ns, xmlType.getLocalPart());
               WSDLRPCPart part = new WSDLRPCPart(partName, newXmlType);

               output.addChildPart(part);
            }
            addSignatureItem(interfaceOperation, returnParameter, true);
         }

         interfaceOperation.addOutput(output);
         bindingOperation.addOutput(bindingOutput);
      }

      for (ParameterMetaData param : operation.getParameters())
      {
         if (param.isInHeader())
         {
            WSDLSOAPHeader header = new WSDLSOAPHeader(param.getXmlName(), param.getPartName());
            header.setIncludeInSignature(true);
            if (param.getMode() != ParameterMode.OUT)
               bindingInput.addSoapHeader(header);
            if (twoWay && param.getMode() != ParameterMode.IN)
               bindingOutput.addSoapHeader(header);
         }
         else
         {
            QName xmlType = param.getXmlType();

            String ns = getNamespace(param.getJavaType(), xmlType.getNamespaceURI());
            QName newXmlType = new QName(ns, xmlType.getLocalPart());
            WSDLRPCPart part = new WSDLRPCPart(param.getPartName(), newXmlType);
            if (param.getMode() != ParameterMode.OUT)
               input.addChildPart(part);
            if (twoWay && param.getMode() != ParameterMode.IN)
               output.addChildPart(part);
         }
View Full Code Here

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

               // This could happen on a header element, in which case the
               // binding will pick it up
               QName xmlType = srcPart.getTypeName();
               if (xmlType != null)
               {
                  rpcInput.addChildPart(new WSDLRPCPart(srcPart.getName(), destWsdl.registerQName(xmlType)));
               }
               else
               {
                  messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
               }
View Full Code Here

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

            // If we don't have a type then we aren't a valid RPC parameter
            // This could happen on a header element, in which case the
            // binding will pick it up
            QName xmlType = srcPart.getTypeName();
            if (xmlType != null)
               rpcOutput.addChildPart(new WSDLRPCPart(srcPart.getName(), destWsdl.registerQName(xmlType)));
            else messagePartToElementName(srcMessage, srcPart, destOperation, destBinding);
         }
      }

      if (Constants.URI_STYLE_RPC == destOperation.getStyle())
View Full Code Here

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

            else
            {
               QName xmlType = returnParameter.getXmlType();
               String ns = getNamespace(returnParameter.getJavaType(), xmlType.getNamespaceURI());
               QName newXmlType = new QName(ns, xmlType.getLocalPart());
               WSDLRPCPart part = new WSDLRPCPart(partName, newXmlType);

               output.addChildPart(part);
            }
            addSignatureItem(interfaceOperation, returnParameter, true);
         }

         interfaceOperation.addOutput(output);
         bindingOperation.addOutput(bindingOutput);
      }

      for (ParameterMetaData param : operation.getParameters())
      {
         if (param.isInHeader())
         {
            WSDLSOAPHeader header = new WSDLSOAPHeader(param.getXmlName(), param.getPartName());
            header.setIncludeInSignature(true);
            if (param.getMode() != ParameterMode.OUT)
               bindingInput.addSoapHeader(header);
            if (twoWay && param.getMode() != ParameterMode.IN)
               bindingOutput.addSoapHeader(header);
         }
         else
         {
            QName xmlType = param.getXmlType();

            String ns = getNamespace(param.getJavaType(), xmlType.getNamespaceURI());
            QName newXmlType = new QName(ns, xmlType.getLocalPart());
            WSDLRPCPart part = new WSDLRPCPart(param.getPartName(), newXmlType);
            if (param.getMode() != ParameterMode.OUT)
               input.addChildPart(part);
            if (twoWay && param.getMode() != ParameterMode.IN)
               output.addChildPart(part);
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.