Package javax.wsdl

Examples of javax.wsdl.BindingOutput


                parents,
                bo.getBindingInput().getExtensibilityElements(),
                valInfo);
              parents.remove(0);
            }
            BindingOutput boutput = bo.getBindingOutput();
            if (boutput != null)
            {
              parents.add(0, boutput);
              // extensibility elements for binding operation output
              validateExtensibilityElementList(
View Full Code Here


      {
        BindingOperation bindingOperation = (BindingOperation) ops.get(i);

        // Getting wsdl:input and wsdl:output elements of an operation
        BindingInput bindingInput = bindingOperation.getBindingInput();
        BindingOutput bindingOutput = bindingOperation.getBindingOutput();

        // Collecting all the mime:content elements from wsdl:input and wsdl:output
        List inputMimeContents = getMimeContentElements(
          bindingInput == null ? null : bindingInput.getExtensibilityElements());
        List outputMimeContents = getMimeContentElements(
          bindingOutput == null ? null : bindingOutput.getExtensibilityElements());

        // If the wsdl:input contains mime:content elements
        if (!inputMimeContents.isEmpty())
        {
          mimeContentsFound = true;
View Full Code Here

      {
        BindingOperation bindingOperation = (BindingOperation) ops.get(i);

        // Getting wsdl:input and wsdl:output elements of an operation
        BindingInput bindingInput = bindingOperation.getBindingInput();
        BindingOutput bindingOutput = bindingOperation.getBindingOutput();

        // Collecting all the mime:content elements from wsdl:input and wsdl:output
        List inputMimeContents = getMimeContentElements(
          bindingInput == null ? null : bindingInput.getExtensibilityElements());
        List outputMimeContents = getMimeContentElements(
          bindingOutput == null ? null : bindingOutput.getExtensibilityElements());

        // If the wsdl:input contains mime:content elements
        if (!inputMimeContents.isEmpty())
        {
          mimeContentsFound = true;
View Full Code Here

      {
        BindingOperation bindingOperation = (BindingOperation) ops.get(i);

        // Getting wsdl:input and wsdl:output elements of an operation
        BindingInput bindingInput = bindingOperation.getBindingInput();
        BindingOutput bindingOutput = bindingOperation.getBindingOutput();

        // Collecting all the mime:part elements from wsdl:input and wsdl:output
        List inputMimeParts = getMimeParts(
          bindingInput == null ? null : bindingInput.getExtensibilityElements());
        List outputMimeParts = getMimeParts(
          bindingOutput == null ? null : bindingOutput.getExtensibilityElements());

        // If there is a mime:part containing multiple mime:contentS
        // which reference different wsdl:partS, the assertion failed
        if (containsInvalidMimePart(inputMimeParts))
        {
View Full Code Here

      {
        BindingOperation bindingOperation = (BindingOperation) ops.get(i);

        // Getting wsdl:input and wsdl:output elements of an operation
        BindingInput bindingInput = bindingOperation.getBindingInput();
        BindingOutput bindingOutput = bindingOperation.getBindingOutput();

        // Collecting all the mime:content elements from wsdl:input and wsdl:output
        List inputMimeContents = getMimeContentElements(
          bindingInput == null ? null : bindingInput.getExtensibilityElements());
        List outputMimeContents = getMimeContentElements(
          bindingOutput == null ? null : bindingOutput.getExtensibilityElements());

        // If the wsdl:input contains mime:content elements
        if (!inputMimeContents.isEmpty())
        {
          mimeContentsFound = true;
View Full Code Here

    }

    if (portType != null)
    {
      BindingInput bindingInput = bindingOperation.getBindingInput();
      BindingOutput bindingOutput = bindingOperation.getBindingOutput();
      String inputName = (bindingInput != null
              ? (bindingInput.getName() != null ? bindingInput.getName() : Constants.NONE)
              : null);
      String outputName = (bindingOutput != null
              ? (bindingOutput.getName() != null ? bindingOutput.getName() : Constants.NONE)
              : null);
      Operation op = portType.getOperation(name, inputName, outputName);

      /*
       * If the bindingOp input or output message names are null we will search first
View Full Code Here

  protected BindingOutput parseBindingOutput(Element bindingOutputEl,
                                             Definition def)
                                               throws WSDLException
  {
    BindingOutput bindingOutput = def.createBindingOutput();

    List remainingAttrs = DOMUtils.getAttributes(bindingOutputEl);
    String name = DOMUtils.getAttribute(bindingOutputEl,
                                        Constants.ATTR_NAME,
                                        remainingAttrs);

    if (name != null)
    {
      bindingOutput.setName(name);
    }

    //register any NS decls with the Definition
    NamedNodeMap attrs = bindingOutputEl.getAttributes();
    registerNSDeclarations(attrs, def);

    Element tempEl = DOMUtils.getFirstChildElement(bindingOutputEl);

    while (tempEl != null)
    {
      if (QNameUtils.matches(Constants.Q_ELEM_DOCUMENTATION, tempEl))
      {
        bindingOutput.setDocumentationElement(tempEl);
      }
      else
      {
        bindingOutput.addExtensibilityElement(
          parseExtensibilityElement(BindingOutput.class, tempEl, def));
      }

      tempEl = DOMUtils.getNextSiblingElement(tempEl);
    }
View Full Code Here

        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);

        BindingInput bindingInput = def.createBindingInput();
        bindingInput.addExtensibilityElement(soapBody);
        bindingOperation.setBindingInput(bindingInput);
View Full Code Here

    setName( operation.getOperation().getName() );
    setBindingOperationName( operation.getName() );
    setOperationType( operation.getOperation().getStyle() );

    BindingInput bindingInput = operation.getBindingInput();
    BindingOutput bindingOutput = operation.getBindingOutput();

    setOutputName( bindingOutput != null ? bindingOutput.getName() : null );
    setInputName( bindingInput != null ? bindingInput.getName() : null );

    initAttachments( operation );
  }
View Full Code Here

      getConfig().unsetRequestParts();

    if( getConfig().isSetResponseParts() )
      getConfig().unsetResponseParts();

    BindingOutput bindingOutput = operation.getBindingOutput();
    BindingInput bindingInput = operation.getBindingInput();

    if( bindingOutput != null )
    {
      MIMEMultipartRelated multipartOutput = WsdlUtils.getExtensiblityElement(
          bindingOutput.getExtensibilityElements(), MIMEMultipartRelated.class );

      getConfig().setReceivesAttachments( multipartOutput != null );
      if( multipartOutput != null )
      {
        List<MIMEPart> parts = multipartOutput.getMIMEParts();
View Full Code Here

TOP

Related Classes of javax.wsdl.BindingOutput

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.