PHP Classes

How to assign an integer type parameter?

Recommend this page to a friend!

      Soap Discovery  >  All threads  >  How to assign an integer type parameter?  >  (Un) Subscribe thread alerts  
Subject:How to assign an integer type parameter?
Summary:Type information and reflection
Messages:2
Author:Frank Loizzi
Date:2006-11-14 14:10:11
Update:2009-05-20 15:48:09
 

  1. How to assign an integer type parameter?   Reply   Report abuse  
Picture of Frank Loizzi Frank Loizzi - 2006-11-14 14:10:11
Hello,

how to assign a method parameter an integer data type? When the SoapDiscovery class inspects my class which should have an method parameter with type of int, only string types are recognized. I know that the only type in PHP is string, but how is it possible to reflect the demanded type?

Thanks for help in advance...

Frank Loizzi

  2. Re: How to assign an integer type parameter?   Reply   Report abuse  
Picture of Braulio José Solano Rojas Braulio José Solano Rojas - 2009-05-20 15:48:09 - In reply to message 1 from Frank Loizzi
Hi.

I am sorry I have seen until now this thread. I have added some lines of code to the SoapDiscovery class to make it take into account the documentation for the methods, if you add @param into the doc or @return into the doc, the type will be set accordingly in the WSDL.

The types string, boolean, int, integer, float y double are accepted.