Topic
3 replies Latest Post - ‏2012-12-04T07:52:38Z by devdp
devdp
devdp
37 Posts
ACCEPTED ANSWER

Pinned topic Needed suggestion...

‏2012-11-30T06:40:12Z |
Hi,

I have three different approaches.Could you please suggest me which one is apt.
We have diiferent operations like orders,payements,markets and so on
1)Create seperate MPG's for order,reservation,market
Client will send the request in JSON format->DP(router MPG routes to respective MPG order/reservation/... and sets the backend)->DP(Order/Payment/..json to soap using MPG) and sends to provider->provider sends response back(MPG converts soap to json)-->DP(router MPG sends bacl the json message to client)
2)Client will send the request in JSON format->DP (only one MPG which does has a seperate rules for each type of operation based on the content of the request set the context var request rule,response rule and call the respective rules).The repective rules will have the conversion JSONto soap viceversa.
3)Client will send the request in JSON format->DP (router MPG setting backends)->DP(MPG does soap to json conversion and viceversa)->WSP(sends the soap to provider)

Regards,
dev
Updated on 2012-12-04T07:52:38Z at 2012-12-04T07:52:38Z by devdp
  • Daviiid
    Daviiid
    282 Posts
    ACCEPTED ANSWER

    Re: Needed suggestion...

    ‏2012-11-30T14:01:02Z  in response to devdp
    Hello

    For me it's better to split each service. This solution permit having cycle life distinct!
    • HermannSW
      HermannSW
      4238 Posts
      ACCEPTED ANSWER

      Re: Needed suggestion...

      ‏2012-12-01T23:36:06Z  in response to Daviiid
      I prefer 2) over 1), and am not sure what WSDL you want to use for 3).
      If you have such a WSDL and only need validation, you could do in MPGW as well avoiding added latency of chained service in 3).

       
      Hermann<myXsltBlog/> <myXsltTweets/>
      • devdp
        devdp
        37 Posts
        ACCEPTED ANSWER

        Re: Needed suggestion...

        ‏2012-12-04T07:52:38Z  in response to HermannSW
        Hi,

        Thanks for the suggestions Hermann and David..

        dev