This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring-ws client with Jax-ws web service

 
Turian Vlad
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Recently i needed to work with webservices. I've studied them (contract first vs. contract last) and i've:

- implemented a Spring-WS web service
- implemented a JAX-WS web service
- consumed the first one using a Spring-ws client and a normal JAX-WS client
- consumed the second one using a normal jax-ws client

I wan't now to be able to consume a JAX-WS web service from a Spring-WS client.

I assume that this is something that can be done. but i don't know how.

Do you have experience with such a thing or do you saw tutorials on it, because I didn't find any!

Thank you,
Vlad
 
Naren Chivukula
Ranch Hand
Posts: 577
Java Notepad Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Turian,
I wan't now to be able to consume a JAX-WS web service from a Spring-WS client.

Isn't this similar to what you did earlier? All you have to do is to provide provide JAX-WS web service WSDL to Spring WS client code. What problems are you getting?
 
Turian Vlad
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well this is what i have done so far:

Using the xsd generated by the jax-ws web service i've generated the required classes using the xjc command.

in the client:



my applicationContext.xml file looks like



i written also a main class to test:



The problem is that when i run the main class an error occures. i hate this error. a couple of hours have passed and i still don't know how to solve it

the stacktrace:

 
Turian Vlad
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also when the add method fires the following soap is transmitted through the wire



it appears to me that the soap message is well formed. is the xmlns="" a problem?

Thank you for your answers

Vlad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic