AnsweredAssumed Answered

Using ' in a string causes a problem in the Web Services v2.2 agent

Question asked by admin on Jan 29, 2013
Latest reply on Jan 29, 2013 by admin
Web Services 2.x I am using the Web services agent to do HP Service Manager automation and I am passing a string with a ‘ in it. Is this a known issue? query/string =    '1/28/2011 06:36:00' AND update.time<'1/28/2013 01:37:03' and getting the following error: +++++++++++++++++++++++++++++++++++++ Start of Runtime Exception ++++++++++++++++++++++++++++++++++++ org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 29: expecting ''', found '\n' @ line 29, column 102.    time<'1/28/2013 01:37:03''''))                                  ^ I try to escape the ‘ with a \ and that doesn’t work \'1/28/2011 06:36:03\' AND update.time<\'1/28/2013 01:37:03\' To the HP Service Manager instance to +++++++++++++++++++++++++++++++++++++ Start of Runtime Exception ++++++++++++++++++++++++++++++++++++ org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script1.groovy: 29: expecting ''', found '\n' @ line 29, column 110.    <\\'1/28/2013 01:37:03\\''''))                                  ^

Outcomes