Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning 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
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Getting SOAP Fault: No adapter for endpoint

 
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I tried to create a basic web-service using SpringWS. The web-service expects a Client element (complex type) and returns a String. I created the WSDL manually. It as as follows (clientcreation.wsdl):


I created an Endpoint class as well (ClientEndpoint.java):



However, when I send the following SOAP message:

then I get the SOAP Fault:

<faultstring xml:lang="en">No adapter for endpoint [public java.lang.String com.nitspace.springws.client.ClientEndpoint.handle ClientCreationRequest(org.jdom.Element) throws java.lang.Exception]: Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?</faultstring>

I am able to view the WSDL file by hitting the URL: http://localhost:8080/nitspace/springws/ClientCreationService/clientcreation.wsdl (once server is started and application deployed).

The Spring WS config file (spring-ws-servlet.xml):


I am unable to figure out where am I making the mistake. I believe I am making some mistake in using annotations on handleClientCreationRequest() endpoint method in ClientEndpoint.java, but I am not sure.
Please help.
Nitin
 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic