Forums
Hi,
Do you support using the like keyword for webservice input parameters?
When I define an input variable as like a numeric database field, the program fails compilation, as the ReqXmlGetValue() call doesn't get wrapped in a num()
"The types of the right and left hand side do not match in the EVAL operation."
Thanks,
Craig
Using like() in webservice programs
Hi Craig;
I can see you are already deep under the covers how the IceBreak SOAP pre-compiler works ... I’m impressed...
The you maybe also can figure out that this pre-compiler has no chance to know how the final definition of your variables end up since this is a job for the RPGLE compiler, which runs after the IceBreak pre-compiler.
So unfortunately, you has to "hard"-define the soap interface which again might not be to bad: This is the definition for the out-side-world, so you can use what ever data type needed out there and the map that data-type / convert it to the internal type used in RPG-land ( which can be defined by a LIKE statement) with a simple EVAL statement.
You can also use "complex-types" which is defined as external data structure - which again is physical or logical file definition.
Regards
Niels
Thanks Niels, That's as I
Thanks Niels,
That's as I expected, but I just wanted to check that I hadn't missing something.
Thanks for the clarification