Posted by priyatosha on September 2, 2009 at 6:08pm
Jump to:
| Project: | Services |
| Version: | 6.x-0.15 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Hugo Wetterberg |
| Status: | closed (works as designed) |
Issue Summary
There is no type casting of method's args while testing it in Service Browser. For example, if argument defined as 'int' type, it will pass as 'string' to the method (as default for textfield for form submission).
If there are few args (all optional), then omitted one before any given arg will become empty 'string' as well, regardless of their actual type. That which are omitted after any provided arg will remain null as expected.
Comments
#1
This shouldn't be a problem as PHP can use $v = "23" & $v = 23 interchangeably. I've tested some of the services that take int params in the browser, and they seem to work just fine.