Forum Discussion

PriyankaP's avatar
PriyankaP
Contributor
7 years ago

Do I need to create a class for groovy script to save it in script folder?

I have created the service in ServiceV Pro. The service is running based on the dispatch style of script. Am getting the response while running in the local machine. But after deploy it into virtserver the script is not executing (as per the script I should get a response)

 

I found a solution as per the solution  the script has been moved into script folder of virtserver. and in Ready API preference also i have mentioned the folder

 

My doubt is, do i need to create class for that script so that  will it work?or  saving the script in the folder is enough?

4 Replies

  • Nastya_Khovrina's avatar
    Nastya_Khovrina
    SmartBear Alumni (Retired)

    Hi Priyanka,

     

    Placing the script in the virtserver script folder should be enough.

    • PriyankaP's avatar
      PriyankaP
      Contributor

      Thank You for your reply let me try on this

      • PriyankaP's avatar
        PriyankaP
        Contributor

        Yes it's working fine. I have created the script for reading xml file from local machine. My Actual problem was virtserver is not taking the file folder which is from local machine.

        Is that so?