Hello,

I am using WSO2 for PHP.  I'm not sure where to find what version I am using.  
Apparently there is a problem occurring that has something to do with the 
signature model.

My code is like this:

   $access_client = new WSClient(array(
      "wsdl" => "http://<HOST 
HERE>/imagenow/services/1.0/access_service/imagenow_access.wsdl",
   ));

  $access_proxy = $access_client->getProxy();

  $req = array(
         'LOCALE'            => "US_en",  // locale of client
           ...
         );

  $return = $access_proxy->ACCESS_SESSION_BEGIN_USING_PASSWORD($req);





The problem seems to be with the sig model.  In 
./wso2-wsf-php-src-2.1.0/scripts/wsf_wsdl.php, function 
wsf_process_wsdl($wsdata)



The value of $sig_model_string  = $wsdata->WSDL_SigModelString is



<?xml version="1.0"?>

<services xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
xmlns:wsp12="http://schemas.xmlsoap.org/ws/2004/09/policy"; 
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"/>





This value from $sig_model_dom->loadXML($sig_model_string) is passed to 
wsf_get_endpoint_address in 
wso2-wsf-php-src-2.1.0/scripts/dynamic_invocation/wsf_wsdl_util.php


function wsf_get_endpoint_address(DomDocument $sig_model_dom) {
    require_once('wsf_wsdl_consts.php');
    $services_node = $sig_model_dom->firstChild;
    $service_node = $services_node->firstChild;
    $service_attr = $service_node->attributes;

    return $service_attr->getNamedItem(WSF_ADDRESS)->value;
}



Where these errors occur:


PHP Notice:  Trying to get property of non-object in 
/usr/local/wso2/wso2-wsf-php-src-2.1.0/scripts/dynamic_invocation/wsf_wsdl_util.php
 on line 240
PHP Fatal error:  Call to a member function getNamedItem() on a non-object in 
/usr/local/wso2/wso2-wsf-php-src-2.1.0/scripts/dynamic_invocation/wsf_wsdl_util.php
 on line 246

(line numbers are slightly different from distribution due to debug code I 
added)


I don't think I am giving it a sig model, maybe the wso2 library is generating 
it.  How can I fix this error?

Let me know if you want me to post any more info.

Thanks,
Doug

_______________________________________________
User mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/user

Reply via email to