• Post Reply Bookmark Topic Watch Topic
  • New Topic

RPCServiceClient from client

 
Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! I have set up a Axis2 RPCServiceClient to call my webservice from a client. I need a little help with structuring this.

This is called from an Applet. There will be many calls to the webservice with different parameters and returntypes. Is there a helper pattern here on how to centerialize the calls or how do you do when calling webservices from a client?
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I understand correctly, you may be looking for a fa�ade.
Basically you create an interface that you want the applet code to call. Then the primary implementation would actually make the calls to the web service. You could make a secondary implementation for testing purposes that doesn't actually connect to the web service but responds in a predictable fashion.(Dependency Injection pattern).

Article: Understanding the Facade Pattern
Remote Fa�ade.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!