Forum Discussion

ninjo's avatar
ninjo
New Contributor
15 years ago

SAML2.0 support in SOAPUI

I am using SOAPUI3.5-beta1 and trying to add a saml assertion to the soap request using the "Security Configurations" tab.
The SAML assertion conforms to urn:oasis:names:tc:SAML:2.0:assertion namespace.
I saw this issue in one of the old posts, wondering if it's fixed in the new releases?


When I apply the WSS to the outgoing request, I see following exception in the error logs.


Tue Dec 29 15:05:29 PST 2009:ERROR:java.lang.NumberFormatException: For input string: ""
  java.lang.NumberFormatException: For input string: ""
  at java.lang.NumberFormatException.forInputString(Unknown Source)
  at java.lang.Integer.parseInt(Unknown Source)
  at java.lang.Integer.parseInt(Unknown Source)
  at org.opensaml.SAMLAssertion.fromDOM(Unknown Source)
  at org.opensaml.SAMLAssertion.(Unknown Source)
  at com.eviware.soapui.impl.wsdl.support.wss.entries.AddSAMLEntry.process(AddSAMLEntry.java:96)
  at com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss.processOutgoing(OutgoingWss.java:157)
  at com.eviware.soapui.impl.wsdl.actions.request.ApplyOutgoingWSSToRequestAction.actionPerformed(ApplyOutgoingWSSToRequestAction.java:55)
  at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
  at javax.swing.AbstractButton.doClick(Unknown Source)
  at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
  at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
  at java.awt.Component.processMouseEvent(Unknown Source)
  at javax.swing.JComponent.processMouseEvent(Unknown Source)
  at java.awt.Component.processEvent(Unknown Source)
  at java.awt.Container.processEvent(Unknown Source)
  at java.awt.Component.dispatchEventImpl(Unknown Source)
  at java.awt.Container.dispatchEventImpl(Unknown Source)
  at java.awt.Component.dispatchEvent(Unknown Source)
  at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
  at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
  at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
  at java.awt.Container.dispatchEventImpl(Unknown Source)
  at java.awt.Component.dispatchEvent(Unknown Source)
  at java.awt.EventQueue.dispatchEvent(Unknown Source)
  at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
  at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
  at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  at java.awt.EventDispatchThread.run(Unknown Source)

3 Replies

  • ninjo's avatar
    ninjo
    New Contributor
    Hello,
    Can anyone please reply to the post, I want to know if people have run into this issue, if yes how did they resolve it.
    Thanks.
  • tali42's avatar
    tali42
    New Contributor
    Hi,

    I've been banging my head against this also. I've added my SAML to the security configurations tab of the project and when I select it in the Aut tab of the request and click send, the security header is empty when I click Submit and I see the following error displayed in the error log. Same if I right click in the XML window Outgoing WSS > Apply 'XYZ'. How can I work around this, it is very bad for me, I haven't even been able to get it to work by pasting the SAML directly in the XML window.

    I've tried installing soapUI Pro 3.5.1, copyright (C) 2007-2010 eviware.com http://www.soapui.org | http://www.eviware.com Build dist-97-2010-04-12, Build Date 2010/04/12 09:51 in the hope of fixing, but no luck.

    Fri Jul 23 19:30:26 BST 2010:ERROR:java.lang.NumberFormatException: For input string: ""
    java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at java.lang.Integer.parseInt(Unknown Source)
    at org.opensaml.SAMLAssertion.fromDOM(Unknown Source)
    at org.opensaml.SAMLAssertion.<init>(Unknown Source)
    at com.eviware.soapui.impl.wsdl.support.wss.entries.AddSAMLEntry.process(AddSAMLEntry.java:96)
    at com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss.processOutgoing(OutgoingWss.java:157)
    at com.eviware.soapui.impl.wsdl.submit.filters.WssRequestFilter.filterWsdlRequest(WssRequestFilter.java:58)
    at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:37)
    at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:31)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:132)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:122)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
  • abolourian's avatar
    abolourian
    Occasional Contributor
    I'm using soapUI 3.6.1 with SAML 2.0 and I get the same error as @ninjo. Is support for SAML 2.0 added yet?