You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by sebastianv <se...@hotmail.com> on 2011/12/05 17:19:29 UTC

Consume a wcf service wse token in .net from java client.

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.