php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30165 SOAP FAULT upgrading from PEAR::SOAP to php5
Submitted: 2004-09-20 12:51 UTC Modified: 2004-10-05 16:40 UTC
From: s dot tabacchiera at gruppocsf dot com Assigned: dmitry (profile)
Status: Not a bug Package: SOAP related
PHP Version: 5.0.1 OS: Linux
Private report: No CVE-ID: None
 [2004-09-20 12:51 UTC] s dot tabacchiera at gruppocsf dot com
Description:
------------
Hi all, my server is running php4 and PEAR::SOAP 0.8RC2, whilst client is running php5.

This code generates an error:
---------
<?php
$wsdl1="http://blablabla.com/soap_server.php?wsdl";
$client1 = new SoapClient($wsdl1);
var_dump($client1->__getFunctions());
?>
--------

The error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL:PHP-SOAP doesn't support transport 'http://schemas.xmlsoap.org/soap/http/' in/root/soap.php:3
Stack trace:
#0 {main} thrown in /root/soap.php on line 3

Any clue?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-21 10:58 UTC] ante dot dfg at moj dot net
Yes....I have the same problem...nothing related to SOAP works in php 5.0.1..I tried some examples from zend.com(for php5) and all the time php 5.0.1 crasches with the Uncaught SoapFault exception..Im on WinXP sp1, Apache 1.3.31, php 5.0.1
 [2004-09-24 12:58 UTC] s dot tabacchiera at gruppocsf dot com
I think I found the bug.

In ext/soap/php_encoding.h there is a wrong define:

Bad:
#define WSDL_HTTP_TRANSPORT "http://schemas.xmlsoap.org/soap/http"

Good:
#define WSDL_HTTP_TRANSPORT "http://schemas.xmlsoap.org/soap/http/"

Diff is a missing trailing slash.
Hope this helps.
 [2004-10-05 16:40 UTC] dmitry@php.net
Acording to WSDL 1.1 specification (http://www.w3.org/TR/2001/NOTE-wsdl-20010315) the proper valu for HTTP transport is "http://schemas.xmlsoap.org/soap/http".

 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC