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@xxxxxxxxxxxx
Phone : +44 (0)116 2523548, Fax : +44 (0)116 2523555
.



Relevant Pages

  • Re: CF Deployment
    ... the MSDN sample (upgrading via a WebService) is nice... ... applet would just need to be written in something other than .NET. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: problem with applet access to web service
    ... CardWs is a very simple webservice, ... do you know how to make an applet to comunicate with webservices on ... I am trying to access web service in init method, ... trying to access resources which it is not allowed to access. ...
    (comp.lang.java.help)
  • Re: How to load image file in Applet?
    ... >>I need an applet loads and displays an image which is stored on server ... > The ImageViewer class will help you display an Image in an Applet. ... webservice where the exe lives. ...
    (comp.lang.java.programmer)
  • Re: How to load image file in Applet?
    ... >>I need an applet loads and displays an image which is stored on server ... > The ImageViewer class will help you display an Image in an Applet. ... webservice where the exe lives. ...
    (comp.lang.java.help)
  • Re: How to load image file in Applet?
    ... >>I need an applet loads and displays an image which is stored on server ... > The ImageViewer class will help you display an Image in an Applet. ... webservice where the exe lives. ...
    (comp.lang.java.gui)