Announcement Announcement Module
Collapse
No announcement yet.
EndPoint Mappings Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • EndPoint Mappings

    I'm trying to figure out the 'Spring-WS way' to solve my problem. Here's the problem: Inbound web service requests will be sent to the same endpoint and will contain a control code that will dictate the appropriate action to take. So for a straight forward example, a PersonEndpoint will receive requests with a control code of gender - Male or Female. If Male, forward the request to the MaleEndpoint; If Female, forward to the FemaleEndpoint.

    Since hundred's of control codes will be used, writing switch:case statements or if, else if, else logic doesn't seem to be the best approach. Any help/suggestions are appreciated.

  • #2
    Originally posted by jpmango View Post
    I'm trying to figure out the 'Spring-WS way' to solve my problem. Here's the problem: Inbound web service requests will be sent to the same endpoint and will contain a control code that will dictate the appropriate action to take. So for a straight forward example, a PersonEndpoint will receive requests with a control code of gender - Male or Female. If Male, forward the request to the MaleEndpoint; If Female, forward to the FemaleEndpoint.

    Since hundred's of control codes will be used, writing switch:case statements or if, else if, else logic doesn't seem to be the best approach. Any help/suggestions are appreciated.


    Hi,

    What do you mean by control code..? Will you have seperate request for male and female endpoint in your xsd ? if so we can cofigure it in bean file itself.could you explain your need once again!

    Comment


    • #3
      A control code in my industry is an indicator of action to perform. As part of the SOAP message body, the request name and a control code value will be sent. Based on this combination, I want to redirect/forward the inbound request to the proper endpoint. We will have the same request name with different, unique control codes.

      I'm looking for a Spring best practice to handle this. Would this best be accomplished through an Interceptor, MethodEndpoint or some other strategy.

      Comment


      • #4
        Originally posted by jpmango View Post
        A control code in my industry is an indicator of action to perform. As part of the SOAP message body, the request name and a control code value will be sent. Based on this combination, I want to redirect/forward the inbound request to the proper endpoint. We will have the same request name with different, unique control codes.

        I'm looking for a Spring best practice to handle this. Would this best be accomplished through an Interceptor, MethodEndpoint or some other strategy.

        Each request will be associated with an operation ie a method.Are you having a seperate Endpoint for each service class? I think you might use same endpoint for handling all services of a service class.. if so you can differentiate it by getting the operation name from the incoming soap request.

        Comment

        Working...
        X