Forum Discussion
Jeremy_Bridges_
Nimbostratus
Jun 21, 2007EventNotification Web Service in SDK not working
In an attempt to get event notification to work correctly, I placed a copy of the SDK's example EventNotification web service on a IIS server. We only use Visual Studio 2005 here so I did convert the project to ASP.NET 2.0 before posting it. I then created a subscription pointed to the URL of the new web service and listening for EVENTTYPE_POOL_MEMBER events.
However, when I changed the status of one of the pool members, it failed to invoke the web service properly. I know this because it is designed to send an email message when it is invoked. Invoking the web service from within a Windows app works fine. Looking in the /var/log/LTM file on the BIG-IP I found the following error message:
Notification attempt to consumer id 73E66D18-1974-F119-9455-5E7A13B5C5A4 FAILED with error SOAP Fault: Server
did not recognize the value of HTTP Header SOAPAction: urn:iControl:Management/EventNotificationevents_occurred..
What should I look into? Is my web service constructed incorrectly?
- There must be something that has changed since VS.Net 2003. Try modifying the Action attribute on the events_occurred method call in the EventNotification.asmx.cs file from
[WebMethod] [System.Web.Services.Protocols.SoapRpcMethodAttribute( "urn:iControl:Management/EventNotification", RequestNamespace="urn:iControl:Management/EventNotification", ResponseNamespace="urn:iControl:Management/EventNotification", Action="urn:iControl:Management/EventNotification")] public override void events_occurred ( ManagementEventNotificationEventSource event_source, string subscription_id, ManagementEventNotificationEventData[] event_data_list, CommonTimeStamp time_stamp )
[WebMethod] [System.Web.Services.Protocols.SoapRpcMethodAttribute( "urn:iControl:Management/EventNotification", RequestNamespace="urn:iControl:Management/EventNotification", ResponseNamespace="urn:iControl:Management/EventNotification", Action="urn:iControl:Management/EventNotificationevents_occurred")] public override void events_occurred ( ManagementEventNotificationEventSource event_source, string subscription_id, ManagementEventNotificationEventData[] event_data_list, CommonTimeStamp time_stamp )
- Jeremy_Bridges_
Nimbostratus
Actually it looks like the SoapRpcMethodAttribute tag did not have an Action attribute at all. I have added your new version and I am testing now. I will let you know how it goes.
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects