[wsf-c-dev] [jira] Commented: (WSFPHP-88) Unable to have more than
one call to a web service with RM support
Patrick ALLAERT (JIRA)
jira at wso2.org
Thu Sep 6 05:42:48 PDT 2007
[ http://www.wso2.org/jira/browse/WSFPHP-88?page=comments#action_12343 ]
Patrick ALLAERT commented on WSFPHP-88:
---------------------------------------
I forgot to mention that I am using revision 7045 of http://wso2.org/repos/wso2/trunk/wsf/php
> Unable to have more than one call to a web service with RM support
> ------------------------------------------------------------------
>
> Key: WSFPHP-88
> URL: http://www.wso2.org/jira/browse/WSFPHP-88
> Project: WSO2 WSF/PHP
> Issue Type: Bug
> Components: WS-RM Support
> Affects Versions: 1.0.0
> Environment: Gentoo Linux, MySQL 5.0.44, PHP 5.2.4
> Reporter: Patrick ALLAERT
> Priority: Critical
>
> The first call to client/index.php works well:
> $ php index.php
> object(SimpleXMLElement)#3 (2) {
> ["Montant_out"]=>
> string(9) "1234.5678"
> ["Code_Retour"]=>
> string(1) "1"
> }
> All next calls fails with:
> $ php index.php
> Exception: Error , NO Response Received in /.../client/index.php on line 55
> Call Stack:
> 0.0003 67784 1. {main}() /.../client/index.php:0
> 0.0045 112480 2. WSClient->request() /.../client/index.php:55
> The service works again if i delete everything from the sandesha2_client_db.seq_property table
> client/index.php:
> <?php
> try {
> $reqMessage = new WSMessage(
> '<ns1:convert xmlns:ns1="urn:soap"><Montant_in>10</Montant_in><Monnaie_in>EUR</Monnaie_in><Monnaie_out>CNY</Monnaie_out></ns1:convert>',
> array(
> 'to' => 'http://localhost/POCWebServices/wsf-extended/server/',
> 'action' => 'http://www.b-rail.be/SOAP/CurrencyConversion/convert',
> )
> );
> $client = new WSClient( array( 'useWSA' => true, 'reliable' => true ));
> $simplexml = new SimpleXMLElement($client->request($reqMessage)->str);
> var_dump($simplexml);
> } catch (WSFault $f) {
> printf("Soap Fault received with code '%s' and reason '%s'", $f->code, $f->reason);
> }
> ?>
> server/index.php
> <?php
> function convert ($inMessage)
> {
> $resPayload = '<ns1:convertResponse xmlns:ns1="urn:soap"><Montant_out>%.4f</Montant_out><Code_Retour>%d</Code_Retour></ns1:convertResponse>';
> return new WSMessage(sprintf($resPayload, 1234.5678, 1));
> }
> $server = new WSService(
> array(
> 'operations' => array('convert'),
> 'actions' => array('http://www.b-rail.be/SOAP/CurrencyConversion/convert' => 'convert'),
> 'reliable' => true,
> ));
> $server->reply();
> ?>
--
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