• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to access a web service in Spring ?

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi.
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 ??
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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, http://www.webservicex.net/
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic