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

Examples of com.eviware.soapui.impl.wsdl.support.soap.SoapVersion


    try
    {
      // XmlObject xmlObject = XmlObject.Factory.parse(
      // messageExchange.getRequestContent() );
      XmlObject xmlObject = XmlUtils.createXmlObject( messageExchange.getRequestContent() );
      SoapVersion soapVersion = messageExchange.getOperation().getInterface().getSoapVersion();

      Element header = ( Element )SoapUtils.getHeaderElement( xmlObject, soapVersion, true ).getDomNode();
      Element faultToNode = XmlUtils.getFirstChildElementNS( header, wsaVersionNameSpace, "FaultTo" );
      Element faultRefParamsNode = XmlUtils.getFirstChildElementNS( faultToNode, wsaVersionNameSpace,
          "ReferenceParameters" );
View Full Code Here


    try
    {
      // XmlObject xmlObject = XmlObject.Factory.parse(
      // messageExchange.getResponseContent() );
      XmlObject xmlObject = XmlUtils.createXmlObject( messageExchange.getResponseContent() );
      SoapVersion soapVersion = messageExchange.getOperation().getInterface().getSoapVersion();

      Element body = ( Element )SoapUtils.getBodyElement( xmlObject, soapVersion ).getDomNode();
      Element soapenvFault = XmlUtils.getFirstChildElementNS( body, "http://schemas.xmlsoap.org/soap/envelope/",
          "Fault" );
      Element faultCode = XmlUtils.getFirstChildElement( soapenvFault, "faultcode" );
View Full Code Here

  public void actionPerformed( ActionEvent e )
  {
    try
    {
      SoapVersion soapVersion = request.getOperation().getInterface().getSoapVersion();
      String content = request.getRequestContent();
      WsaUtils wsaUtils = new WsaUtils( content, soapVersion, request.getOperation(),
          new DefaultPropertyExpansionContext( request ) );
      content = wsaUtils.addWSAddressingRequest( request );
      request.setRequestContent( content );
View Full Code Here

  {
    String responseContent = messageExchange.getResponseContent();
    try
    {
      // check manually before resource intensive xpath
      SoapVersion soapVersion = ( ( WsdlMessageExchange )messageExchange ).getOperation().getInterface()
          .getSoapVersion();
      if( SoapUtils.isSoapFault( responseContent, soapVersion ) )
        throw new AssertionException( new AssertionError( "Response is a SOAP Fault" ) );
    }
    catch( Exception e )
View Full Code Here

  public static String removeWSSOutgoing( String content, WsaContainer wsaContainer )
  {
    try
    {
      SoapVersion soapVersion = wsaContainer.getOperation().getInterface().getSoapVersion();
//      XmlObject xmlContentObject = XmlObject.Factory.parse( content );
      XmlObject xmlContentObject = XmlUtils.createXmlObject( content );
      Element header = ( Element )SoapUtils.getHeaderElement( xmlContentObject, soapVersion, true ).getDomNode();

      NodeList headerProps = XmlUtils.getChildElements( header );
View Full Code Here

  }

  public void validateWsAddressingRequest() throws AssertionException, XmlException
  {
    String content = messageExchange.getRequestContent();
    SoapVersion soapVersion = messageExchange.getOperation().getInterface().getSoapVersion();

    // XmlObject xmlObject = XmlObject.Factory.parse( content );
    XmlObject xmlObject = XmlUtils.createXmlObject( content );
    header = ( Element )SoapUtils.getHeaderElement( xmlObject, soapVersion, true ).getDomNode();
View Full Code Here

  }

  public void validateWsAddressingResponse() throws AssertionException, XmlException
  {
    String content = messageExchange.getResponseContent();
    SoapVersion soapVersion = messageExchange.getOperation().getInterface().getSoapVersion();

    // XmlObject requestXmlObject = XmlObject.Factory.parse(
    // messageExchange.getRequestContent() );
    XmlObject requestXmlObject = XmlUtils.createXmlObject( messageExchange.getRequestContent() );
    // XmlObject xmlObject = XmlObject.Factory.parse( content );
View Full Code Here

    try
    {
      long timestamp = System.currentTimeMillis();

      SoapVersion soapVersion = mockRequest.getSoapVersion();
      if( soapVersion == null )
        throw new DispatchException( "Unrecognized SOAP Version" );

      String soapAction = mockRequest.getSoapAction();
      WsdlOperation operation = null;
View Full Code Here

    this.isXOP = isXOP;
  }

  public String getContentType()
  {
    SoapVersion soapVersion = mockResponse.getSoapVersion();

    if( isXOP )
    {
      return AttachmentUtils.buildRootPartContentType( mockResponse.getMockOperation().getOperation().getName(),
          soapVersion );
    }
    else
      return soapVersion.getContentType() + "; charset=UTF-8";
  }
View Full Code Here

  public String getContentType()
  {
    try
    {
      SoapVersion soapVersion = mockResponse.getSoapVersion();

      if( isXOP )
      {
        String header = message.getHeader( "Content-Type" )[0];

        return AttachmentUtils.buildMTOMContentType( header, null, soapVersion );
      }
      else
      {
        String header = message.getHeader( "Content-Type" )[0];
        int ix = header.indexOf( "boundary" );
        return "multipart/related; type=\"" + soapVersion.getContentType() + "\"; start=\""
            + AttachmentUtils.ROOTPART_SOAPUI_ORG + "\"; " + header.substring( ix );
      }
    }
    catch( MessagingException e )
    {
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.support.soap.SoapVersion

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.