Re: problem with applet access to web service
ballo0 wrote:
so gra.CardWSService is a webservice client in applet:
try { // Call Web Service Operation
gra.CardWSService service = new gra.CardWSService();
gra.CardWS port = service.getCardWSPort();
// TODO process result here
k1 = port.getCard();
k2 = port.getCard();
} catch (Exception ex) {
// TODO handle custom exceptions here
}
CardWs is a very simple webservice,
.getCard() returns int
do you need addtiona info?
do you know how to make an applet to comunicate with webservices on
remote machines??
Not as such, no. I have never used "webservices", my only experience is with
applets communicating with servlets.
is this possible?
I would have thought so. They are meant to be able to communicate, aren't they?
The trouble with all these abstraction layers is that they get in the way of
seeing what is really going on. You need to determine which line of your code
is actually throwing the Exception. Then try to resolve what is going on behind
the scenes.
My guess would be that you are serving your applet and your webservice on
different network interfaces/hostnames, but that's wild speculation. Did you by
any chance access the applet via localhost? Try using the FQDN of the machine.
--
Nigel Wade, System Administrator, Space Plasma Physics Group,
University of Leicester, Leicester, LE1 7RH, UK
E-mail : nmw@ion.le.ac.uk
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555