Re: AW: trying to use ClientProxyFactoryBean but failing

2008-03-11 Thread h.stolzenberg
:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 01:00 An: cxf-user@incubator.apache.org Betreff: trying to use ClientProxyFactoryBean but failing Can anyone tell me why the first form works but the second doesn't? I am trying to start using the factory stuff but it is failing. What am I doing

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

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 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 factory

AW: trying to use ClientProxyFactoryBean but failing

2008-03-07 Thread Holger Stolzenberg
:00 An: cxf-user@incubator.apache.org Betreff: trying to use ClientProxyFactoryBean but failing Can anyone tell me why the first form works but the second doesn't? I am trying to start using the factory stuff but it is failing. What am I doing wrong? Works: TxService txService = new TxService

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

Re: AW: trying to use ClientProxyFactoryBean but failing

2008-03-07 Thread Daniel Kulp
of the CXF crew can have a look at it ;-) Thanks in advance -Ursprüngliche Nachricht- Von: Daniel Lipofsky [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 7. März 2008 01:00 An: cxf-user@incubator.apache.org Betreff: trying to use ClientProxyFactoryBean but failing Can anyone tell me

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();

trying to use ClientProxyFactoryBean but failing

2008-03-06 Thread Daniel Lipofsky
Can anyone tell me why the first form works but the second doesn't? I am trying to start using the factory stuff but it is failing. What am I doing wrong? Works: TxService txService = new TxService(); TxPortType txPort = txService.getTxPort(); MapString, Object context = ((BindingProvider)