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

Examples of com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss


  {
    WssContainer wssContainer = wsdlRequest.getOperation().getInterface().getProject().getWssContainer();
    if( wssContainer == null )
      return;

    OutgoingWss outgoingWss = wssContainer.getOutgoingWssByName( wsdlRequest.getOutgoingWss() );

    DefaultEndpointStrategy des = ( DefaultEndpointStrategy )wsdlRequest.getOperation().getInterface().getProject()
        .getEndpointStrategy();
    EndpointDefaults endpointDefaults = des.getEndpointDefaults( wsdlRequest.getEndpoint() );
    if( StringUtils.hasContent( endpointDefaults.getOutgoingWss() )
        && ( outgoingWss == null || endpointDefaults.getMode() != EndpointConfig.Mode.COMPLEMENT ) )
    {
      outgoingWss = wssContainer.getOutgoingWssByName( endpointDefaults.getOutgoingWss() );
    }

    if( outgoingWss != null )
    {
      try
      {
        Document wssDocument = getWssDocument( context );
        if( !"true".equals( System.getProperty( "soapui.savewss" ) ) )
          context.setProperty( "PreWssProcessedDocument", XmlUtils.serialize( wssDocument ) );

        outgoingWss.processOutgoing( wssDocument, context );
        updateWssDocument( context, wssDocument );
      }
      catch( Exception e )
      {
        e.printStackTrace();
View Full Code Here


      return columnIndex > 0;
    }

    public Object getValueAt( int rowIndex, int columnIndex )
    {
      OutgoingWss outgoing = outgoingWss.get( rowIndex );

      switch( columnIndex )
      {
      case 0 :
        return outgoing.getName();
      case 1 :
        return outgoing.getUsername();
      case 2 :
        return outgoing.getPassword();
      case 3 :
        return outgoing.getActor();
      case 4 :
        return outgoing.getMustUnderstand();
      }

      return null;
    }
View Full Code Here

    }

    @Override
    public void setValueAt( Object aValue, int rowIndex, int columnIndex )
    {
      OutgoingWss outgoing = outgoingWss.get( rowIndex );

      switch( columnIndex )
      {
      case 1 :
        outgoing.setUsername( aValue == null ? null : aValue.toString() );
        break;
      case 2 :
        outgoing.setPassword( aValue == null ? null : aValue.toString() );
        break;
      case 3 :
        outgoing.setActor( aValue == null ? null : aValue.toString() );
        break;
      case 4 :
        outgoing.setMustUnderstand( aValue == null ? false : ( Boolean )aValue );
        break;
      }
    }
View Full Code Here

      if( StringUtils.isNullOrEmpty( outgoingWss ) )
        outgoingWss = getMockOperation().getMockService().getOutgoingWss();

      if( StringUtils.hasContent( outgoingWss ) )
      {
        OutgoingWss outgoing = getMockOperation().getMockService().getProject().getWssContainer()
            .getOutgoingWssByName( outgoingWss );
        if( outgoing != null )
        {
          Document dom = XmlUtils.parseXml( responseContent );
          outgoing.processOutgoing( dom, context );
          StringWriter writer = new StringWriter();
          XmlUtils.serialize( dom, writer );
          responseContent = writer.toString();
        }
      }
View Full Code Here

        WssContainer wssContainer = wsdlRequest.getOperation().getInterface().getProject().getWssContainer();
        if (wssContainer == null) {
            return;
        }

        OutgoingWss outgoingWss = wssContainer.getOutgoingWssByName(wsdlRequest.getOutgoingWss());

        DefaultEndpointStrategy des = (DefaultEndpointStrategy) wsdlRequest.getOperation().getInterface().getProject()
                .getEndpointStrategy();
        EndpointDefaults endpointDefaults = des.getEndpointDefaults(wsdlRequest.getEndpoint());
        if (StringUtils.hasContent(endpointDefaults.getOutgoingWss())
                && (outgoingWss == null || endpointDefaults.getMode() != EndpointConfig.Mode.COMPLEMENT)) {
            outgoingWss = wssContainer.getOutgoingWssByName(endpointDefaults.getOutgoingWss());
        }

        if (outgoingWss != null) {
            try {
                Document wssDocument = getWssDocument(context);
                if (!"true".equals(System.getProperty("soapui.savewss"))) {
                    context.setProperty("PreWssProcessedDocument", XmlUtils.serialize(wssDocument));
                }

                outgoingWss.processOutgoing(wssDocument, context);
                updateWssDocument(context, wssDocument);
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
View Full Code Here

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return columnIndex > 0;
        }

        public Object getValueAt(int rowIndex, int columnIndex) {
            OutgoingWss outgoing = outgoingWss.get(rowIndex);

            switch (columnIndex) {
                case 0:
                    return outgoing.getName();
                case 1:
                    return outgoing.getUsername();
                case 2:
                    return outgoing.getPassword();
                case 3:
                    return outgoing.getActor();
                case 4:
                    return outgoing.getMustUnderstand();
            }

            return null;
        }
View Full Code Here

            return null;
        }

        @Override
        public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
            OutgoingWss outgoing = outgoingWss.get(rowIndex);

            switch (columnIndex) {
                case 1:
                    outgoing.setUsername(aValue == null ? null : aValue.toString());
                    break;
                case 2:
                    outgoing.setPassword(aValue == null ? null : aValue.toString());
                    break;
                case 3:
                    outgoing.setActor(aValue == null ? null : aValue.toString());
                    break;
                case 4:
                    outgoing.setMustUnderstand(aValue == null ? false : (Boolean) aValue);
                    break;
            }
        }
View Full Code Here

        if (StringUtils.isNullOrEmpty(outgoingWss)) {
            outgoingWss = getMockOperation().getMockService().getOutgoingWss();
        }

        if (StringUtils.hasContent(outgoingWss)) {
            OutgoingWss outgoing = getMockOperation().getMockService().getProject().getWssContainer()
                    .getOutgoingWssByName(outgoingWss);
            if (outgoing != null) {
                Document dom = XmlUtils.parseXml(responseContent);
                outgoing.processOutgoing(dom, context);
                StringWriter writer = new StringWriter();
                XmlUtils.serialize(dom, writer);
                responseContent = writer.toString();
            }
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss

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.