Implemented

Ability to invoke web services with WPM

We own SAM and WPM, and currently we develop our web service monitoring with PowerShell scripts and while this works, we would like the capability to use the WPM recorder to invoke web services.

  • SAM 6.1, recently released includes Web Service monitoring for both restful API's such as JSON, and SOAP.

  • As Mustafa Topaloglu mentioned, there is a FR also for SAM and it makes more sense for SAM. If you think otherwise, I would love to hear why, how would you use it in WPM and what makes it in your eyes more suitable for WPM guys. Thanks for feedback!

  • FormerMember
    FormerMember

    Here's one way around with APM. Call the web service in C# using Visual Studio. Then invoke the Executable with a Power Shell monitor. Check the returned values for success or failure.

    class Program

        {

            static void Main(string[] args)

            {

               

                OpportunityNSA Webservice = new OpportunityNSA();

                RequestOpportunitiesResponse Lead = new RequestOpportunitiesResponse();

               

                try

                {

                    Lead = Webservice.RequestOpportunities("GRC*18355", "");

                }

               

                catch (Exception ex)

                {

                    Console.WriteLine("Statistic: 1\n");

                    Console.WriteLine("Message: Web Service Error\n");

                    Environment.Exit(1);

                }

               

            //If lead status is not 3 we have a problem

                if (Lead.Opportunities[0].LeadStatus!="3")

                    {

                    Console.WriteLine("Statistic: 1\n");

                    Console.WriteLine("Message: No Lead Status\n");

                    Environment.Exit(1);

               

                }

               

                //All is good exit that way

                Console.WriteLine("Statistic: 0\n");

                Console.WriteLine("Message: OK\n");

                Environment.Exit(0);

    Script Body in APM

    & 'e:\Web\nexus\s3\RequestOpportunities.exe'

  • I just find out there is a similar request from SAM. We need to decide which of these products to check web services like SOAP.

    JSON/SOAP monitoring

  • SoapUI is the best so far. We need similar functionality.