RE: trying to use ClientProxyFactoryBean but failing

2008-03-10 Thread Daniel Lipofsky
Yes it does. That works! Thanks, Dan Willem Jiang wrote: > > Hi, > > Do your TxPortType.class has the @WebService annotation? > If so, please use the JaxWsClientFactoryBean which will take care of > this annotation to create the proxy. > Here is the code snippet. > > ClientProxyFactoryBean

Re: trying to use ClientProxyFactoryBean but failing

2008-03-10 Thread Willem Jiang
Hi, Do your TxPortType.class has the @WebService annotation? If so, please use the JaxWsClientFactoryBean which will take care of this annotation to create the proxy. Here is the code snippet. ClientProxyFactoryBean factory = new ClientProxyFactoryBean(new JaxWsClientFactoryBean()); ...

RE: trying to use ClientProxyFactoryBean but failing

2008-03-10 Thread Daniel Lipofsky
Ah, I should have though of that. It's very informative. The HTML I am getting back basically says it is a 401 error with the message "This request requires HTTP authentication". It appears the auth info in not getting transmitted. I added logging interceptors for both IN and OUT. On the outbound

Re: trying to use ClientProxyFactoryBean but failing

2008-03-10 Thread Daniel Kulp
You're getting HTML back for some reason instead of a soap message. My only suggestion would be to do: client.getInInterceptor().add(new org.apache.cxf.interceptor.LoggingInInterceptor()); and see what it prints out. The HTML might give a clue. Dan On Friday 07 March 2008, Daniel Lipofsky

RE: trying to use ClientProxyFactoryBean but failing

2008-03-07 Thread Daniel Lipofsky
username/password are not wrong because I used the same username/password for each method and the first one works. I tried the change you suggested and now I get a different error. Does this give you any more info? ClientProxyFactoryBean factory = new ClientProxyFactoryBean(); factory.setSe

Re: trying to use ClientProxyFactoryBean but failing

2008-03-07 Thread Daniel Kulp
Your error is a bit strange. It looks like it could be one of: 1) The name/password might be wrong or something and the server is re-asking you to authenticate 2) The server might be sending a redirect. You might want to put a wireshark/tcpdump trace on it to see what the server is sending