aspose file tools*
The moose likes Web Services and the fly likes Soapui alternative in Java? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Soapui alternative in Java?" Watch "Soapui alternative in Java?" New topic
Author

Soapui alternative in Java?

Simran Singh
Greenhorn

Joined: Feb 04, 2013
Posts: 4

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
Marshal

Joined: Mar 22, 2005
Posts: 41865
    
  63
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.


Ping & DNS - my free Android networking tools app
Simran Singh
Greenhorn

Joined: Feb 04, 2013
Posts: 4

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
Marshal

Joined: Mar 22, 2005
Posts: 41865
    
  63
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

Joined: Mar 22, 2000
Posts: 12787
    
    5
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
Marshal

Joined: Mar 22, 2005
Posts: 41865
    
  63
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

Joined: Feb 04, 2013
Posts: 4

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

Joined: Mar 22, 2000
Posts: 12787
    
    5
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

Joined: Jan 13, 2010
Posts: 78
You can check Apache WSIF if that suits your requirement.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Soapui alternative in Java?