Forum Discussion

Lyonell_165736's avatar
Lyonell_165736
Icon for Nimbostratus rankNimbostratus
Jun 02, 2015

Query SOAP Service from APM to Make Decision

Greetings all! Our organization has a challenge we're trying to engineer a solution for. I've been unsuccessful in finding the solution myself.

 

We have a self-service password reset system that requires enrollment before it gets used (you have to register answers to a list of password reset questions). We want to force all un-enrolled users to the enrollment site. The vendor provides a pretty simple SOAP service that can be queried to determine enrollment status (it returns either "enrolled:true" or "enrolled:false").

 

It should be pretty simple to do, but I can't figure out if there's a way in APM to query a SOAP service, get the result, and make a decision based on that result. Anyone have any idea if it's possible, and if so, are there any documentation resources on implementing a SOAP query from APM?

 

2 Replies

  • In order to call a service outside the APM, you would need to use an Agent Event and within the iRule that handles that event, you would need to make a sideband request to the service. You'll have to also build the entire request body manually, and parse the response manually, because it doesn't do anything for you automatically except send/receive the data you specify.

     

    In my experience this is not always reliable, and on times I use the sideband command, I'll get timeouts when calling the service (you can change the timeout values however).

     

    Hope this helps.