Examples of WSDLBindingOperationInput


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

         final BindingOperation srcBindingOperation, BindingInput srcBindingInput) throws WSDLException
   {
      log.trace("processBindingInput");

      List<ExtensibilityElement> extList = srcBindingInput.getExtensibilityElements();
      WSDLBindingOperationInput input = new WSDLBindingOperationInput(destBindingOperation);
      processUnknownExtensibilityElements(srcBindingInput, input);
      destBindingOperation.addInput(input);

      ReferenceCallback cb = new ReferenceCallback() {
         public QName getXmlType(String partName)
View Full Code Here

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

   protected void processOperationDOC(WSDLInterfaceOperation interfaceOperation, WSDLBindingOperation bindingOperation, OperationMetaData operation)
   {
      interfaceOperation.setStyle(Constants.URI_STYLE_DOCUMENT);

      WSDLInterfaceOperationInput input = new WSDLInterfaceOperationInput(interfaceOperation);
      WSDLBindingOperationInput bindingInput = new WSDLBindingOperationInput(bindingOperation);

      WSDLInterfaceOperationOutput output = null;
      WSDLBindingOperationOutput bindingOutput = null;

      boolean twoWay = !operation.isOneWay();
      if (twoWay)
      {
         output = new WSDLInterfaceOperationOutput(interfaceOperation);
         bindingOutput = new WSDLBindingOperationOutput(bindingOperation);

         ParameterMetaData returnParameter = operation.getReturnParameter();
         if (returnParameter != null)
         {
            QName xmlName = returnParameter.getXmlName();
            String partName = returnParameter.getPartName();
            if (returnParameter.isInHeader())
            {
               WSDLSOAPHeader header = new WSDLSOAPHeader(xmlName, partName);
               header.setIncludeInSignature(true);
               bindingOutput.addSoapHeader(header);
            }
            else
            {
               output.setElement(xmlName);
               output.setPartName(partName);
            }
            addSignatureItem(interfaceOperation, returnParameter, true);
         }

         // If there is no return parameter, it will most likely be set later with an INOUT or OUT parameter.
         // Otherwise, a null element means there is a 0 body element part, which is allowed by BP 1.0
         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
         {
View Full Code Here

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

         final BindingOperation srcBindingOperation, BindingInput srcBindingInput) throws WSDLException
   {
      log.trace("processBindingInput");

      List<ExtensibilityElement> extList = srcBindingInput.getExtensibilityElements();
      WSDLBindingOperationInput input = new WSDLBindingOperationInput(destBindingOperation);
      processUnknownExtensibilityElements(srcBindingInput, input);
      destBindingOperation.addInput(input);

      ReferenceCallback cb = new ReferenceCallback() {
         public QName getXmlType(String partName)
View Full Code Here

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

   protected void processOperationRPC(WSDLInterfaceOperation interfaceOperation, WSDLBindingOperation bindingOperation, OperationMetaData operation)
   {
      interfaceOperation.setStyle(Constants.URI_STYLE_RPC);

      WSDLInterfaceOperationInput input = new WSDLInterfaceOperationInput(interfaceOperation);
      WSDLBindingOperationInput bindingInput = new WSDLBindingOperationInput(bindingOperation);
      QName operationName = operation.getQName();
      input.setElement(operationName);

      WSDLInterfaceOperationOutput output = null;
      WSDLBindingOperationOutput bindingOutput = null;

      boolean twoWay = !operation.isOneWay();
      if (twoWay)
      {
         output = new WSDLInterfaceOperationOutput(interfaceOperation);
         bindingOutput = new WSDLBindingOperationOutput(bindingOperation);
         output.setElement(new QName(operationName.getNamespaceURI(), operationName.getLocalPart() + "Response"));

         ParameterMetaData returnParameter = operation.getReturnParameter();
         if (returnParameter != null)
         {
            QName xmlName = returnParameter.getXmlName();
            String partName = returnParameter.getPartName();
            if (returnParameter.isInHeader())
            {
               WSDLSOAPHeader header = new WSDLSOAPHeader(xmlName, partName);
               header.setIncludeInSignature(true);
               bindingOutput.addSoapHeader(header);
            }
            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
         {
View Full Code Here

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

         final BindingOperation srcBindingOperation, BindingInput srcBindingInput) throws WSDLException
   {
      log.trace("processBindingInput");

      List<ExtensibilityElement> extList = srcBindingInput.getExtensibilityElements();
      WSDLBindingOperationInput input = new WSDLBindingOperationInput(destBindingOperation);
      processUnknownExtensibilityElements(srcBindingInput, input);
      destBindingOperation.addInput(input);

      ReferenceCallback cb = new ReferenceCallback() {
         public QName getXmlType(String partName)
View Full Code Here

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

/*      */     throws WSDLException
/*      */   {
/* 1310 */     log.trace("processBindingInput");
/*      */
/* 1312 */     List extList = srcBindingInput.getExtensibilityElements();
/* 1313 */     WSDLBindingOperationInput input = new WSDLBindingOperationInput(destBindingOperation);
/* 1314 */     processUnknownExtensibilityElements(srcBindingInput, input);
/* 1315 */     destBindingOperation.addInput(input);
/*      */
/* 1317 */     ReferenceCallback cb = new ReferenceCallback(srcBindingOperation, destIntfOperation)
/*      */     {
View Full Code Here

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

/* 375 */     return outMetaData;
/*     */   }
/*     */
/*     */   private int processBindingParameters(OperationMetaData opMetaData, WSDLInterfaceOperation wsdlOperation, ServiceEndpointMethodMapping seiMethodMapping, TypeMappingImpl typeMapping, WSDLBindingOperation bindingOperation, int wsdlPosition)
/*     */   {
/* 381 */     WSDLBindingOperationInput bindingInput = bindingOperation.getInputs()[0];
/* 382 */     for (WSDLSOAPHeader header : bindingInput.getSoapHeaders())
/*     */     {
/* 384 */       QName xmlName = header.getElement();
/* 385 */       QName xmlType = lookupSchemaType(wsdlOperation, xmlName);
/* 386 */       String partName = header.getPartName();
/*     */
/* 388 */       ParameterMetaData pmd = buildInputParameter(opMetaData, wsdlOperation, seiMethodMapping, typeMapping, partName, xmlName, xmlType, wsdlPosition++, !header.isIncludeInSignature());
/*     */
/* 390 */       if (pmd != null)
/* 391 */         pmd.setInHeader(true);
/*     */     }
/* 393 */     for (WSDLMIMEPart mimePart : bindingInput.getMimeParts())
/*     */     {
/* 395 */       String partName = mimePart.getPartName();
/* 396 */       QName xmlName = new QName(partName);
/* 397 */       QName xmlType = mimePart.getXmlType();
/*     */
View Full Code Here

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

/*     */   }
/*     */
/*     */   private int processDocElement(OperationMetaData operation, WSDLInterfaceOperation wsdlOperation, WSDLBindingOperation bindingOperation, ServiceEndpointMethodMapping seiMethodMapping, TypeMappingImpl typeMapping, List<WrappedParameter> wrappedParameters, List<WrappedParameter> wrappedResponseParameters)
/*     */   {
/* 613 */     WSDLInterfaceOperationInput input = wsdlOperation.getInputs()[0];
/* 614 */     WSDLBindingOperationInput bindingInput = bindingOperation.getInputs()[0];
/*     */
/* 617 */     QName xmlName = input.getElement();
/* 618 */     QName xmlType = input.getXMLType();
/* 619 */     String javaTypeName = typeMapping.getJavaTypeName(xmlType);
/*     */
/* 621 */     TypesMetaData typesMetaData = operation.getEndpointMetaData().getServiceMetaData().getTypesMetaData();
/* 622 */     TypeMappingMetaData typeMetaData = typesMetaData.getTypeMappingByXMLType(xmlType);
/* 623 */     if (typeMetaData != null) {
/* 624 */       javaTypeName = typeMetaData.getJavaTypeName();
/*     */     }
/* 626 */     if (javaTypeName == null) {
/* 627 */       throw new WSException("Cannot obtain java type mapping for: " + xmlType);
/*     */     }
/*     */
/* 630 */     boolean isWrapped = isWrapped(seiMethodMapping, javaTypeName);
/* 631 */     operation.getEndpointMetaData().setParameterStyle(isWrapped ? SOAPBinding.ParameterStyle.WRAPPED : SOAPBinding.ParameterStyle.BARE);
/*     */
/* 633 */     ParameterMetaData inMetaData = new ParameterMetaData(operation, xmlName, xmlType, javaTypeName);
/* 634 */     operation.addParameter(inMetaData);
/*     */     int wsdlPosition;
/*     */     int wsdlPosition;
/* 637 */     if (inMetaData.getOperationMetaData().isDocumentWrapped())
/*     */     {
/* 639 */       if (seiMethodMapping == null) {
/* 640 */         throw new IllegalArgumentException("Cannot wrap parameters without SEI method mapping");
/*     */       }
/* 642 */       ServiceEndpointInterfaceMapping seiMapping = seiMethodMapping.getServiceEndpointInterfaceMapping();
/* 643 */       JavaXmlTypeMapping javaXmlTypeMapping = seiMapping.getJavaWsdlMapping().getTypeMappingForQName(xmlType);
/* 644 */       if (javaXmlTypeMapping == null) {
/* 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);
View Full Code Here

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

/*     */   protected void processOperationDOC(WSDLInterfaceOperation interfaceOperation, WSDLBindingOperation bindingOperation, OperationMetaData operation)
/*     */   {
/* 256 */     interfaceOperation.setStyle("http://www.w3.org/2004/03/wsdl/style/iri");
/*     */
/* 258 */     WSDLInterfaceOperationInput input = new WSDLInterfaceOperationInput(interfaceOperation);
/* 259 */     WSDLBindingOperationInput bindingInput = new WSDLBindingOperationInput(bindingOperation);
/*     */
/* 261 */     WSDLInterfaceOperationOutput output = null;
/* 262 */     WSDLBindingOperationOutput bindingOutput = null;
/*     */
/* 264 */     boolean twoWay = !operation.isOneWay();
/* 265 */     if (twoWay)
/*     */     {
/* 267 */       output = new WSDLInterfaceOperationOutput(interfaceOperation);
/* 268 */       bindingOutput = new WSDLBindingOperationOutput(bindingOperation);
/*     */
/* 270 */       ParameterMetaData returnParameter = operation.getReturnParameter();
/* 271 */       if (returnParameter != null)
/*     */       {
/* 273 */         QName xmlName = returnParameter.getXmlName();
/* 274 */         String partName = returnParameter.getPartName();
/* 275 */         if (returnParameter.isInHeader())
/*     */         {
/* 277 */           WSDLSOAPHeader header = new WSDLSOAPHeader(xmlName, partName);
/* 278 */           header.setIncludeInSignature(true);
/* 279 */           bindingOutput.addSoapHeader(header);
/*     */         }
/*     */         else
/*     */         {
/* 283 */           output.setElement(xmlName);
/* 284 */           output.setPartName(partName);
/*     */         }
/* 286 */         addSignatureItem(interfaceOperation, returnParameter, true);
/*     */       }
/*     */
/* 291 */       interfaceOperation.addOutput(output);
/* 292 */       bindingOperation.addOutput(bindingOutput);
/*     */     }
/*     */
/* 295 */     for (ParameterMetaData param : operation.getParameters())
/*     */     {
/* 297 */       if (param.isInHeader())
/*     */       {
/* 299 */         WSDLSOAPHeader header = new WSDLSOAPHeader(param.getXmlName(), param.getPartName());
/* 300 */         header.setIncludeInSignature(true);
/* 301 */         if (param.getMode() != ParameterMode.OUT)
/* 302 */           bindingInput.addSoapHeader(header);
/* 303 */         if ((twoWay) && (param.getMode() != ParameterMode.IN))
/* 304 */           bindingOutput.addSoapHeader(header);
/*     */       }
/*     */       else
/*     */       {
View Full Code Here

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

/*     */   protected void processOperationRPC(WSDLInterfaceOperation interfaceOperation, WSDLBindingOperation bindingOperation, OperationMetaData operation)
/*     */   {
/* 328 */     interfaceOperation.setStyle("http://www.w3.org/2004/03/wsdl/style/rpc");
/*     */
/* 330 */     WSDLInterfaceOperationInput input = new WSDLInterfaceOperationInput(interfaceOperation);
/* 331 */     WSDLBindingOperationInput bindingInput = new WSDLBindingOperationInput(bindingOperation);
/* 332 */     QName operationName = operation.getQName();
/* 333 */     input.setElement(operationName);
/*     */
/* 335 */     WSDLInterfaceOperationOutput output = null;
/* 336 */     WSDLBindingOperationOutput bindingOutput = null;
/*     */
/* 338 */     boolean twoWay = !operation.isOneWay();
/* 339 */     if (twoWay)
/*     */     {
/* 341 */       output = new WSDLInterfaceOperationOutput(interfaceOperation);
/* 342 */       bindingOutput = new WSDLBindingOperationOutput(bindingOperation);
/* 343 */       output.setElement(new QName(operationName.getNamespaceURI(), operationName.getLocalPart() + "Response"));
/*     */
/* 345 */       ParameterMetaData returnParameter = operation.getReturnParameter();
/* 346 */       if (returnParameter != null)
/*     */       {
/* 348 */         QName xmlName = returnParameter.getXmlName();
/* 349 */         String partName = returnParameter.getPartName();
/* 350 */         if (returnParameter.isInHeader())
/*     */         {
/* 352 */           WSDLSOAPHeader header = new WSDLSOAPHeader(xmlName, partName);
/* 353 */           header.setIncludeInSignature(true);
/* 354 */           bindingOutput.addSoapHeader(header);
/*     */         }
/*     */         else
/*     */         {
/* 358 */           WSDLRPCPart part = new WSDLRPCPart(returnParameter.getPartName(), returnParameter.getXmlType());
/* 359 */           output.addChildPart(part);
/*     */         }
/* 361 */         addSignatureItem(interfaceOperation, returnParameter, true);
/*     */       }
/*     */
/* 364 */       interfaceOperation.addOutput(output);
/* 365 */       bindingOperation.addOutput(bindingOutput);
/*     */     }
/*     */
/* 368 */     for (ParameterMetaData param : operation.getParameters())
/*     */     {
/* 370 */       if (param.isInHeader())
/*     */       {
/* 372 */         WSDLSOAPHeader header = new WSDLSOAPHeader(param.getXmlName(), param.getPartName());
/* 373 */         header.setIncludeInSignature(true);
/* 374 */         if (param.getMode() != ParameterMode.OUT)
/* 375 */           bindingInput.addSoapHeader(header);
/* 376 */         if ((twoWay) && (param.getMode() != ParameterMode.IN))
/* 377 */           bindingOutput.addSoapHeader(header);
/*     */       }
/*     */       else
/*     */       {
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.