Package javax.wsdl.extensions.soap12

Examples of javax.wsdl.extensions.soap12.SOAP12Fault


            if (soap11) {
                SOAPBody body = new SOAPBodyImpl();
                body.setUse("literal");
                in.addExtensibilityElement(body);
            } else {
                SOAP12Body body = new SOAP12BodyImpl();
                body.setUse("literal");
                in.addExtensibilityElement(body);
            }
            bindingOp.setBindingInput(in);
        }
        if (operation.getOutput() != null) {
            BindingOutput out = def.createBindingOutput();
            out.setName(operation.getOutput().getName());
            if (soap11) {
                SOAPBody body = new SOAPBodyImpl();
                body.setUse("literal");
                out.addExtensibilityElement(body);
            } else {
                SOAP12Body body = new SOAP12BodyImpl();
                body.setUse("literal");
                out.addExtensibilityElement(body);
            }
            bindingOp.setBindingOutput(out);
        }
        for (Iterator<?> itf = operation.getFaults().values().iterator(); itf.hasNext();) {
View Full Code Here


        BindingInput bindingInput = bindingOperation.getBindingInput();
        Assert.assertNotNull("No binding input", bindingInput);
        Assert.assertEquals("Invalid name", "Input", bindingInput.getName());
        Assert.assertEquals("Invalid amount of extensibility elements", 1,
                bindingInput.getExtensibilityElements().size());
        SOAP12Body soapBody = (SOAP12Body) bindingInput.getExtensibilityElements().get(0);
        Assert.assertEquals("Invalid soap body use", "literal", soapBody.getUse());

        BindingOutput bindingOutput = bindingOperation.getBindingOutput();
        Assert.assertNotNull("No binding output", bindingOutput);
        Assert.assertEquals("Invalid name", "Output", bindingOutput.getName());
        Assert.assertEquals("Invalid amount of extensibility elements", 1,
                bindingOutput.getExtensibilityElements().size());
        soapBody = (SOAP12Body) bindingOutput.getExtensibilityElements().get(0);
        Assert.assertEquals("Invalid soap body use", "literal", soapBody.getUse());

        BindingFault bindingFault = bindingOperation.getBindingFault("Fault");
        Assert.assertNotNull("No binding fault", bindingFault);
        Assert.assertEquals("Invalid amount of extensibility elements", 1,
                bindingFault.getExtensibilityElements().size());
View Full Code Here

          && soapBody.getUse().equalsIgnoreCase( "encoded" )
          && ( soapBody.getEncodingStyles() == null || soapBody.getEncodingStyles().contains(
              "http://schemas.xmlsoap.org/soap/encoding/" ) );
    }

    SOAP12Body soap12Body = WsdlUtils.getExtensiblityElement( bindingOutput.getExtensibilityElements(),
        SOAP12Body.class );

    if( soap12Body != null )
    {
      return soap12Body.getUse() != null
          && soap12Body.getUse().equalsIgnoreCase( "encoded" )
          && ( soap12Body.getEncodingStyle() == null || soap12Body.getEncodingStyle().equals(
              "http://schemas.xmlsoap.org/soap/encoding/" ) );
    }

    return false;
  }
View Full Code Here

      SOAPBody soapBody = WsdlUtils.getExtensiblityElement( operation.getBindingInput().getExtensibilityElements(),
          SOAPBody.class );

      if( soapBody == null || soapBody.getParts() == null )
      {
        SOAP12Body soap12Body = WsdlUtils.getExtensiblityElement( operation.getBindingInput()
            .getExtensibilityElements(), SOAP12Body.class );

        if( soap12Body == null || soap12Body.getParts() == null )
        {
          if( msg != null )
            result.addAll( msg.getOrderedParts( null ) );
        }
        else
        {
          Iterator i = soap12Body.getParts().iterator();
          while( i.hasNext() )
          {
            String partName = ( String )i.next();
            Part part = msg.getPart( partName );
View Full Code Here

      SOAPBody soapBody = WsdlUtils
          .getExtensiblityElement( bindingOutput.getExtensibilityElements(), SOAPBody.class );

      if( soapBody == null || soapBody.getParts() == null )
      {
        SOAP12Body soap12Body = WsdlUtils.getExtensiblityElement( bindingOutput.getExtensibilityElements(),
            SOAP12Body.class );

        if( soap12Body == null || soap12Body.getParts() == null )
        {
          result.addAll( msg.getOrderedParts( null ) );
        }
        else
        {
          Iterator i = soap12Body.getParts().iterator();
          while( i.hasNext() )
          {
            String partName = ( String )i.next();
            Part part = msg.getPart( partName );
View Full Code Here

  {
    SOAPBody soapBody = WsdlUtils.getExtensiblityElement( list, SOAPBody.class );
    if( soapBody != null )
      return soapBody.getNamespaceURI();

    SOAP12Body soap12Body = WsdlUtils.getExtensiblityElement( list, SOAP12Body.class );
    if( soap12Body != null )
      return soap12Body.getNamespaceURI();

    return null;
  }
View Full Code Here

            // SOAP 1.1 body element found!
            if (extElement instanceof SOAPBody) {
                SOAPBody soapBody = (SOAPBody) extElement;
                partsList = soapBody.getParts();
            } else if (extElement instanceof SOAP12Body) {
                SOAP12Body soapBody = (SOAP12Body) extElement;
                partsList = soapBody.getParts();
            } else if (extElement instanceof MIMEMultipartRelated) {
                MIMEMultipartRelated minMimeMultipartRelated = (MIMEMultipartRelated) extElement;
                List mimePartsList = minMimeMultipartRelated.getMIMEParts();
                MIMEPart mimePart = null;
                Object object;
                List mimePartElements;
                ExtensibilityElement mimePartExtensibilityElement;
                for (Iterator mimePartsIter = mimePartsList.iterator(); mimePartsIter.hasNext();) {
                    object = mimePartsIter.next();
                    if (object instanceof MIMEPart) {
                        mimePart = (MIMEPart) object;
                        mimePartElements = mimePart.getExtensibilityElements();
                        for (Iterator mimePartElementsIter = mimePartElements.iterator(); mimePartElementsIter.hasNext();)
                        {
                            mimePartExtensibilityElement = (ExtensibilityElement) mimePartElementsIter.next();
                            if (mimePartExtensibilityElement instanceof SOAPBody) {
                                SOAPBody soapBody = (SOAPBody) mimePartExtensibilityElement;
                                partsList = soapBody.getParts();
                            } else if (mimePartExtensibilityElement instanceof SOAP12Body) {
                                SOAP12Body soapBody = (SOAP12Body) mimePartExtensibilityElement;
                                partsList = soapBody.getParts();
                            }
                        }
                    }
                }
            }
View Full Code Here

            // SOAP 1.1 body element found!
            if (extElement instanceof SOAPBody) {
                SOAPBody soapBody = (SOAPBody) extElement;
                namespace = soapBody.getNamespaceURI();
            } else if (extElement instanceof SOAP12Body) {
                SOAP12Body soapBody = (SOAP12Body) extElement;
                namespace = soapBody.getNamespaceURI();
            }
        }
        return namespace;
    }
View Full Code Here

            String namespaceURI = body.getNamespaceURI();
            destBindingOperation.setNamespaceURI(namespaceURI);
         }
         else if (extElement instanceof SOAP12Body)
         {
            SOAP12Body body = (SOAP12Body)extElement;
            processEncodingStyle(body, destBindingOperation);

            String namespaceURI = body.getNamespaceURI();
            destBindingOperation.setNamespaceURI(namespaceURI);
         }
         else if (extElement instanceof SOAPHeader)
         {
            SOAPHeader header = (SOAPHeader)extElement;
View Full Code Here

            }
         }
      }
      else if (extElement instanceof SOAP12Body)
      {
         SOAP12Body body = (SOAP12Body)extElement;
         encStyle = body.getEncodingStyle();
      }

      if (encStyle != null)
      {
         String setStyle = destBindingOperation.getEncodingStyle();
View Full Code Here

TOP

Related Classes of javax.wsdl.extensions.soap12.SOAP12Fault

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.