[jboss-user] [JBossWS] - JBoss ws-security client error

manasamurthy do-not-reply at jboss.com
Mon Mar 16 03:48:34 EDT 2009


When I run my web service client war, I get the below error. These are the steps I have followed:
1. Generate code using wsconsume
2. Deploy both client and server (server running locally)
3. Add jboss-wsse-client.xml appropriately
4. On the first call to the server after getting port I get the exception:

[Fatal Error] :-1:-1: Premature end of file.
2009-03-16 00:44:28,298 -0700 ERROR [org.jboss.ws.extensions.security.jaxws.WSSecurityHandler] uniqueId=ec95a826-a291-47ab-abbe-17ecd2435531 hostname=pditvm10286 requestURI=/billing/payment-request/list.url clientIP=127.0.0.1 (abc at gmail.com)       Cannot handle inbound ws-security
javax.xml.soap.SOAPException: Cannot obtain SOAPHeader from SOAPMessage
	at javax.xml.soap.SOAPMessage.getSOAPHeader(SOAPMessage.java:202)
	at org.jboss.ws.extensions.security.WSSecurityDispatcher.handleInbound(WSSecurityDispatcher.java:113)
	at org.jboss.ws.extensions.security.jaxws.WSSecurityHandler.handleInboundSecurity(WSSecurityHandler.java:78)
	at org.jboss.ws.extensions.security.jaxws.WSSecurityHandlerClient.handleInbound(WSSecurityHandlerClient.java:40)
	at org.jboss.ws.core.jaxws.handler.GenericHandler.handleMessage(GenericHandler.java:55)
	at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:295)
	at org.jboss.ws.core.jaxws.handler.HandlerChainExecutor.handleMessage(HandlerChainExecutor.java:140)
	at org.jboss.ws.core.jaxws.client.ClientImpl.callResponseHandlerChain(ClientImpl.java:168)
	at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:363)
	at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:243)
	at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
	at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
	at $Proxy304.initializeItemCatalogService(Unknown Source)

My jboss-wsse-client.xml looks like this

 <jboss-ws-security xmlns="http://www.jboss.com/ws-security/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jboss.com/ws-security/config http://www.jboss.com/ws-security/schema/jboss-ws-security_1_0.xsd">
  
    
    
  
 </jboss-ws-security>

I have ensured the server code works, by writing a standalone client with the same code and it runs fine. Am I missing anything?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218142#4218142

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218142



More information about the jboss-user mailing list