This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Spring-ws client with Jax-ws web service

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 577
Tomcat Server Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic