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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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

Add a Patch

Pull Requests

Add a Pull Request

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: Fri Mar 29 09:01:28 2024 UTC