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

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
    284 Posts

    Re: Needed suggestion...

    ‏2012-11-30T14:01:02Z  
    Hello

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

    Re: Needed suggestion...

    ‏2012-12-01T23:36:06Z  
    • Daviiid
    • ‏2012-11-30T14:01:02Z
    Hello

    For me it's better to split each service. This solution permit having cycle life distinct!
    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

    Re: Needed suggestion...

    ‏2012-12-04T07:52:38Z  
    • HermannSW
    • ‏2012-12-01T23:36:06Z
    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/>
    Hi,

    Thanks for the suggestions Hermann and David..

    dev