Package com.eviware.soapui.impl.wsdl.support

Examples of com.eviware.soapui.impl.wsdl.support.MessageXmlObject


    {
      try
      {
        mp = new MimeMultipart();

        MessageXmlObject requestXmlObject = new MessageXmlObject( wsdlRequest.getOperation(), requestContent, true );
        MessageXmlPart[] requestParts = requestXmlObject.getMessageParts();
        for( MessageXmlPart requestPart : requestParts )
        {
          if( AttachmentUtils.prepareMessagePart( wsdlRequest, mp, requestPart, contentIds ) )
            isXOP = true;
        }
        requestContent = requestXmlObject.getMessageContent();
      }
      catch( Throwable e )
      {
        SoapUI.log.warn( "Failed to process inline/MTOM attachments; " + e );
      }
View Full Code Here


    {
      try
      {
        mp = new MimeMultipart();

        MessageXmlObject requestXmlObject = new MessageXmlObject( operation, responseContent, false );
        MessageXmlPart[] requestParts = requestXmlObject.getMessageParts();
        for( MessageXmlPart requestPart : requestParts )
        {
          if( AttachmentUtils.prepareMessagePart( this, mp, requestPart, contentIds ) )
            isXOP = true;
        }
        responseContent = requestXmlObject.getMessageContent();
      }
      catch( Exception e )
      {
        e.printStackTrace();
      }
View Full Code Here

            if (isMtomEnabled() || isInlineFilesEnabled() || getAttachmentCount() > 0) {
                try {
                    mp = new MimeMultipart();

                    WsdlOperation wsdlOperation = ((WsdlOperation) operation);
                    MessageXmlObject requestXmlObject = createMessageXmlObject(responseContent, wsdlOperation);
                    MessageXmlPart[] requestParts = requestXmlObject.getMessageParts();
                    for (MessageXmlPart requestPart : requestParts) {
                        if (prepareMessagePart(mp, contentIds, requestPart)) {
                            isXOP = true;
                        }
                    }
                    responseContent = requestXmlObject.getMessageContent();
                } catch (Exception e) {
                    SoapUI.logError(e);
                }
            }
View Full Code Here

        // preprocess only if neccessary
        if (wsdlRequest.isMtomEnabled() || wsdlRequest.isInlineFilesEnabled() || wsdlRequest.getAttachmentCount() > 0) {
            try {
                mp = new MimeMultipart();

                MessageXmlObject requestXmlObject = new MessageXmlObject(wsdlRequest.getOperation(), requestContent, true);
                MessageXmlPart[] requestParts = requestXmlObject.getMessageParts();
                for (MessageXmlPart requestPart : requestParts) {
                    if (AttachmentUtils.prepareMessagePart(wsdlRequest, mp, requestPart, contentIds)) {
                        isXOP = true;
                    }
                }
                requestContent = requestXmlObject.getMessageContent();
            } catch (Throwable e) {
                SoapUI.log.warn("Failed to process inline/MTOM attachments; " + e);
            }
        }
View Full Code Here

    public boolean prepareMessagePart(MimeMultipart mp, StringToStringMap contentIds, MessageXmlPart requestPart) throws Exception {
        return AttachmentUtils.prepareMessagePart(this, mp, requestPart, contentIds);
    }

    public MessageXmlObject createMessageXmlObject(String responseContent, WsdlOperation wsdlOperation) {
        return new MessageXmlObject(wsdlOperation, responseContent, false);
    }
View Full Code Here

    public MessageXmlObject createMessageXmlObject(String responseContent, WsdlOperation wsdlOperation) {
        try {
            MessageXmlPart onePart = mock(MessageXmlPart.class);
            MessageXmlPart[] messageXmlParts = new MessageXmlPart[]{onePart};

            MessageXmlObject messageXmlObject = mock(MessageXmlObject.class);
            when(messageXmlObject.getMessageParts()).thenReturn(messageXmlParts);
            when(messageXmlObject.getMessageContent()).thenReturn(responseContent);
            return messageXmlObject;
        } catch (Exception e) {
            throw new IllegalStateException(e);
        }
    }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.support.MessageXmlObject

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.