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