php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36648 two same functions, one work and one can't work.
Submitted: 2006-03-07 17:55 UTC Modified: 2006-03-15 01:00 UTC
From: roderja at hotmail dot com Assigned:
Status: No Feedback Package: SOAP related
PHP Version: 5.1.2 OS: windows xp sp2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: roderja at hotmail dot com
New email:
PHP Version: OS:

 

 [2006-03-07 17:55 UTC] roderja at hotmail dot com
Description:
------------
I build one web services has two functions.
One is ConnectDB
One is testdb
The different between these two function is their functions name,
I face two problem:
1. Just only ConnectDB can work.
2. If I change the name of ConnectDB in server13.php client13.php and server13.wsdl, it can't work. I just can use "ConnectDB" to define the name of my function.


Reproduce code:
---------------
http://home.pchome.com.tw/star/roderja2/server13.php
http://home.pchome.com.tw/star/roderja2/client13.php
http://home.pchome.com.tw/star/roderja2/server13.wsdl

I also compress three files into the following file
http://home.pchome.com.tw/star/roderja2/goodapi.rar

Thanks.

Expected result:
----------------
Id : abc

Name : 123

Id : abc

Name : 123



Actual result:
--------------
 Id : abc

Name : 123
Fatal error: Uncaught SoapFault exception: [Client] Function ("testdb") is not a valid method for this service in E:\xampp\htdocs\Ja\goodapi\client13.php:21 Stack trace: #0 [internal function]: SoapClient->__call('testdb', Array) #1 E:\xampp\htdocs\Ja\goodapi\client13.php(21): SoapClient->testdb(Object(stdClass)) #2 {main} thrown in E:\xampp\htdocs\Ja\goodapi\client13.php on line 21

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-07 18:12 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2006-03-15 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 11:01:30 2024 UTC