Examples of IncomingWss


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

      return columnIndex > 0;
    }

    public Object getValueAt( int rowIndex, int columnIndex )
    {
      IncomingWss incoming = incomingWss.get( rowIndex );

      switch( columnIndex )
      {
      case 0 :
        return incoming.getName();
      case 1 :
        return wssContainer.getCryptoByName( incoming.getDecryptCrypto() );
      case 2 :
        return wssContainer.getCryptoByName( incoming.getSignatureCrypto() );
      case 3 :
        return incoming.getDecryptPassword();
      }

      return null;
    }
View Full Code Here

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

      {
        e.printStackTrace();
      }
    }

    IncomingWss incomingWss = wssContainer.getIncomingWssByName( wsdlRequest.getIncomingWss() );

    if( StringUtils.hasContent( endpointDefaults.getIncomingWss() )
        && ( incomingWss == null || endpointDefaults.getMode() != EndpointConfig.Mode.COMPLEMENT ) )
    {
      incomingWss = wssContainer.getIncomingWssByName( endpointDefaults.getIncomingWss() );
View Full Code Here

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

    }

    @Override
    public void setValueAt( Object aValue, int rowIndex, int columnIndex )
    {
      IncomingWss incoming = incomingWss.get( rowIndex );

      switch( columnIndex )
      {
      case 1 :
        incoming.setDecryptCrypto( aValue == null ? null : aValue.toString() );
        break;
      case 2 :
        incoming.setSignatureCrypto( aValue == null ? null : aValue.toString() );
        break;
      case 3 :
        incoming.setDecryptPassword( aValue == null ? null : aValue.toString() );
        break;
      }
    }
View Full Code Here

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

    {
      this.requestContent = readRequestContent( request );

      if( StringUtils.hasContent( context.getMockService().getIncomingWss() ) )
      {
        IncomingWss incoming = context.getMockService().getProject().getWssContainer()
            .getIncomingWssByName( context.getMockService().getIncomingWss() );
        if( incoming != null )
        {
          Document dom = XmlUtils.parseXml( requestContent );
          try
          {
            wssResult = incoming.processIncoming( dom, context );
            if( wssResult != null && wssResult.size() > 0 )
            {
              StringWriter writer = new StringWriter();
              XmlUtils.serialize( dom, writer );
              actualRequestContent = requestContent;
View Full Code Here

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

    processIncomingWss( wsdlRequest, context );
  }

  private void processIncomingWss( WsdlRequest wsdlRequest, PropertyExpansionContext context )
  {
    IncomingWss incomingWss = ( IncomingWss )context.getProperty( WssRequestFilter.INCOMING_WSS_PROPERTY );
    if( incomingWss != null )
    {
      try
      {
        Document document = XmlUtils.parseXml( getResponseContent() );
        wssResult = incomingWss.processIncoming( document, context );
        if( wssResult != null && wssResult.size() > 0 )
        {
          StringWriter writer = new StringWriter();
          XmlUtils.serialize( document, writer );
          setResponseContent( writer.toString() );
View Full Code Here

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

    }
  }

  private void processIncomingWss( AbstractHttpRequestInterface<?> wsdlRequest, PropertyExpansionContext context )
  {
    IncomingWss incomingWss = ( IncomingWss )context.getProperty( WssRequestFilter.INCOMING_WSS_PROPERTY );
    if( incomingWss != null )
    {
      try
      {
        Document document = XmlUtils.parseXml( getMmSupport().getResponseContent() );
        wssResult = incomingWss.processIncoming( document, context );
        if( wssResult != null && wssResult.size() > 0 )
        {
          StringWriter writer = new StringWriter();
          XmlUtils.serializePretty( document, writer );
          getMmSupport().setResponseContent( writer.toString() );
View Full Code Here

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

            } catch (Exception e) {
                e.printStackTrace();
            }
        }

        IncomingWss incomingWss = wssContainer.getIncomingWssByName(wsdlRequest.getIncomingWss());

        if (StringUtils.hasContent(endpointDefaults.getIncomingWss())
                && (incomingWss == null || endpointDefaults.getMode() != EndpointConfig.Mode.COMPLEMENT)) {
            incomingWss = wssContainer.getIncomingWssByName(endpointDefaults.getIncomingWss());
        }
View Full Code Here

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

    }

    private void addWSSResult(WsdlMockRunContext context, String requestContent) throws IOException {
        WsdlMockService mockService = (WsdlMockService) context.getMockService();
        if (StringUtils.hasContent(mockService.getIncomingWss())) {
            IncomingWss incoming = mockService.getProject().getWssContainer()
                    .getIncomingWssByName(mockService.getIncomingWss());
            if (incoming != null) {
                Document dom = XmlUtils.parseXml(requestContent);
                try {
                    wssResult = incoming.processIncoming(dom, context);
                    if (wssResult != null && wssResult.size() > 0) {
                        StringWriter writer = new StringWriter();
                        XmlUtils.serialize(dom, writer);
                        setActualRequestContent(requestContent);
                        super.setRequestContent(writer.toString());
View Full Code Here

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

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

        public Object getValueAt(int rowIndex, int columnIndex) {
            IncomingWss incoming = incomingWss.get(rowIndex);

            switch (columnIndex) {
                case 0:
                    return incoming.getName();
                case 1:
                    return wssContainer.getCryptoByName(incoming.getDecryptCrypto());
                case 2:
                    return wssContainer.getCryptoByName(incoming.getSignatureCrypto());
                case 3:
                    return incoming.getDecryptPassword();
            }

            return null;
        }
View Full Code Here

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

            return null;
        }

        @Override
        public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
            IncomingWss incoming = incomingWss.get(rowIndex);

            switch (columnIndex) {
                case 1:
                    incoming.setDecryptCrypto(aValue == null ? null : aValue.toString());
                    break;
                case 2:
                    incoming.setSignatureCrypto(aValue == null ? null : aValue.toString());
                    break;
                case 3:
                    incoming.setDecryptPassword(aValue == null ? null : aValue.toString());
                    break;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.