php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44581 SoapClient-error with Document-Style WSDL
Submitted: 2008-03-31 14:28 UTC Modified: 2008-08-06 01:00 UTC
Votes:4
Avg. Score:4.0 ± 0.7
Reproduced:3 of 3 (100.0%)
Same Version:2 (66.7%)
Same OS:0 (0.0%)
From: storozhilov at mail dot ru Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.2.5 OS: FreeBSD 7.0-RELEASE #2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: storozhilov at mail dot ru
New email:
PHP Version: OS:

 

 [2008-03-31 14:28 UTC] storozhilov at mail dot ru
Description:
------------
It's recommended to use Document-style WSDL, so we've made our SOAP-server, that publish WSDL-document of this style. Unfortunately, PHP SOAP-module works fine with RPC-style, but makes a error with the same, but Document-style WSDL. Our SOAP-server, written using gSOAP works fine with gSOAP-based clients, but can't serve PHP ones.

Reproduce code:
---------------
1. WSDL is here: http://pregrad.net/temp/isale.wsdl

2. PHP code is:

<?php

ini_set('soap.wsdl_cache_enabled', '0');
$client = new SoapClient("isale.wsdl");
$uuid = $client->initUserSession(1, 'user', 'password');

?>




Expected result:
----------------
without errors

Actual result:
--------------
PHP Fatal error:  Uncaught SoapFault exception: [SOAP-ENV:Client] Method 'parameters' not implemented: method name or namespace not recognized in /usr/home/illy/Programming/SOAP/PHP/document_style_wsdl/run_me.php:5
Stack trace:
#0 [internal function]: SoapClient->__call('initUserSession', Array)
#1 /usr/home/illy/Programming/SOAP/PHP/document_style_wsdl/run_me.php(5): SoapClient->initUserSession(1, 'user', 'password')
#2 {main}
  thrown in /usr/home/illy/Programming/SOAP/PHP/document_style_wsdl/run_me.php on line 5


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-29 21:43 UTC] didou@php.net
Can't seem to access resources from http://soap.tver.pregrad.net/.
Please make them available somewhere.

Also, include a meaningful debuging information, like the XML request sent:

$client = new SoapClient("isale.wsdl", array('trace' => true));
try {
    $uuid = $client->initUserSession(1, 'user', 'password');
} catch (Exception $e) {
    echo $client->__getLastRequest();
}


 [2008-08-06 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-01-27 11:39 UTC] marcel dot pokrandt at vgb dot org
I have a comparable issue with PHP SOAP as Client with Document encoding.

My server is a JAX-WS RI 2.2 from Sun. With RPC encoding the connection works, but not with document encoding which I would prefer. I?ve other SOAP-Clients working with this Server.

The method on the server is invoked, but without parameters set. Also the return value is empty.

I?ve had also the error mentioned above - this could be solved with parameter 'encoding' => 'UTF-8' (which for me should be standard).
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC