[wsf-c-dev] [jira] Created: (WSFPHP-5) Add dynamic invocation support without wsdl for WSProxyClient

Nandika Jayawardana (JIRA) jira at wso2.org
Fri Dec 22 01:13:19 PST 2006


Add dynamic invocation support without wsdl for WSProxyClient
-------------------------------------------------------------

                 Key: WSFPHP-5
                 URL: http://www.wso2.org/jira/browse/WSFPHP-5
             Project: WSO2 WSF-PHP
          Issue Type: New Feature
         Environment: linux/ windows
            Reporter: Nandika Jayawardana


Allow WSProxyClient to be used without WSDL. Add an option "methods" to
the WSProxyClient options that can be used in addition to or instead of
WSClient "wsdl" option.  The value of the methods option is a map from
method names to method signatures.  Each method signature is a
WSMethodSignature object with the following properties:

returnType - qname of the return type
paramTypes - array of qnames of the parameter types
paramNames - array of qnames of the parameter names
namespaces - map from prefixes to uris used for qnames
 
A prefix of "xs" would default to the XML Schema namespace.
 
WSMethodSignature would have a constructor whose arguments are the

parameter names.
 
For example:

$addSignature = new WSMethodSignature("a", "b")
$addSignature.returnType = "xs:int"
$addSignature.paramTypes = array("xs:int", "xs:int")

"methods" => array("add" => $addSignature)
 
(We could make WSMethodSignature be an associative array instead of an
object, but my feeling is that might be making the required structure of
the complete options associative array just one step too far.)

Given this, the method can be invoked using exactly the same syntax as
in the WSDL case

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://www.wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        




More information about the Wsf-c-dev mailing list