Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
16 years ago

How to test XML/RPC services

Hello,
I needed some help in testing XML/RPC services. I am new to testing this type of service and not really sure where to start. Is this is the same as REST testing ?

All I have is a endpoint at the moment.
http://xmlrpc.tvguide.com/xmlrpc/CpsService.rem



Ali

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi!

    Yes.. do as follows:

    1) Create a new Project and select to create a RestService
    2) In the RestService dialog, specify http://xmlrpc.tvguide.com/xmlrpc/CpsService.rem as the endpoint and select to extract a REST Resource
    3) Press ok in the New Resource dialog (no parameters)
    4) In the opened request, change the method to POST and add the following to the content:


     enableXmlRpcCache
     
       
        ..
       
     



    The actual param(s) need to be in line with the defined struct, which unfortunately isn't documented at the webpage.. maybe you can get that documentation elsewhere?

    Anyway, submitting the above returns


     
         
           
               
                  faultCode
                 
                     0
                 

               

               
                  faultString
                 
                     Missing value element.
                 

               

           

         

     



    which is your first negative test! Add the request to a TestCase in the usual manor, add your assertions, etc.. and of you go!

    regards,

    /Ole
    eviware.com