(Migrated) [Rafed Ramzi] ASK ::Send post to another server

(This message has been automatically imported from the retired mailing list)

Hi Zato,

can zato send a post to another server and authenticate which server has to
send ? or i have to create it manually ?

i mean like , lets say we got
A, B, C, D, E, and Zato

when A update thir content
A will send json to Zato and Zato will distribute them as XML to B, C, and D

but when E updating their data
E will send XML to Zato and Zato will distribute them as json to A and D,

Thank You,

On 05/12/14 16:10, Rafed Ramzi wrote:

can zato send a post to another server and authenticate which server has
to send ? or i have to create it manually ?

Hi Rafed,

please read the following material, all chapters, thoroughly.

https://zato.io/docs/tutorial/01.html
https://zato.io/docs/architecture/overview.html
https://zato.io/docs/progguide/examples/index.html
https://zato.io/docs/progguide/overview.html

Everything you need right now is in the documentation - please read it
all. This should take at least two weeks, most likely.

On 05/12/14 16:10, Rafed Ramzi wrote:

can zato send a post to another server and authenticate which server has
to send ? or i have to create it manually ?

Hi Rafed,

please read the following material, all chapters, thoroughly.

https://zato.io/docs/tutorial/01.html
https://zato.io/docs/architecture/overview.html
https://zato.io/docs/progguide/examples/index.html
https://zato.io/docs/progguide/overview.html

Everything you need right now is in the documentation - please read it
all. This should take at least two weeks, most likely.

Hi Zato,

I did read, here is my code

class MyService(Service):
def handle(self):
req = {‘r’:1, ‘l’:3}
#baca json
data = self.outgoing.plain_http.get(‘event’).conn.get(self.cid, req)
data = loads(data.text)
#self.logger.info(self.request.payload)
#self.logger.info(data)
data = dumps(data)
self.response.payload = data
write = self.outgoing.plain_http.get(‘Write test’)
write.conn.post(self.cid,data)

if i want to post to other services isn’t that mean i have to hard code it
manually?

On Sat, Dec 6, 2014 at 12:43 AM, Dariusz Suchojad dsuch@zato.io wrote:

On 05/12/14 16:10, Rafed Ramzi wrote:

can zato send a post to another server and authenticate which server has
to send ? or i have to create it manually ?

Hi Rafed,

please read the following material, all chapters, thoroughly.

https://zato.io/docs/tutorial/01.html
https://zato.io/docs/architecture/overview.html
https://zato.io/docs/progguide/examples/index.html
https://zato.io/docs/progguide/overview.html

Everything you need right now is in the documentation - please read it
all. This should take at least two weeks, most likely.