I'm using jcifs to get a secure connection from a java client to a .NET
web service on IIS.
It works just fine as long as I make the connection with
HttpURLConnection directly
When I use javax.xml.soap.SOAPConnection it works fine too (actual
implementation is org.apache.axis.soap.SOAPConnectionImpl).
But when I turn off anonymous access to the web service in IIS (ie so I
now need security) the HttpURLConnection continues to work but for the
SOAPConnection I get Access Denied.
In both cases I am using jcifs.Config.registerSmbURLHandler() and
setting the properties for my username password.
To prove the HttpURLConnection really is using security I took out the
jcifs.Config.registerSmbURLHandler() and then I get the same Access
Denied, which is what I would expect.
So, what can I do to make the SOAPConnection work with jcifs?
When I examine the java.net.URL I am passing to the
SOAPConnection.call() method it has a handler with jcifs.http.Handler
which looks right.
Thanks for any help
--
Roger
Parkinson
+64 25 238 4914
|
roger.vcf
Description: Vcard