Package com.ibm.wsdl.extensions.soap

Examples of com.ibm.wsdl.extensions.soap.SOAPBodyImpl


            if(wsPolicyRef != null)
            {
                logger.info("policy info is not null");
                bindingOutput.addExtensibilityElement(wsPolicyRef);
            }
            SOAPBodyImpl outputExtension = new SOAPBodyImpl();
            outputExtension.setUse(LITERAL);
            bindingOutput.addExtensibilityElement(outputExtension);
        }
        return bindingOutput;
    }
View Full Code Here


   * @param parents A list of parents of the SOAP body element.
   * @param valInfo The validation info for this validation.
   */
  protected void validateBody(Object element, List parents, IWSDL11ValidationInfo valInfo)
  {
    SOAPBodyImpl sb = (SOAPBodyImpl)element;

    String use = sb.getUse();

    // if the use = encoded then there must be encodingStyles.
    if (use != null && use.equalsIgnoreCase(ENCODED))
    {
      List encodingStyles = sb.getEncodingStyles();
      if (encodingStyles == null || encodingStyles.size() == 0)
      {
        valInfo.addError(messagegenerator.getString(_ERROR_INVALID_BODY_ENCODING_STYLE), sb);
      }
    }
    else if (use != null && !use.equalsIgnoreCase(LITERAL))
    {
      valInfo.addError(messagegenerator.getString(_ERROR_INVALID_BODY_USE, QUOTE + use + QUOTE), sb);
    }

    //Check that the parts are valid
    // parts must be defined in the message specified for the operation
    List parts = sb.getParts();

    if (parts != null)
    {
      Iterator partsIterator = parts.iterator();
      while (partsIterator.hasNext())
View Full Code Here

        BindingOperation bindingOperation = def.createBindingOperation();
        bindingOperation.setName(operation.getName());
        bindingOperation.setOperation(operation);

        SOAPBody soapBody = new SOAPBodyImpl();
        soapBody.setUse("literal");
        soapBody.setNamespaceURI(TNS);
        soapBody.setEncodingStyles(UtilMisc.toList("http://schemas.xmlsoap.org/soap/encoding/"));

        BindingOutput bindingOutput = def.createBindingOutput();
        bindingOutput.addExtensibilityElement(soapBody);
        bindingOperation.setBindingOutput(bindingOutput);
View Full Code Here

                boperation.setOperation(operation);

                BindingInput input = wsdlDefinition.createBindingInput();
                BindingOutput outpout = wsdlDefinition.createBindingOutput();

                SOAPBodyImpl soapBodyIn = new SOAPBodyImpl();
                soapBodyIn.setUse("literal");

                SOAPBodyImpl soapBodyOut = new SOAPBodyImpl();
                soapBodyOut.setUse("literal");

                input.addExtensibilityElement(soapBodyIn);
                outpout.addExtensibilityElement(soapBodyOut);

                /*
 
View Full Code Here

        bindingInput.setName(methodName + GFacSchemaConstants.SERVICE_REQ_MSG_SUFFIX);
        if (wsPolicyRef != null) {
            log.info("policy info is not null");
            bindingInput.addExtensibilityElement(wsPolicyRef);
        }
        SOAPBodyImpl inputExtension = new SOAPBodyImpl();
        inputExtension.setUse(LITERAL);
        bindingInput.addExtensibilityElement(inputExtension);
        return bindingInput;
    }
View Full Code Here

            bindingOutput.setName(methodName + GFacSchemaConstants.SERVICE_RESP_MSG_SUFFIX);
            if (wsPolicyRef != null) {
                log.info("policy info is not null");
                bindingOutput.addExtensibilityElement(wsPolicyRef);
            }
            SOAPBodyImpl outputExtension = new SOAPBodyImpl();
            outputExtension.setUse(LITERAL);
            bindingOutput.addExtensibilityElement(outputExtension);
        }
        return bindingOutput;
    }
View Full Code Here

        BindingOperation bindingOperation = def.createBindingOperation();
        bindingOperation.setName(operation.getName());
        bindingOperation.setOperation(operation);

        SOAPBody soapBody = new SOAPBodyImpl();
        soapBody.setUse("literal");
        soapBody.setNamespaceURI(TNS);
        soapBody.setEncodingStyles(UtilMisc.toList("http://schemas.xmlsoap.org/soap/encoding/"));

        BindingOutput bindingOutput = def.createBindingOutput();
        bindingOutput.addExtensibilityElement(soapBody);
        bindingOperation.setBindingOutput(bindingOutput);
View Full Code Here

                    bindingOperation.addExtensibilityElement(soapOperation);

                    BindingInput input = bindingOperation.getBindingInput();
                    if (input != null) {
                        input.getExtensibilityElements().clear();
                        javax.wsdl.extensions.soap.SOAPBody soapBody = new SOAPBodyImpl();
                        soapBody.setUse("literal");
                        soapBody.setNamespaceURI(getTargetNamespace());
                        input.addExtensibilityElement(soapBody);
                    }
                    BindingOutput output = bindingOperation.getBindingOutput();
                    if (output != null) {
                        output.getExtensibilityElements().clear();
                        javax.wsdl.extensions.soap.SOAPBody soapBody = new SOAPBodyImpl();
                        soapBody.setUse("literal");
                        soapBody.setNamespaceURI(getTargetNamespace());
                        output.addExtensibilityElement(soapBody);
                    }
                }
            }
View Full Code Here

        // soapOper.setStyle("rpc");

        bindingOper.addExtensibilityElement(soapOper);

        // Input SOAP Body
        SOAPBody soapBodyIn = new SOAPBodyImpl();
        // for now, if its document, it literal use.
        if (mode == MODE_RPC) {
            soapBodyIn.setUse("encoded");
            soapBodyIn.setEncodingStyles(encodingList);
        } else {
            soapBodyIn.setUse("literal");
        }
        if (targetService == null)
            soapBodyIn.setNamespaceURI(intfNS);
        else
            soapBodyIn.setNamespaceURI(targetService);
        QName operQName = desc.getElementQName();
        if (operQName != null) {
            soapBodyIn.setNamespaceURI(operQName.getLocalPart());
        }
        soapBodyIn.setEncodingStyles(encodingList);
        bindingInput.addExtensibilityElement(soapBodyIn);

        // Output SOAP Body
        SOAPBody soapBodyOut = new SOAPBodyImpl();
        // for now, if its document, it literal use.
        if (mode == MODE_RPC) {
            soapBodyOut.setUse("encoded");
            soapBodyOut.setEncodingStyles(encodingList);
        } else {
            soapBodyOut.setUse("literal");
        }
        if (targetService == null)
            soapBodyOut.setNamespaceURI(intfNS);
        else
            soapBodyOut.setNamespaceURI(targetService);
        QName retQName = desc.getReturnQName();
        if (retQName != null) {
            soapBodyOut.setNamespaceURI(retQName.getLocalPart());
        }
        bindingOutput.addExtensibilityElement(soapBodyOut);

        bindingOper.setBindingInput(bindingInput);
        bindingOper.setBindingOutput(bindingOutput);
View Full Code Here

        BindingOperation bindingOperation = def.createBindingOperation();
        bindingOperation.setName(operation.getName());
        bindingOperation.setOperation(operation);

        SOAPBody soapBody = new SOAPBodyImpl();
        soapBody.setUse("literal");
        soapBody.setNamespaceURI(TNS);
        soapBody.setEncodingStyles(UtilMisc.toList("http://schemas.xmlsoap.org/soap/encoding/"));

        BindingOutput bindingOutput = def.createBindingOutput();
        bindingOutput.addExtensibilityElement(soapBody);
        bindingOperation.setBindingOutput(bindingOutput);
View Full Code Here

TOP

Related Classes of com.ibm.wsdl.extensions.soap.SOAPBodyImpl

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.