AXL: HTTP-Socket needs to be initiated for every packet?

Unanswered Question
May 16th, 2007
User Badges:

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

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Sascha Monteiro Thu, 05/17/2007 - 11:07
User Badges:
  • Silver, 250 points or more

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

stephan.steiner Mon, 05/21/2007 - 00:47
User Badges:
  • Silver, 250 points or more

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.

schemberg Mon, 05/21/2007 - 00:53
User Badges:

... 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

Actions

This Discussion