Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Soapui alternative in Java?

 
Simran Singh
Greenhorn
Posts: 4
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering if we can write our own code for a web service client, which can call to any web service (same as we do in SOAP-ui).

I was told to develop a soap-ui type tool which can be embedded in any of our java based project which need a webservice client call. So that we do not have to write separate client code for every wsdl link (or every webservice), or we can say a generic java web service client??

Does any body have any idea on this or can guide me to some examples/path?
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like a huge task. What's the big deal about writing client code for a WS call? All the common SOAP stacks have tools that generate client-side code for you. Any alterations you have to make should be negligible.
 
Simran Singh
Greenhorn
Posts: 4
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ya it seems like a big task, but I just want a way to start with. Do you any link from where i can get some help for this?

You are right, writing WS Client code won't be a big task but thinking of it as a product may be we can try something...
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd start by dissecting SOAPUI - rip out everything you don't need. Even then I'd question the usefulness of your endeavour.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
TCPMON is an open source tool that is a bit simpler than SOAPui. You might look at that also.

Exactly what kind of interface are your users expecting in order to do a webservice call?

Bill
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, TCPMon is just a proxy if memory serves, so it can't originate requests, and it has no specific knowledge of SOAP or WSDL (which is, I guess, what counts here).
 
Simran Singh
Greenhorn
Posts: 4
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer is correct, TCPmon won't be able to originate request, I want something which can originate xml request and get back the xml response from the WS.

Actually we want to have a module, which can be integrated into other applications (without code modification, just specifying the wsdl link/security credentials) in order to call external web services, we just have to provide the required soap request xml and receive the xml response. Same as we do in soapui.

I am also thinking of to start with soapui... but before that I would like to discuss your valuable response, from you guys, with my team to reconsider their decision of moving ahead on this task...
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have examples of what the SOAP requests look like and:

1. No security/authentication/etc tricks are involved.

2. Generating a request simply requires inserting some values into the fixed SOAP request format so you can create a "template".

Then:

Plugging values into a template and sending the resulting XML request to the SOAP service is really really simple with the standard Java library tools.

IF on the other hand, you need to create WS-* security then you are stuck with using one of the toolkits to generate your client code.

Bill
 
Ravinderjit Singh
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can check Apache WSIF if that suits your requirement.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic