• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Webservice Client Implementation?  RSS feed

 
Nate Leech
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am creating a web service client in Java that hits a WSDL with a very long list of methods. I have an idea with what I can do to implement it, but it seems there should be a cleaner more Object Oriented way of doing it.

I used WSDL2Java in Axis to get the serviceStub and serviceLocator and here is an example of what I am currently doing in the client.



The other methods would be implemented in much the same way. Although this might work, I was hoping there would be a more dynamic way to implement this to avoid a bunch of methods with the same names and ALMOST the same parameter list that just return the webservice methods.

Can anyone help me with this? I'm trying to become a bit more "elegant" in my coding and figured this would be the best place to ask!

Thanks, and please let me know if I need to elaborate.

-Nate
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!