Project: WSO2 WSF/PHP
Class Inheritance support?
Hi
Does the extension support class inheritance?
i.e. if i have a class and a response object that extends from a common base ...
class myService
{
public function myMethod()
{
$response = new MyResponse;
$response -> is_success = true;
$response -> blah = 'blah';
return $response;
}
}
abstract class Response
{
public $is_success;
}
class MyResponse extends Response
{
public $blah;
}
assuming that I have added type comments to the file - will the WSDL and webservice client respect the inheritance?
cheers
dan
- 1 comment
- 7 reads
WSClient and response Headers
Hello, I have code:
[code]
$security_options = array("useUsernameToken" => TRUE );
$policy = new WSPolicy(array("security" => $security_options));
$security_obj = new WSSecurityToken(array(
"user" => "user",
"password" => "user"));
$client = new WSClient(array(
"wsdl"=>"url to wsdl",
"useMTOM" => TRUE,
"policy" => $policy,
//'trace' => true,
"securityToken" => $security_obj,));
$proxy = $client->getProxy();
$result = $proxy->login(array("sid"=>'SID'));
print_r($result);
$res = $client->getLastResponse();
- 3 comments
- Read more
- 13 reads
Installation trouble: Class 'WSClient' not found
Hello all,
I'm having trouble running my first PHP SOAP client.
I get the following error:
Fatal error: Class 'WSClient' not found
Yet, when I run Wamp, it appears that WSF extension is loaded, as you can see on this screenshot: http://wso2.org/files/wsfactivated.JPG.
Here is what I've done:
+ Copy wsf.dll in /ext.
+ Add wso2-wsf-php-bin-x.y.z-win32\wsf_c\lib to PATH
+ Add wsf.dll to PATH
+ Add in php.ini:
[wsf]
wsf.home="\wsf_c"
wsf.log_path="\wsf_c\logs"
wsf.log_level=3
- 6 comments
- Read more
- 67 reads
PHP with wsHttpBinding with TransportWithMessageCredential using UserName Message Security
Hi, We have developed a .NET WCF web service that uses wsHttpBinding with TransportWithMessageCredential using UserName Message Security. It uses SSL to secure the transport and username security for the messages.
Should I be able to connect to this from PHP? If not, which sections of this security configuration are not yet supported in PHP?
The config below is for my .NET test client's wsHttpBinding (the important section being security)
Problem about the installing wso2-wsf-php-src-1.3.2 on ManDriva
Hi everybody,
I have downloaded wso2-wsf-php-src-1.3.2 on a ManDriva Linux 2006.0 system and extracted it. In the INSTALL file following steps are given to install.
./configure
make
make install
When I ran make command as root. I am getting below given errors.
gcc -shared .libs/sequence_report.o .libs/report.o .libs/client.o -lpthread -lsqlite3 -ldl -Wl,-soname -Wl,libsandesha2_client.so.0 -o .libs/libsandesha2_client.so.0.0.0
/usr/bin/ld: cannot find -lsqlite3
collect2: ld returned 1 exit status
make[7]: *** [libsandesha2_client.la] Error 1
- 2 comments
- Read more
- 69 reads
[solved] converting "http"-service to "https"-service
Hello,
im trying to convert a running "http"-service into "https"-service. On apache-site, everything is ok and calling the (java/axis-)webservice via url works on both ports (80 and 443).
But calling the "https"-version via php doesn't work. It seems to me that the ssl-handshake isn't correct. if i call the service via url, the handshake looks as follows
. [info] Connection to child 0 established (server rklh.wuhu.net:443, client 127.0.0.2)
. [info] Seeding PRNG with 144 bytes of entropy
. [debug] ssl_engine_kernel.c(1731): OpenSSL: Handshake: start
- 2 comments
- Read more
- 101 reads
WSDL not working for the samples
Hello, I've been trying unsuccessfully for a couple of days to get WSDL working on my server. Here is my configuration:
Win 2003 Server
Apache 2.2.2
PHP 5.2.6
WSPHP 1.3.2
libxml2 2.6.32
iconv 1.9.2
When I request wsdl from one of the sample pages I get this in my apache log:
- 6 comments
- Read more
- 216 reads
problem return array from web service
I try to create a samples web services with WSDL Generation, the code show below:
- 4 comments
- Read more
- 195 reads

