From:             ahayes at emersion dot com dot au
Operating system: Fedora Core 5
PHP version:      5.2.2
PHP Bug Type:     SOAP related
Bug description:  WSDL parsing doesn't ignore non soap bindings

Description:
------------
Firstly let me just say, I'm am not sure if this is a bug in PHP or Oracle
SOA Suite (Oracle seem to think it is PHP however).

I am using Oracle's SOA Suite, and we have a problem every time we try to
call WSDL files generated by Oracle's ESB.

The problem occurs when PHP's SoapClient tries to parse the WSDL. I get
the following error:

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: No address associated with <port> in 
...
...

To fix this problem, all I have to do is remove offending port definition
in the WSDL, which does not have an address defined. Once removed,
SoapClient can parse the WSDL and call the service. We have many ESB's to
call and as such I would like to avoid this if possible.

Should PHP's SoapClient even be looking at this port type as it does no
have a SOAP binding?

Reproduce code:
---------------
<?php

$client = new
SoapClient('https://amcms.org/soap/GetHandlerTypeByServiceId.wsdl');

Expected result:
----------------
It parses the WSDL file successfully then allowing calling the service.

Actual result:
--------------
PHP Fatal error:  SOAP-ERROR: Parsing WSDL: No address associated with
<port> in /path/to/GetHandlerTypeByServiceId.php on line 10
PHP Fatal error:  Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing
WSDL: No address associated with <port> in
/path/to/GetHandlerTypeByServiceId.php:10
Stack trace:
#0 /path/to/GetHandlerTypeByServiceId.php(10):
SoapClient->SoapClient('GetHandlerTypeB...', Array)
#1 {main}
  thrown in /path/to/GetHandlerTypeByServiceId.php on line 10

-- 
Edit bug report at http://bugs.php.net/?id=41337&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41337&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41337&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41337&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41337&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41337&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41337&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41337&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41337&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41337&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41337&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41337&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41337&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41337&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41337&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41337&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41337&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41337&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41337&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41337&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41337&r=mysqlcfg

Reply via email to