cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
280
Views
0
Helpful
3
Replies

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

schemberg
Level 1
Level 1

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

3 Replies 3

Sascha Monteiro
Level 6
Level 6

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

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.

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

Getting Started

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: