This week's giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP and have Lucian Maly on-line!
See this thread for details.
Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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
 
Check your pockets for water buffalo. You might need to use this tiny ad until locate a water buffalo:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic