[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to perform the following Request-Response Messaging



Hello all,

I'm testing xmlBlaster to integrate it with Zope (http://www.zope.org). I'm developing a Zope Product to interface with xmlBlaster.

My question is the following:

A customer logged in the web. And he request a product web page. To display the price the web must ask Navision (ERP) the price. The "web" sends a message to Navision through xmlBlaster asking for the price of the product. Then Navision responds to the web with a message containing the price.

I will try it the following way:
web sends a message to the oid key "Navision.Request" with the content:

<request sender='customer-28456'>
   <question type='Product.Price'>
      GS-34M
   </question>
</request>

customer-28456 = loginName of the customer logged in the web
GS-34M = product reference

Navision reads the message with the asyncronous method get. And then Navision responds with:

<response>
   <result type='Product.Price'>
      1900
   </result>
</response>

<qos>
   <destination queryType='EXACT'>
      customer-28456
      <ForceQueuing />
   </destination>
</qos>

Navision obtains the requester from the attribute "sender" of the tag "request" and use it for the destination tag.

Anybody knows a better way to accomplish this?

Juan Carlos Coruña
jcoruna at ibdosnorte.com