Advertisement
Guest User

jeremForAmine

a guest
Jun 24th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. push to Queue :
  2. curl -u admin:admin -d "body=message" -d "TXN_REF=1" -d "REQ_SENDER=VestimaPRIME" http://localhost:8161/api/message/TEST?type=queue
  3. curl -u admin:admin -H "Content-Type: text/plain" -d "hello world $(date)" -d "TXN_REF=1" -d "REQ_SENDER=VestimaPRIME" http://localhost:8161/api/message/TEST?type=queue
  4. curl -u admin:admin -H "Content-Type: text/plain" --data-binary @test.xml -d "TXN_REF=1" -d "REQ_SENDER=VestimaPRIME" http://localhost:8161/api/message/TEST?type=queue
  5. curl -u admin:admin -d 'body=<?xml version="1.0" encoding="utf-8"?><PUR><reqTyp>PUR-TD</reqTyp><reqSender>VestimaPRIME</reqSender><reqId>1</reqId><reqFunction>NEWM</reqFunction><txnRef>1</txnRef><Date.List> <Date dateTyp="TD">2019-05-13</Date> <Date dateTyp="RSD">2019-05-15</Date></Date.List><OrderDetl> <txnTyp>SUBS</txnTyp> <sfkpngAcctId>987654321</sfkpngAcctId> <BasisOrderLeg> <commonCd>111111111</commonCd> <qty>10.555</qty> </BasisOrderLeg></OrderDetl></PUR>' -d "TXN_REF=1" -d "REQ_SENDER=VestimaPRIME" http://localhost:8161/api/message/TEST?type=queue
  6.  
  7. Read from queue :
  8. wget --user admin --password admin --save-cookies cookies.txt --load-cookies cookies.txt --keep-session-cookies http://localhost:8161/api/message/TEST?type=queue
  9. curl -o output.msg -b cookies.txt -c cookies.txt -e test.queue -XGET http://admin:admin@localhost:8161/api/message?destination=queue://TEST
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement