Forum Discussion

rrubio's avatar
rrubio
Contributor
14 years ago

Error in deserializing body of reply message for operation 'GetList'



Hi all,

working with Test Complete 8.70 I get this error when using a new web service added to the test project



"

Error in deserializing body of reply message for operation 'GetList'
Error location:
Unit: "Omega4\Omega4.2\Script\N2_MantenimientosGRAL_URG"
Line: 3556 Column: 5.Error in deserializing body of reply message for operation 'GetList'

Error
location:

Unit: "Omega4\Omega4.2\Script\N2_MantenimientosGRAL_URG"

Line:
3556 Column: 5.

"



For webservices created previously I don't have such error.





Could anybody help me to understand the problem?



Thanks,



Raul

1 Reply

  • Hi Raul,




    To find out what happens, we need some more details:




    1. The WSDL file of the web service.




    2. The contents of the LastRequest and LastResponse properties of your WebService element after the error occurs.


    Since the error you are getting is an exception, you will need to handle it in your script. A couple of examples demonstrating how to do this:




    In VBScript:







      On Error Resume Next


      


      ' This will be your problematic call


      R = WebServices.MyService.CelsiusToFahrenheit("-15")


      


      Call Log.Message("LastRequest", WebServices.MyService.LastRequest.xml)


      Call Log.Message("LastResponse", WebServices.MyService.LastResponse.xml)  









    And in JScript:









      try


      {


        // This will be your problematic call


        var R = WebServices.MyService.CelsiusToFahrenheit("-15");


      }


      finally


      {


        Log.Message("LastRequest", WebServices.MyService.LastRequest.xml)


        Log.Message("LastResponse", WebServices.MyService.LastResponse.xml)


      }







    After the problem occurs, the code will post the property values to the Test Log - you will see the XML contents in the "Additional Information" panel.


    Send the collected information to our Support Team, and we will get back with some results.