Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to access a web service in Spring ?

clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web service deployed using AXIS (which hosted by Tomcat).
In my another web application I want to access the previous services.
This application built using Struts and Spring.
Well, it is obvious that there is a Struts action that will access the service but using Spring.
I checked Spring's doc about accessing web services, here is a snippet :

But there is a point I'm not sure about it, how the hell I have to know value of serviceInterface property ?
Assume I'm accessing a real service on the web ? how could I know its value ?
AFAIK, this value is not available in WSDL document ?
So ??
Posts: 14691
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The provider of the Web Service usually gives the schema, telling you which interface to use. There are sites listing some of them.
For example,
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis comes with a WSDL to Java tool that you can use to generate code to access the WS programmatically. You can use the generated interfaces in Spring.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic