Announcement Announcement Module
No announcement yet.
example of payloadmapping not using defaultEndpoint Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • example of payloadmapping not using defaultEndpoint

    Does anyone have an example of the syntax for PayloadRootQNameEndpointMapping
    if I don't want to use the defaultEndpoint syntax (or in addition to)?
    My namespace for the request is

    The below syntax doesn't seem to work for me:

    <bean id="payloadMapping"
    class=" dRootQNameEndpointMapping">
    This endpoint mapping uses the qualified name of the payload (body contents) to determine the endpoint for
    an incoming message.
    <property name="mappings">
    <prop key="{}retrieve">
    <prop key="{}update">
    <property name="defaultEndpoint" ref="topicRetrieveEndpoint" />

    <property name="interceptors">
    <ref local="validatingInterceptor"/>
    <ref local="loggingInterceptor"/>

    Thanks for any thoughts.
    ... Rich
    Last edited by farrellr; Jul 26th, 2006, 11:05 AM.

  • #2
    Hi Rich,

    you should find this information in your log file. How the request sytax is, depends on your WSDL (which i doesn't know).

    I added this log4j config line to get the Spring log messages:

    If you want to get the request message in your logfile, your need the DEBUG log-level. In my WS, it looks like this:

    DEBUG endpoint.PayloadRootQNameEndpointMapping - Looking up endpoint for [{}createObject]




    • #3

      Thanks for the feedback.
      I did figure out my mistake - the syntax of my endpoints in my
      PayloadRootQNameEndpointMapping was correct, however I wasn't expecting the variable after the } to be an input parameter but rather part of the url (which is obvious now, but wasn't when I was searching for the answer). I'm really enjoying working with spring, but the thing that bites me from time to time is that for some of this config stuff there isn't a development time validation (like there is in eclipse for a missing library etc).
      Anyway, it's working - thanks.
      ... Rich


      • #4

        you are right, configuration takes some time.
        Do you have the Spring-IDE and WebToolsPlatform for Eclipse installed? It helps a lot.
        If you use Spring2, there are XML Schemas available, which can be used instead of the DTD of Spring1. Maybe it provides a better validation.