Some of you may know me as a .NET guy. I'm a little confused as to how I can properly connect to a .NET ASMX (web method) service, using Axis.
I used the designer in Eclipse, to create the proxy code. (By this I mean that I added a Web Service Client to the project, and in the designer, I set the service definition to http://address/to/service.asmx?wsdl)
A prompt came up with my username and password, which I entered. And it generated all the proxy code for me.
So....
When I try calling the service, for example:
Vod.Oss.TV2.Microsoft.OssVodBranchWSSoap service = new Vod.Oss.TV2.Microsoft.OssVodBranchWSSoapProxy();
try {
AssetInfo[] assets = service.getAllAssetsDeployed();
for ( AssetInfo info : assets ) {
System.out.println(info.getAssetName());
}
} catch (RemoteException e) {
e.printStackTrace();
}
So when the serviec is called, i get a 401 exception. The user credentials are not being handed out as I wold have expected.
Anyone know how to make that happen?
Thanks!


Sign In
Create Account


Back to top









