HI, i have to consume a wcf service with token security in .net from java
client with eclipse and cxf library.
the service must recive two data in the header identificador1 and
identificador2.
In my code i have first a request header
Client client = org.apache.cxf.frontend.ClientProxy.getClient(port);
List<Header> headers = new ArrayList<Header>();
try {
Header dummyHeader1=new Header(new QName("Identificador1"),
"Identificador1",
new
JAXBDataBinding(String.class));
Header dummyHeader2=new Header(new QName("Identificador2"),
"123",
new
JAXBDataBinding(String.class));
adn then i have the configuration for the token security
Map ctx = ((BindingProvider)port).getRequestContext();
ctx.put("ws-security.username","test");
ctx.put("ws-security.callback-handler", Test1.class.getName());
test1 is the class where the callback get the password.
The error is the next , I reallly i dont understand it.
javax.xml.ws.soap.SOAPFaultException: Object reference not set to an
instance of an object.
at
org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:146
is there some can help me with this.
Regarts
Sebastian
--
View this message in context:
http://cxf.547215.n5.nabble.com/Consume-webservice-error-in-request-header-tp5086333p5086333.html
Sent from the cxf-dev mailing list archive at Nabble.com.