Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6643899
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:06:14+00:00 2026-05-26T00:06:14+00:00

Im using annotation driven Spring WS 2.0.2 to create a simple Webservice, but the

  • 0

Im using annotation driven Spring WS 2.0.2 to create a simple Webservice, but the enpoint mapping was not found.

Input and Output are jdom Elements to keep it as simple as possible.

The Webservice is running with Java 1.6 on Tomcat 6.0.29 wich returns an error
page (The requested Resource () is not available) to my SoapUI Service Test.

Here is the Error I get in my logging:

WARNING: No endpoint found for [SaajSoapMessage (http://foo.bar/myTest)myRequest]

Here are the parts of the configuration I deem relvant for the Endpoint mapping:
(If there are more relevant parts I am missing please ask back…)

Schema (WEB-INF/xsd/myTest.xsd)

targetNamespace="http://foo.bar/myTest"

...

<element name="myRequest" type="tns:string"/>
<element name="myResponse" type="tns:string"/>

web.xml (WEB-INF/web.xml)

<servlet-class>
org.springframework.ws.transport.http.MessageDispatcherServlet
</servlet-class>
<init-param>
  <param-name>contextConfigLocation</param-name>
  <param-value>/WEB-INF/spring/config.xml</param-value>
</init-param>
<init-param>
  <param-name>transformWsdlLocations</param-name>
  <param-value>true</param-value>
</init-param>

Spring config (/WEB-INF/spring/config.xml)

<sws:annotation-driven/>

<sws:dynamic-wsdl id="myTest"
  portTypeName="myTest"
  localUri="/"
  targetNamespace="http://foo.bar/myTest">
  <sws:xsd location="/WEB-INF/xsd/myTest.xsd"/>
</sws:dynamic-wsdl>

Endpoint (src/main/java/bar/foo/MyEndpoint.java)

@Endpoint
public class MyEndpoint{
  @PayloadRoot(localPart="myRequest",namespace="http://foo.bar/myTest")
  @ResponsePayload
  public Element mySearch( @RequestPayload Element myRequest){
     return myRequest;
  }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T00:06:15+00:00Added an answer on May 26, 2026 at 12:06 am

    Searching for a sollution I found it contained in this answer

    Adding

    ...
    xmlns:context="http://www.springframework.org/schema/context"
    ...
    xsi:schemaLocation=" ...
    http://www.springframework.org/schema/context
    http://www.springframework.org/schema/context/spring-context-3.0.xsd ... "
    
    <context:component-scan base-package="bar.foo"/>
    

    to my Spring configuration let the servlet find my Endpoint.

    My problem was, that no sample code in a spring documentation I found contained
    this step and its relevance.

    Well – actually I found this code snipplet in a tutorial earlier, but it was a bit overloaded with features I did not need, and as in the official docs it was not explained why it was necessary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Spring MVC (3.0) with annotation-driven controllers. I would like to create REST-ful
I'm using Spring and Hibernate with annotation-driven transactions. When running my application I've received
When using spring @Transcational on service layer, I will need to put <annotation driven>
I know using mvc:annotation-driven will give me that for free. But I'd like to
i am using spring annotaions with <task:annotation-driven/> @Scheduled(fixedDelay=100) public void shout(){ System.out.println(hello); } this
I have specified <mvc:annotation-driven /> in dispatcher-servlet. I am not using @InitBinder. And I
Following is my AOP xml declaration. <tx:annotation-driven proxy-target-class=true order=100 /> I am not using
I have an application using Tomcat/Spring 3/JPA/Hibernate but my merges do not commit to
I am trying to register an interceptor using a annotation-driven controller configuration. As far
I would like to specify JNDI name for an EJB3 bean using annotation, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.