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

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


          .getProperty( BaseHttpRequestTransport.HTTP_METHOD );
      WsdlOperation operation = ( ( WsdlRequest )wsdlRequest ).getOperation();
      // TODO check UsingAddressing for particular endpoint when running a
      // request
      // ((WsdlRequest)wsdlRequest).getEndpoint();
      SoapVersion soapVersion = operation.getInterface().getSoapVersion();
      content = new WsaUtils( content, soapVersion, operation, context ).addWSAddressingRequest(
          ( WsdlRequest )wsdlRequest, httpMethod );
      if( content != null )
        context.setProperty( BaseHttpRequestTransport.REQUEST_CONTENT, content );
    }
View Full Code Here


          .getProperty( BaseHttpRequestTransport.HTTP_METHOD );
      WsdlOperation operation = ( ( WsdlRequest )wsdlRequest ).getOperation();
      // TODO check UsingAddressing for particular endpoint when running a
      // request
      // ((WsdlRequest)wsdlRequest).getEndpoint();
      SoapVersion soapVersion = operation.getInterface().getSoapVersion();
      String identifier = ( ( WsdlRequest )wsdlRequest ).getWsrmConfig().getSequenceIdentifier();
      long msgNumber = ( ( WsdlRequest )wsdlRequest ).getWsrmConfig().getLastMessageId();

      content = new WsrmUtils( content, soapVersion, context ).createNewWSReliableMessagingRequest(
          ( WsdlRequest )wsdlRequest, httpMethod, identifier, msgNumber, wsdlRequest.getEndpoint() );
View Full Code Here

    WsdlInterface wsdlInterface = ( WsdlInterface )wsdlRequest.getOperation().getInterface();

    // init content-type and encoding
    String encoding = System.getProperty( "soapui.request.encoding", wsdlRequest.getEncoding() );

    SoapVersion soapVersion = wsdlInterface.getSoapVersion();
    String soapAction = wsdlRequest.isSkipSoapAction() ? null : wsdlRequest.getAction();

    postMethod.setRequestHeader( "Content-Type", soapVersion.getContentTypeHttpHeader( encoding, soapAction ) );

    if( !wsdlRequest.isSkipSoapAction() )
    {
      String soapActionHeader = soapVersion.getSoapActionHeader( soapAction );
      if( soapActionHeader != null )
        postMethod.setRequestHeader( "SOAPAction", soapActionHeader );
    }
  }
View Full Code Here

      {
        wsrmMap = new HashMap<String, WsrmSequence>();
      }
      WsdlTestRequestStep requestStep = ( WsdlTestRequestStep )currentStep;
      String endpoint = requestStep.getHttpRequest().getEndpoint();
      SoapVersion soapVersion = requestStep.getOperation().getInterface().getSoapVersion();
      if( !wsrmMap.containsKey( endpoint ) )
      {

        WsrmUtils utils = new WsrmUtils( soapVersion );
        WsrmSequence sequence = utils.createSequence( endpoint, soapVersion, testCase.getWsrmVersionNamespace(),
View Full Code Here

  {
    try
    {
      if( UISupport.confirm( "Remove WS-A headers", "Remove WS-A headers" ) )
      {
        SoapVersion soapVersion = request.getOperation().getInterface().getSoapVersion();
        String content = request.getRequestContent();
        WsaUtils wsaUtils = new WsaUtils( content, soapVersion, request.getOperation(),
            new DefaultPropertyExpansionContext( request ) );
        content = wsaUtils.removeWSAddressing( request );
        request.setRequestContent( content );
View Full Code Here

  public void actionPerformed( ActionEvent e )
  {
    try
    {
      SoapVersion soapVersion = mockResponse.getOperation().getInterface().getSoapVersion();
      String content = mockResponse.getResponseContent();
      WsaUtils wsaUtils = new WsaUtils( content, soapVersion, mockResponse.getOperation(),
          new DefaultPropertyExpansionContext( mockResponse ) );
      content = wsaUtils.addWSAddressingMockResponse( mockResponse );
      mockResponse.setResponseContent( content );
View Full Code Here

  public void actionPerformed( ActionEvent e )
  {
    try
    {
      SoapVersion soapVersion = mockResponse.getOperation().getInterface().getSoapVersion();
      String content = mockResponse.getResponseContent();
      WsaUtils wsaUtils = new WsaUtils( content, soapVersion, mockResponse.getOperation(),
          new DefaultPropertyExpansionContext( mockResponse ) );
      content = wsaUtils.removeWSAddressing( mockResponse );
      mockResponse.setResponseContent( content );
View Full Code Here

      throws AssertionException
  {
    String responseContent = messageExchange.getResponseContent();
    try
    {
      SoapVersion soapVersion = ( ( WsdlMessageExchange )messageExchange ).getOperation().getInterface()
          .getSoapVersion();

      if( !SoapUtils.isSoapFault( responseContent, soapVersion ) )
        throw new AssertionException( new AssertionError( "Response is not a SOAP Fault" ) );
    }
View Full Code Here

    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 msgNode = XmlUtils.getFirstChildElementNS( header, wsaVersionNameSpace, "MessageID" );
      if( msgNode != null )
      {
View Full Code Here

    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 replyToNode = XmlUtils.getFirstChildElementNS( header, wsaVersionNameSpace, "ReplyTo" );
      Element replyRefParamsNode = XmlUtils.getFirstChildElementNS( replyToNode, wsaVersionNameSpace,
          "ReferenceParameters" );
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.