This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Spring WS and SOAP UI

I wrote a contract first web service using Spring 2.5.4, Spring WS 1.5.2, deployed on WebLogic 8.1.6 under JDK 1.4.2_11. When I bring up WebLogic, I can get WSDL showing up in my browser.

I'd like to use SOAP UI 2.0.2 to generate a client and test out my service, but I'm afraid that I missed something important. I can start SOAP UI, open a new project, and point it at my WSDL. All is well, but there are no operations to test.

What did I miss? I have an XSD describing an XML stream that I'd like to send, but I can't figure out how to generate the client. Can somebody short circuit the tutorial and explain it to me? Thanks - %

Comment

No Request or Response in any of my tags, which might explain it. I just fired up SOAP UI without reading a thing. We don't need no stinkin' documentation!

Worse problems yesterday afternoon. Got everything working just fine, seeing WSDL in the browser. When I struck out with SOAP UI I started writing my own test client using Spring classes. Too bad I was using WL 8.1.6 and JDK 1.4.2_11. When I ran the client I got one of those major.minor version exceptions. I'll have to see what JARs I need to replace to get this to work.

%

Comment

Mike, Spring ws uses a naming convention to create methods in the soap wsdl, requests need to have Request in the appended to the tag name and if there is a response then there needs to be a tag with the same name appended with Response. It used to be in the documentation for the tutorial but I can't seem to find it.

Comment

I just imported some WSDL from GoogleSearch, and I can see the operations in SOAP UI. I'm going to look at their WSDL to see what is missing from mine.

My contract first approach followed the Spring WS faithfully. If I can tease out a solution to my problem, perhaps I'll offer a modification to the tutorial. I think it would be helpful to show the SOAP UI interaction at the end instead of leaving it as "...and the proof is left for the student."

Next step: persuade SOAPUI to help me with some test cases. When I right click on the SOAPUI workspace and select "Launch Test Runner", I get a dialog box with a "java.lang.NullPointerException" as the message. I must not have TestRunner configured properly. Stay tuned.