...

View Full Version : SoapServer entry points (Zend Cert)



crmpicco
06-24-2010, 09:11 PM
Hi all,

I have came across this question in m Zend Certification study:

Q: Which of the following can be registered as entry points with a SoapServer instance (choose 3).

a) a single function
b) a single method from a class
c) multiple functions at once
d) all methods from a class
e) all classes defined in a script

I think a big problem here is that I don't understand the question, it's not clear at all. Can anyone assist?

BR,
Picco

Fou-Lu
06-24-2010, 09:28 PM
That is a badly worded one.
I'm assuming this is referring to the addFunction, setClass / setObject.
That said, in combination with requiring 3 options, I'd say the three its looking for are: a, c, d. I know you can do 1 or more functions, or all methods from a single class. I'm quite certain you cannot do multiple classes (so no e for sure), and I don't believe you can export a single class method since it wouldn't have a context to go with it (so no b).

Thats a tester, someone if you could....

crmpicco
06-24-2010, 10:13 PM
Hmmm, i'm still not sure what is being asked here. I had a look at the documentation for SoapServer and can see the three methods that you listed:

http://www.php.net/manual/en/soapserver.addfunction.php
http://www.php.net/manual/en/soapserver.setclass.php
http://www.php.net/manual/en/soapserver.setobject.php

What i'm trying to understand is what does it mean by entry points? Is that the way it can be used/instantiated?

Fou-Lu
06-24-2010, 10:19 PM
I assumed it meant the actually entry points for a soapclient to the server, as in the functions / classes that have been registered. Thats the only thing I can think of that it means, otherwise soapserver only really has two instantiation methods: wsdl and non-wsdl mode.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum