Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it possible to expose the hole api as the web service  RSS feed

 
pattabi kubendren
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the custom api for my project developed by java and i have the requirement to access the .net or c# client .
So i need to expose the hole api as the web service. I tried in axis2 i can only expose one class and dependent class
methods not able to access. And my api make use of vector,hashtable and class type as the argument as well as the return type.

Any one can please explain how to expose the api as the service or what is the alternative.

Thanks in advance...
 
Kumar Raja
Ranch Hand
Posts: 548
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, one option which I think of here to make the whole API is to use some sort of business delegate kind of pattern, which I think is similar to Broker pattern. You can use the whole bunch of operations in one service class with several operations and delegate them to the individual business logic classes based on the request you receive. Would not this be a good idea ?
 
pattabi kubendren
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi kumar,

Thanks for your suggestion. But according to your way, I need to create one class and put all the methods that is required for the client.
But my api contains lots of classes and methods .Many methods make use of other class methods. As the result i need to modify my codes in many places.
So when we release the next version of the api once again i need to modify.

I m looking for with out any manual changes need to expose the api as web service.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to make everything available publicly with minimal effort, and are set on using Java datatypes such as Vector and Hashtable, then RMI may be a better solution than web services.
 
pattabi kubendren
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Thanks . I ll try on using RMI.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!