cancel
Showing results for 
Search instead for 
Did you mean: 

How to test XML/RPC services

Highlighted
Super Contributor

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 2
Highlighted
Super Contributor

Re: How to test XML/RPC services

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
Highlighted
Super Contributor

Re: How to test XML/RPC services

Thanks Ole,
you are a life save!
New Here?
Join us and watch the welcome video:
Announcements
TechCorner Leaderboard
Compete with community members in the TechCorner Challenge and get into the Leaderboard!

Rank Participant Points Earned
1 msiadak 12
2 nmrao 8
3 HimanshuTayal 3
Top Kudoed Authors