Forum Discussion

ishangajera's avatar
ishangajera
Occasional Contributor
12 years ago

Unable to call WSS Web Service

Hi,

I am trying to call a WSS enabled web service in soap ui.
Service is deployed on jboss and created with jboss runtime.

The jboss WSS configuration for this service is as below::

  
<key-store-file>WEB-INF/my.keystore</key-store-file>
<key-store-password>mykeystorepass</key-store-password>
<trust-store-file>WEB-INF/my.truststore</trust-store-file>
<trust-store-password>mytruststorepass</trust-store-password>
<config>
<sign type="x509v3" alias="myalias" />
<requires>
<signature/>
</requires>
</config>


Now when I call this service from soapui, I get below mentioned response:

<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.</faultstring>
</env:Fault>
</env:Body>


On the jboss server following log is printed:

2014-01-12 17:44:23,192 ERROR [org.jboss.ws.core.jaxws.handler.HandlerChainExecutor] (http-8003-7) Exception during handler processing
org.w3c.dom.DOMException: NOT_FOUND_ERR: An attempt is made to reference a node in a context where it does not exist.
at org.apache.xerces.dom.ElementImpl.setIdAttributeNode(Unknown Source)
at org.jboss.ws.core.soap.SOAPElementImpl.setIdAttributeNode(SOAPElementImpl.java:841)
at org.apache.xml.security.keys.KeyInfo.(KeyInfo.java:141)
at org.apache.xml.security.signature.XMLSignature.(XMLSignature.java:379)
at org.apache.xml.security.signature.XMLSignature.(XMLSignature.java:326)
at org.jboss.ws.extensions.security.element.Signature.(Signature.java:57)
at org.jboss.ws.extensions.security.element.SecurityHeader.(SecurityHeader.java:85)
at org.jboss.ws.extensions.security.SecurityDecoder.decode(SecurityDecoder.java:192)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeHeader(WSSecurityDispatcher.java:131)
at org.jboss.ws.extensions.security.WSSecurityDispatcher.decodeMessage(WSSecurityDispatcher.java:100)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:90)
at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerServer.handleInbound(WSSecurityHandlerServer.java:41)


I have configured keystores and truststores in WSS Configurations and have imported the required certificates.
I have added signature in the soapui outgoing WSS configurations and tried various combinations with all the drop downs there.
But no success.

Please guide.

15 Replies