[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    [wsf-c-dev] [jira] Assigned: (WSFPHP-401) WSClient::getProxy()
From:       "Nandika Jayawardana (JIRA)" <jira () wso2 ! org>
Date:       2009-08-19 10:05:00
Message-ID: 1470131781.42441250676300894.JavaMail.jira () wso2 ! org ! ec2 ! wso2 ! com
[Download RAW message or body]


     [ https://wso2.org/jira/browse/WSFPHP-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Nandika Jayawardana reassigned WSFPHP-401:
------------------------------------------

    Assignee: Nandika Jayawardana

> WSClient::getProxy() crashes with a fatal error if the service is not available
> -------------------------------------------------------------------------------
> 
> Key: WSFPHP-401
> URL: https://wso2.org/jira/browse/WSFPHP-401
> Project: WSO2 WSF/PHP
> Issue Type: Bug
> Components: WSClient
> Affects Versions: 2.0.0
> Reporter: Lucas S. Bickel
> Assignee: Nandika Jayawardana
> Attachments: wso2-wsf-php-src-2.0.0-wsf_wsdl.php-receiver_fault_on_upstream_unavailable.patch
>  
> 
> If a WSDL file returns a 403 HTTP return value the following errors gets raised:
> <pre>
> PHP Warning:  file_get_contents(http://localhost:8080/SearchService?wsdl) [<a \
> href='function.file-get-contents'>function.file-get-contents</a>]: failed to open \
> stream: HTTP request failed! HTTP/1.1 403 Forbidden in wsf_wsdl.php on line 176
> PHP Warning:  DOMDocument::loadXML() [<a \
> href='function.DOMDocument-loadXML'>function.DOMDocument-loadXML</a>]: Empty string \
> supplied as input in wsf_wsdl.php on line 236 PHP Fatal error:  \
> WSClient::getProxy() [<a \
> href='function.WSClient-getProxy'>function.WSClient-getProxy</a>]: Error occurred \
> in script: WSDL http://localhost:8080/ams.basis06.com/addresses/services/SearchService?wsdl \
> could not be loaded. in /nexbyte/webstamp/program/include/address_service.inc on \
> line 325 </pre>
> The last fatal error then kills the php interpreter. I believe that this should \
> return a WSFault("Receiver") Exception that i may then handle in my code. This also \
> seems to be the problem described in http://wso2.org/forum/thread/5279 As a fix i \
> propose checking the results from the file_get_contents call in \
> wsf_get_wsdl_str_from_url. This way the last warning can be replaced with a WSFault \
> (we could even do schema validation on the wsdl at that stage!). Im adding a patch \
> to this issue that fixes the problem by checking that the returned wsdl is not \
> empty(). 

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

        

_______________________________________________
Wsf-c-dev mailing list
Wsf-c-dev@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/wsf-c-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic