> after several hours spent searching on groups an answer to my question
> with no success, I decided to post it asking your wise help.
[quoted text clipped - 6 lines]
> - GetXMLFile() As String
> - GetBinaryFile() As Byte()
> I have a Java/AXIS client that can consume those methods, but without
> authentication. I want to be able to write a Java/AXIS client that
> asks for a username/password to use those webmethods. If someone know
> how to do it, please point me some tutorial or some source to me.
I think you need to make sure that the web services uses BASIC
authentication, since I doubt that Axis and/or Java support
NTLM.
Then you just need to specify that you want to keep session and
specify username & password in the client.
When I played with that many years ago with Axis 1 the client
code was:
TestService service = new TestServiceLocator();
Test tst = service.getTestService();
((Stub)tst)._setProperty(Stub.SESSION_MAINTAIN_PROPERTY, new
Boolean(true));
((Stub)tst)._setProperty(Stub.USERNAME_PROPERTY, "wsuser1");
((Stub)tst)._setProperty(Stub.PASSWORD_PROPERTY, "hemmeligt");
Arne
Filipe Marcelino - 24 Aug 2007 10:57 GMT
Hi,
sorry by the late reply but the compiler doesn't recognize:
((Stub)tst)
ty
On Aug 7, 5:11 pm, Arne Vajh?j <a...@vajhoej.dk> wrote:
> FilipeMarcelinowrote:
> > after several hours spent searching on groups an answer to my question
[quoted text clipped - 30 lines]
>
> Arne
Lew - 24 Aug 2007 14:05 GMT
> Hi,
>
> sorry by the late reply but the compiler doesn't recognize:
>
> ((Stub)tst)
Please trim your responses and do not top-post.
Did you have an import for Stub?

Signature
Lew
Arne Vajhøj - 27 Aug 2007 01:52 GMT
> sorry by the late reply but the compiler doesn't recognize:
>
> ((Stub)tst)
I think it is in javax.xml.rpc !
Arne