05-16-2007 04:44 AM - last edited on 03-25-2019 06:54 PM by ciscomoderator
Hi,
may be this is a little off-topic:
I use Java to program AXL-API.
Example: addRoutePattern. I would like to add 20 route pattern to CM.
Is there a chance to open a http-socket (once), send the route patterns and close it?
As far as my experience is, it is not. I have to build for every route pattern an SOAP-packet and it is not successfully, when I don't close the socket after every packet ...
Any ideas?
Thanks in advance
Axel
05-17-2007 11:07 AM
Hi,
I am doing the same with Java, but the CCM closes the socket, you cannot keep it open.
(not sure if you can with "normal" SOAP interfaces...)
It gives a bit of overhead, but if you do writes you should not do more than 60/min anyway.
Even with the overhead of setting up the socket, I still need to throttle my POSTs to the AXL SOAP API..I had to do 2500 routepatterns
05-21-2007 12:47 AM
2500 RPs? Geez. And I thought my couple hundred was a lot. I actually wrote my axl class lib to automatically wait 10 seconds if it gets the appropriate http repsonse.. that way I can rapid fire and the server throttles my requests.
I guess the question of whether you can keep the socket open or not comes down to what HTTP standard the server supports - it takes HTTP 1.1 to keep a socket open.
05-21-2007 12:53 AM
... we can beat 2500. We have about 60 clusters with about 60 patterns each = 3600.
One more question: Is it possible to send more than one pattern inside of one SOAP-request?
I thought "sequence" seems to be a hint, that this is possbile, but when I tried to do so, it only accepts the first pattern (:-((
Thanks in advance
Axel
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: