[wsf-c-dev] [jira] Assigned: (WSFPHP-88) Unable to have more than one call to a web service with RM support

Samisa Abeysinghe (JIRA) jira at wso2.org
Sun Jan 13 08:23:00 PST 2008


     [ http://wso2.org/jira/browse/WSFPHP-88?page=all ]

Samisa Abeysinghe reassigned WSFPHP-88:
---------------------------------------

    Assignee: Nandika Jayawardana

The latest Sandesha2 seem to have fixed this. Nandika, please have a look and resolve this.

> Unable to have more than one call to a web service with RM support
> ------------------------------------------------------------------
>
>                 Key: WSFPHP-88
>                 URL: http://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
>         Assigned To: Nandika Jayawardana
>            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://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