Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

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

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

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

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

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

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.

Community Member

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

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

111
Views
0
Helpful
3
Replies
CreatePlease to create content