cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sebastianv <sebastian_v...@hotmail.com>
Subject Consume a wcf service wse token in .net from java client.
Date Mon, 05 Dec 2011 16:19:29 GMT
hi , i  have to consume a wcf service  wse token in .net  from java client. 

I am using cxf library with eclipse ,   but i receive a SOAP error:" Object
reference not set to an instance of an object"   and i use the next code:
	        
	        Endpoint cxfEndpoint = client.getEndpoint();
	        
	        // Manual WSS4JOutInterceptor interceptor process
	        outProps.put(WSHandlerConstants.ACTION,
WSHandlerConstants.USERNAME_TOKEN );
	        
	        outProps.put(WSHandlerConstants.USER, "test");
	        

	        outProps.put(WSHandlerConstants.PASSWORD_TYPE,
WSConstants.PASSWORD_TEXT);
	      // 
outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,ClientPasswordCallback.class.getName());
	     
	     // Callback used to retrieve password for given user.
	       outProps.put(WSHandlerConstants.PW_CALLBACK_CLASS,
Test3.class.getName());
	        
	        

	        WSS4JOutInterceptor wssOut = new WSS4JOutInterceptor(outProps);
	        cxfEndpoint.getOutInterceptors().add(wssOut);      

some help will be welcome. 

--
View this message in context: http://cxf.547215.n5.nabble.com/Consume-a-wcf-service-wse-token-in-net-from-java-client-tp5049348p5049348.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Mime
View raw message