Forum Discussion
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
- Or_A_157009
Cirrus
you can trigger an apm irule event (on your apm policy).
inside the irule query the soap service, you can create new session variable with the result and than add a session variable condition based on the result.
try and use those links...
iRules.Query-LDAP-From-An-iRule-And-Or-Use-APM-With-Non-HTTP-Services
- Michael_Jenkins
Cirrostratus
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.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com