Re: CXF client side logging setup with spring throws NPE

2008-03-28 Thread xbranko
To answer my own question, this is a bug see: http://www.nabble.com/Created:-(CXF-1435)-BusApplicationContext-should-pass-empty-String-array-to-super-constructor-instead-of-null-td15502873.html issue . -- View this message in context: http://www.nabble.com/CXF-client-side-logging-setup-with-spri

CXF client side logging setup with spring throws NPE

2008-03-27 Thread xbranko
I am following description "Enabling message logging using the Logging feature" at http://cwiki.apache.org/CXF20DOC/configuration.html http://cwiki.apache.org/CXF20DOC/configuration.html . I'd like to be able to see the raw SOAP messages that my CXF-based client sends to the server and responses

Re: Accessing WebService that requires username/password

2008-03-07 Thread xbranko
ianroberts wrote: > > > If it's internally using the standard URL mechanism then have you tried > registering a java.net.Authenticator to supply the username and password? > > http://www.javaworld.com/javaworld/javatips/jw-javatip46.html > > Ian > > That did it! This is good in simple cas

Re: Accessing WebService that requires username/password

2008-03-06 Thread xbranko
Yes it does. I was able to use it, by using a locally cached copy (to avoid the authentication problem). Given that the auto generated code uses class javax.xml.ws.Service, during object instantiation the problem is there (see my answers to previous posts). It seems that for authenticated web ser

RE: Accessing WebService that requires username/password

2008-03-06 Thread xbranko
For me the problem is that I do not have access to the server, i.e. I have to do everything from the client side. Also javax.xml.ws.Service class does not have a default constructor, but rather only protected constructor that takes java.net.URL wsdlDocumentLocation and QName serviceName. It intern

Re: Accessing WebService that requires username/password

2008-03-06 Thread xbranko
I tried the workaround as you suggested. Here is what I have in my bean: http://www.springframework.org/schema/beans"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:sec="http://cxf.apache.org/configuration/security"; xmlns:http="http://cxf.apache.org/transports/ht

Accessing WebService that requires username/password

2008-03-05 Thread xbranko
How should a webservice that requires basic username/password for authentication be accessed? The CXF service class that is autogenerated extends the javax.xml.ws.Service class. So when the client tries to instantiate it, it fails because it gets java.io.IOException: Server returned HTTP response