[jboss-user] [JBossWS] - Re: Unable to create a WSClient that uses jboss-wsse-client.

noclueu2 do-not-reply at jboss.com
Tue Apr 3 10:39:37 EDT 2007


I tried changing the config files to have encrypt in them with no succes. The serve continues to work but my client does not. 

Here is the error message:

  | javax.xml.ws.soap.SOAPFaultException: javax.xml.rpc.soap.SOAPFaultException: This service requires <wsse:Security>, which is missing.
  |  at org.jboss.ws.core.jaxws.SOAPFaultHelperJAXWS.getSOAPFaultException(SOAPFaultHelperJAXWS.java:56)
  |  at org.jboss.ws.core.jaxws.binding.SOAP11BindingJAXWS.throwFaultException(SOAP11BindingJAXWS.java:111)
  |  at org.jboss.ws.core.CommonSOAPBinding.unbindResponseMessage(CommonSOAPBinding.java:460)
  |  at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:333)
  |  at org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:185)
  |  at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:163)
  |  at org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:149)
  |  at $Proxy8.pullFromHat(Unknown Source)
  |  at com.partminer.test.client.ClientTest.main(Unknown Source)
  | 

Here is the client request (Notice how there is no signing or encryption):

  | POST /MagicService/TestMagicBean?datatype=SOAPMessage HTTP/1.1
  | Authorization: Basic Y29ubmVjdGVzOnNlY3JldA==
  | SOAPAction: ""
  | Content-Type: text/xml; charset=UTF-8
  | User-Agent: Java/1.5.0_11
  | Host: localhost:8080
  | Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
  | Connection: keep-alive
  | Content-Length: 245
  | 
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><ns1:PullFromHat xmlns:ns1='http://com.test.www/test/jsr181ejb'><arg0>Java Client Test</arg0></ns1:PullFromHat></env:Body></env:Envelope>
  | 

And the server response:

  | HTTP/1.1 500 Internal Server Error
  | Server: Apache-Coyote/1.1
  | X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5
  | Content-Type: text/xml;charset=UTF-8
  | Transfer-Encoding: chunked
  | Date: Tue, 03 Apr 2007 14:31:45 GMT
  | Connection: close
  | 
  | bd
  | <env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><env:Header></env:Header><env:Body><env:Fault xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'><faultcode>env:Server
  | c
  | </faultcode>
  | 72
  | <faultstring>javax.xml.rpc.soap.SOAPFaultException: This service requires <wsse:Security>, which is missing.
  | e
  | </faultstring>
  | c
  | </env:Fault>
  | 1a
  | </env:Body></env:Envelope>
  | 0
  | 
  | 
  | 

It seems the server is doing what is expected but the client is not.

Thanks,
Richard K

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

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



More information about the jboss-user mailing list