aspose file tools*
The moose likes Web Services and the fly likes SOAP Proxy - A web service tool that validate SOAP messages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "SOAP Proxy - A web service tool that validate SOAP messages" Watch "SOAP Proxy - A web service tool that validate SOAP messages" New topic
Author

SOAP Proxy - A web service tool that validate SOAP messages

Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
Hi there !

I'm french, so I apologize in advance if my english is not very "well formed" ;)

I wanted to share with you a simple tool that I have developed these days.

You know when you develope web services, you often faces problems with SOAP messages that are not valid according to the XSD schema declared in the original WSDL. For example, by default, some J2EE servers does not validate incoming SOAP requests before doing their stufs.
There are solutions to prevent these kind of problem, such as Sun's Datapower, which is a proxy that validates SOAP content. But, this kind of product is a bit expensive, and is not accessible for everybody.

The tool I developed acts as a Datapower (it does not replace it ;)), and it is called SOAP Proxy. For each web service interface you need to test, you just have to provide an URI mapping and the WSDL/XSD file that will be used to valide contents.
Then, instead of calling your web service with its target endpoint URL, you call it using the local URL of the proxy, and that's it It also has a "last results page", that shows you the lasts results of SOAP calls tansiting to it. It says for each message, request and response, the status (OK/KO), and if KO, you just have to click on the red button to know why the message validation failed. You can also display requests and responses contents.

What is actually validated ? SOAP Proxy does not validate the whole content of SOAP messages. It validates XML code inside <env:body>....</end:body> tags.
It also supports MTOM, but in a tricky way. Before validating XML content against the XSD schema, each <xop:include> declaration is replaced by a fake Binary64 String. But, the content that is send to the target endpoint (or sent back to the client) is still the original message with the <xop:include> declarations in it.

It would be great if some of you could test this tool, and give me some feebacks and bugs.

To run the tool, you need :
- a standard J2EE web server (such as tomcat, jboss, and so on) running under JDK 1.5 or upper.
- the '/var' directory on your system (or 'DISKNAME:/var' on windows) must be writable (it contains logs and configuration files).

How to install the tool ? SOAP Proxy is packaged as a standard war file. So once your server is started, just deploy the war file on it.

Soap Proxy is still a beta version, and you should not use it in production. Its purpose is only for testing and validating you web service interface !

You can find the tool on source forge at : http://sourceforge.net/projects/soap-proxy

Seeya,

Evan
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
Perhaps this topic could be moved to the "Products/Other Open Source Projects" section ;)

Any Admin to do this ?

Evan
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
Can someone move the topic please ? It's in the wrong place

Thanks in advance
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39549
    
  27
Actually, it's in the right place. This forum is used for all kinds of software announcements - we keep those out of the discussion forums.


Ping & DNS - updated with new look and Ping home screen widget
Evan Caballero
Ranch Hand

Joined: Dec 10, 2009
Posts: 59
Ok, thanks Ulf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: SOAP Proxy - A web service tool that validate SOAP messages
 
Similar Threads
validating soap response
WSDL Style?
WSDL validation using XSD
Change address location webservice
Sample Questions for 288 - Need answers