Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How to access an existing web service in Spring

 
clojure forum advocate
Posts: 3479
Mac Objective C Clojure
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I have a web service deployed on JBoss and I want to access it from my (another) Spring-based web application.
Spring's doc only dicusses how to expose and access a web service from the sampe app (the web service and web app are the app) and says nothing how to access a service deployed in another app.
(I have search Google and Spring forum , no answer)
If I want to access my service , what should I write in serviceInterface element ?
Snippet from JPetstore spring-based example :
<property name="serviceInterface">
<value>org.springframework.samples.jpetstore.domain.logic.OrderService</value>
</property>
This is OK since the service and the app are the app.
Any help ?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to make the service interface yourself. If you can refer to Spring In Action, chapter six talks about this. Tools like WSDL2Java (part of Apache Axis) will help you to generate java skeletons from WSDL, but I've never tried it.
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic