[jboss-user] [JBossWS] - Re: Java Client Application using Stub with WS-Security

method_ben do-not-reply at jboss.com
Thu Nov 29 11:02:01 EST 2007


I did not find an exception in my server log file and my code (web service)doesnt contain an try/catch(WSSecurityException e) clause like you said.

I think that the exception is thrown by a referenced lib. In my classpath of my Eclipse projects (my client project and my web service project), I include all libs of jboss_folder/client and jboss_folder/lib/endorsed.

My web service class :


  | import javax.jws.WebMethod;
  | import javax.jws.WebParam;
  | import javax.jws.WebResult;
  | import javax.jws.WebService;
  | import javax.jws.soap.SOAPBinding;
  | import org.jboss.ws.annotation.EndpointConfig;
  | 
  | @WebService(targetNamespace = "rrr",serviceName = "TestService", wsdlLocation="WEB-INF/wsdl/TestService.wsdl")
  | @SOAPBinding(parameterStyle=SOAPBinding.ParameterStyle.WRAPPED, use=SOAPBinding.Use.LITERAL, style=SOAPBinding.Style.DOCUMENT)
  | @EndpointConfig(configName = "Standard WSSecurity Endpoint")
  | public class Test 
  | {
  | 	@WebMethod
  | 	@WebResult(name="result",targetNamespace="rrr")
  | 	public String allo(@WebParam(name="name", targetNamespace="rrr")String name)
  | 	{
  | 		System.out.println("Allo " + name);
  | 		return name;
  | 	}
  | 	
  | 	@WebMethod
  | 	@WebResult(name="result",targetNamespace="rrr")
  | 	public String hello(@WebParam(name="name", targetNamespace="rrr")String name)
  | 	{
  | 		System.out.println("Hello " + name);
  | 		return name;
  | 	}
  | }
  | 

Contains of my war file :

META-INF\MANIFEST.MF
WEB-INF\jboss-wsse-client.xml
WEB-INF\jboss-wsse-server.xml
WEB-INF\web.xml
WEB-INF\wsse.keystore
WEB-INF\wsse.truststore
WEB-INF\classes\com\Test.Class
WEB-INF\wsdl\TestService.wsdl

I have no idea where the exception is logged !

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

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



More information about the jboss-user mailing list