ID: 44686
Comment by: sergio dot aghemo at fiat dot com
Reported By: dmittner at llnw dot com
Status: No Feedback
Bug Type: SOAP related
Operating System: Gentoo
PHP Version: 5.2.5
New Comment:
having the same problem. Urgent fix needed!
follow extract of the WSDL
<s:element name="getLinkProfilesByTicketResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1"
ref="getLinkProfilesByTicketResult" />
</s:sequence>
</s:complexType>
</s:element>
.....
<s:element name="getLinkProfilesByTicketResult"
type="LINKPROFILESRESPONSE" />
<s:complexType name="LINKPROFILESRESPONSE">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="USER"
type="USER" />
</s:sequence>
<s:attribute name="error" type="s:string" />
</s:complexType>
<s:complexType name="USER">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="CODMARKET"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="USERNAME"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SINCOM"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LOGINNAME"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="FIRSTNAME"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LASTNAME"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="EMAIL"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="TELEPHONE"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="FAX"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="USERTYPE"
type="s:integer" />
<s:element minOccurs="0" maxOccurs="1" name="COMPANY"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="SAPUSERID"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="MAINSINCOM"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="STATUS"
type="s:integer" />
<s:element minOccurs="0" maxOccurs="1" name="LANGUAGE"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="APPLICATIONS"
type="ArrayOfAPPLICATION" />
</s:sequence>
</s:complexType>
<s:complexType name="ArrayOfAPPLICATION">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="APPLICATION" type="APPLICATION" />
</s:sequence>
</s:complexType>
<s:complexType name="APPLICATION">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="ROLE"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BRANDS"
type="s:string" />
</s:sequence>
<s:attribute name="name" type="s:string" />
<s:attribute name="market" type="s:string" />
<s:attribute name="enabled" type="s:integer" />
</s:complexType>
<s:element name="LINKPROFILESRESPONSE"
type="LINKPROFILESRESPONSE" />
Previous Comments:
------------------------------------------------------------------------
[2008-11-30 18:22:10] olivier at quatrain dot com
Having the same problem happening with a valid WSDL on php 5.2.5 and
5.2.6, I tested it on the latest snapshot of PHP (5.2.7RC6) and got the
same error.
Hope it helps.
------------------------------------------------------------------------
[2008-10-29 01:00:02] 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".
------------------------------------------------------------------------
[2008-10-21 11:27:41] [EMAIL PROTECTED]
Please try using this CVS snapshot:
http://snaps.php.net/php5.2-latest.tar.gz
For Windows:
http://windows.php.net/snapshots/
------------------------------------------------------------------------
[2008-04-14 22:42:28] dmittner at llnw dot com
I've narrowed it down, I think.
Relevant excerpts from the WSDL:
<s:element name="ProvisionMonitors">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" ref="ProvisioningOrder" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="ProvisioningOrder" type="ProvisioningOrder" />
<s:complexType name="ProvisioningOrder">
<s:complexContent mixed="false">
<s:extension base="CServiceObject">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="MonitorOrders"
type="ArrayOfMonitorOrder" />
...
</s:sequence>
<s:attribute name="name" type="s:string" />
...
</s:extension>
</s:complexContent>
</s:complexType>
No "name" is specified in the upper block of XML, for the line with the
"ref=". If I specify a name the WSDL parses. I believe the correct
behavior would be for PHP to acquire the name from the complexType
declaration. I don't know if this should always be the case for
references, or only when no name is provided - if providing a name is
even valid for them.
This is just a guess, though. I've dealt very little with references so
do not know the standards surrounding them; only what digging into the
XML has revealed.
------------------------------------------------------------------------
[2008-04-11 05:54:01] dmittner at llnw dot com
I have also found this to occur on PHP 5.0.5, also on Gentoo.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/44686
--
Edit this bug report at http://bugs.php.net/?id=44686&edit=1