MediaBin 4.5.3
Java 1.4
Axis 1.4
I made a web services client package using axis 1.4 and the mediabin wsdl. I then looked at the sample java apps that are included with the SDK. I then created a simple standalone java application to test the functionality and ran it out of Eclipse.
I must not be doing something correct, because it takes an awful long time even to return the mediabin server name. Also, this seems atypical to me from other web services experience to have to do the following:
((Stub) service).setUsername("domain\\user");
((Stub) service).setPassword("pass");
Why is the above needed?
I see the begin persistent connection method, but I don't see that being used in the sample java application. It seems like retrying each command takes minutes to run, like it is waiting for something.
My program is this simple:
MediaBinServerLocator locator = new MediaBinServerLocator();
try {
MediaBinServerSoap service = locator
.getMediaBinServerSoap(new URL(
"http://myserver:80/MediaBinWebService/MediaBinServer.asmx?WSDL"));
((Stub) service).setUsername("domain\\user");
((Stub) service).setPassword("pass");
System.out.println("server name = " + service.getMediaBinServerName());
} catch (Exception ex) {
System.err.println("Exception: " + ex.getMessage());
}
Is there something else that needs to be done for this basic establishment of a connection and getting information?