logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Using NuSoap with a class: msg#00069

Subject: Using NuSoap with a class
Hi,

While trying to write a SOAP server that uses a class I came across a
problem with how NuSoap determins if a function is a member of the
class.

In invoke_method the following is used

!in_array($method, get_class_methods($class))

one slight problem with this. get_class_methods returns an array of
member functions all in lower case and in_array performs a case
sensitive search, so it won't find a match.
Simple solutions is to replace $method with strtolower($method) and
everything works fine.

I've also been looking into complex types, is it possible to use the
extension and base methods to build on an existing complex type?
As in http://www.w3schools.com/schema/schema_complex.asp ??


Many Thanks,

Alan




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/


<Prev in Thread] Current Thread [Next in Thread>