Announcement Announcement Module
Collapse
No announcement yet.
New to Spring-ws. Problem with namespace issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • New to Spring-ws. Problem with namespace issue

    I am new to spring-ws. The following are the steps I know to do a wen services in spring
    Part A
    =====
    1. Write an XSD --> Done
    2. Write an interface --> Done
    3. Write an implementation --> Done

    Part B(Spring-WS stuff)
    ================
    4. Write the web.xml --> Done
    5. Write the SPring bean configuration XML file -->>>>FAILED. The problem I am facing here is as below.
    view plaincopy to clipboardprint?

    <bean class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootQNameEndpointMapping">
    <property name="mappings">
    <props>
    <prop key="{http://www.averconsulting.com/echo/schemas}EchoRequest" //--> I am getting error at this line
    >echoEndpoint</prop>
    </props>
    </property>
    <property name="interceptors">
    <bean
    class="org.springframework.ws.server.endpoint.inte rceptor.PayloadLoggingInterceptor"
    />
    </property>
    </bean>


    I am getting error at the following line of key for the property is set

    <props>
    <prop key="{http://www.averconsulting.com/echo/schemas}EchoRequest" //--> I am getting //error at this line
    >echoEndpoint</prop>
    </props>


    Which ever site I visit they are saying that it should be same as the namespace. For a sample echo example which is existing on the net I can give this namespace mentioned by them. How about if I have a totally different schema for a different project. I am using Netbeans and Glassfish as server.I am placing my XSD in WEB-INF.
Working...
X