ID: 43015
User updated by: magne at myrtveit dot com
Reported By: magne at myrtveit dot com
-Status: Feedback
+Status: Closed
Bug Type: SOAP related
Operating System: Windows XP
PHP Version: 5.2.4
Assigned To: dmitry
New Comment:
Sorry: Our mistake. It now works.
Here is the story...
I made a test script, as you requested, and it produced the error when
run on my client's server.
To be on the safe side, I tested it on an internal server where I work,
and now the response was Ok.
The explanation: My customer's IT department had upgraded PHP all
right, but they forgot to upgrade the extension dll's, such as the soap
module.
Kind regards,
Magne
Previous Comments:
------------------------------------------------------------------------
[2007-10-25 13:35:15] [EMAIL PROTECTED]
Please provide the example script.
------------------------------------------------------------------------
[2007-10-25 08:18:22] magne at myrtveit dot com
phpinfo() returns PHP Version 5.2.4.
I will try to make a test script as soon as I can free up the time to
write it (I guess I need to create three files (WSDL, XSD and PHP) and a
request string in order to create a test case).
I have made a workaround for my own service to work; I just include a
unique serial number with each instance of the class that caused
problems. This effectively switches off the use 'href' in the SOAP
response.
Thanks for your effort.
------------------------------------------------------------------------
[2007-10-24 07:00:34] [EMAIL PROTECTED]
I cannot reproduce the bug #41566.
$ make test TESTS=ext/soap/tests/bugs/bug41566.phpt
=====================================================================
Running selected tests.
PASS Bug #41566 (SOAP Server not properly generating href attributes)
[ext/soap/tests/bugs/bug41566.phpt]
=====================================================================
And you didn't provide a test script to reproduce it.
Anyway, I belive the bug is fixed.
May be you tested wrong version?
------------------------------------------------------------------------
[2007-10-18 13:30:09] [EMAIL PROTECTED]
Dmitry, can yu check this out?
------------------------------------------------------------------------
[2007-10-18 09:47:20] magne at myrtveit dot com
Description:
------------
This bug is reported before as bug #41566. It now has a status of
Closed, and according to the text it is fixed in PHP 5.2.4. I had
problems with this bug in PHP 5.2.3 and just installed PHP 5.3.4. The
problem seems to be there still.
Best regards,
Magne
Expected result:
----------------
...
<SOAP-ENV:Body>
<ns1:getRegulationsResponse>
<getRegulationsReturn xsi:type="ns1:RegulationsArray">
<regulations xsi:type="ns1:Regulations">
<id xsi:type="xsd:integer">1</id>
<name xsi:type="xsd:string">Arbeidstilsynet</name>
<inspectionIntervals xsi:type="ns1:InspectionInterval"
id="ref1">
<inspectionTypeId
xsi:type="xsd:integer">2</inspectionTypeId>
<intervals xsi:type="xsd:int">1</intervals>
</inspectionIntervals>
<inspectionIntervals xsi:type="ns1:InspectionInterval"
id="ref2">
<inspectionTypeId
xsi:type="xsd:integer">3</inspectionTypeId>
<intervals xsi:type="xsd:int">1</intervals>
</inspectionIntervals>
</regulations>
<regulations xsi:type="ns1:Regulations">
<id xsi:type="xsd:integer">5</id>
<name xsi:type="xsd:string">Best. nr 522 -
Maskindir.</name>
<inspectionIntervals href="#ref1"/>
<inspectionIntervals href="#ref2"/>
</regulations>
<regulations xsi:type="ns1:Regulations">
<id xsi:type="xsd:integer">6</id>
<name xsi:type="xsd:string">Best.nr 523 -
Fallsikring</name>
<inspectionIntervals href="#ref1"/>
<inspectionIntervals href="#ref2"/>
</regulations>
... (etc)
Actual result:
--------------
...
<SOAP-ENV:Body>
<ns1:getRegulationsResponse>
<getRegulationsReturn xsi:type="ns1:RegulationsArray">
<regulations xsi:type="ns1:Regulations">
<id xsi:type="xsd:integer">1</id>
<name xsi:type="xsd:string">Arbeidstilsynet</name>
<inspectionIntervals xsi:type="ns1:InspectionInterval"
id="ref1">
<inspectionTypeId
xsi:type="xsd:integer">2</inspectionTypeId>
<intervals xsi:type="xsd:int">1</intervals>
</inspectionIntervals>
<inspectionIntervals xsi:type="ns1:InspectionInterval"
id="ref2">
<inspectionTypeId
xsi:type="xsd:integer">3</inspectionTypeId>
<intervals xsi:type="xsd:int">1</intervals>
</inspectionIntervals>
</regulations>
<regulations xsi:type="ns1:Regulations">
<id xsi:type="xsd:integer">5</id>
<name xsi:type="xsd:string">Best. nr 522 -
Maskindir.</name>
<inspectionIntervals href="#ref1"/>
<inspectionIntervals href="#ref2"/>
</regulations>
<regulations xsi:type="ns1:Regulations">
<id xsi:type="xsd:integer">6</id>
<name xsi:type="xsd:string">Best.nr 523 -
Fallsikring</name>
<inspectionIntervals href="ref1"/>
<inspectionIntervals href="ref2"/>
</regulations>
... (etc)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=43015&edit=1