ID: 29796
Updated by: [EMAIL PROTECTED]
Reported By: jamus at jamus dot com
-Status: Assigned
+Status: Analyzed
Bug Type: SOAP related
Operating System: Redhat 9, Mac OS 10.3.5
PHP Version: 5.0.1
Assigned To: dmitry
New Comment:
I am not sure about valid XML document.
It contains special characters with code 003.
The BUG comes from libxml.
The following document breaks libxml.
---
<?xml version="1.0" encoding="UTF-8"?>
<Comment>Hello.</Comment>
---
I haven't ideas how to fix it.
Previous Comments:
------------------------------------------------------------------------
[2004-08-23 06:29:39] jamus at jamus dot com
Description:
------------
I have a database of about 10 item ids. Only one fails
when trying to retrieve item details from amazon.com. I
captured the XML result from amazon through a sniffer,
and the XML reply looks right. I checked it for well-
formedness with mozilla and xmllint. The error I
receive is:
<b>Fatal error</b>: Uncaught SoapFault exception:
[SOAP-ENV:Client] looks like we got no XML document in /
Users/jamus/downloads/php-5.0.1/sapi/cli/index.php:17
Stack trace:
#0 /Users/jamus/downloads/php-5.0.1/sapi/cli/
index.php(17): SoapClient-
>AsinSearchRequest('AsinSearchReque...', Array)
#1 /Users/jamus/downloads/php-5.0.1/sapi/cli/
index.php(23): getItemDetails(Object(stdClass))
#2 {main}
thrown in <b>/Users/jamus/downloads/php-5.0.1/sapi/
cli/index.php</b> on line <b>17</b><br />
Reproduce code:
---------------
<?php
function getItemDetails($asin)
{
$client = new
SoapClient("http://soap.amazon.com/schemas3/AmazonWebServices.wsdl");
$ar->{"asin"}=$asin;
$ar->{"tag"}="jamuscom-20";
$ar->{"type"}="heavy";
$ar->{"devtag"}="D2FZ7623BKO6NP";
$ar->{"offer"}="All";
$ar->{"offerpage"}="1";
$ar->{"locale"}="en";
$ar->{"page"}=1;
$ar=$client->AsinSearchRequest($ar);
return $ar;
}
$ar=getItemDetails("067232525X"); /* this one works */
var_dump($ar);
$ar=getItemDetails("0312238622"); /* this one doesn't */
var_dump($ar);
?>
Expected result:
----------------
I expected to receive the results for both items, not
the first one.
Actual result:
--------------
<b>Fatal error</b>: Uncaught SoapFault exception:
[SOAP-ENV:Client] looks like we got no XML document in /
Users/jamus/downloads/php-5.0.1/sapi/cli/index.php:17
Stack trace:
#0 /Users/jamus/downloads/php-5.0.1/sapi/cli/
index.php(17): SoapClient-
>AsinSearchRequest('AsinSearchReque...', Array)
#1 /Users/jamus/downloads/php-5.0.1/sapi/cli/
index.php(23): getItemDetails(Object(stdClass))
#2 {main}
thrown in <b>/Users/jamus/downloads/php-5.0.1/sapi/
cli/index.php</b> on line <b>17</b><br />
Below is the xml file that was pulled from packet
sniffing using ethereal:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://
schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-
ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:
xsd="http://www.w3.org/2001/XMLSchema" xmlns:
amazon="http://soap.amazon.com" SOAP-ENV:
encodingStyle="http://schemas.xmlsoap.org/soap/
encoding/">
<SOAP-ENV:Body>
<namesp117:AsinSearchRequestResponse xmlns:
namesp117="http://soap.amazon.com">
<return xsi:type="amazon:ProductInfo">
<Details SOAP-ENC:arrayType="amazon:Details[1]"
xsi:type="SOAP-ENC:Array">
<Details xsi:type="amazon:Details">
<Url xsi:type="xsd:string">http://
www.amazon.com/exec/obidos/ASIN/0312238622/jamuscom-20?
dev-t=D2FZ7623BKO6NP%26camp=2025%26link_code=sp1</Url>
<Asin xsi:type="xsd:string">0312238622</
Asin>
<ProductName xsi:type="xsd:string">Anime
from Akira to Princess Mononoke: Experiencing
Contemporary Japanese Animation</ProductName>
<Catalog xsi:type="xsd:string">Book</
Catalog>
<Authors SOAP-ENC:arrayType="xsd:string[1]"
xsi:type="SOAP-ENC:Array">
<Author xsi:type="xsd:string">Susan
Jolliffe Napier</Author>
</Authors>
<ReleaseDate xsi:type="xsd:string">01 April,
2001</ReleaseDate>
<Manufacturer xsi:type="xsd:string">Palgrave
MacMillan</Manufacturer>
<ImageUrlSmall xsi:type="xsd:string">http://
images.amazon.com/images/P/0312238622.01.THUMBZZZ.jpg</
ImageUrlSmall>
<ImageUrlMedium xsi:type="xsd:string">http:/
/images.amazon.com/images/P/0312238622.01.MZZZZZZZ.jpg</
ImageUrlMedium>
<ImageUrlLarge xsi:type="xsd:string">http://
images.amazon.com/images/P/0312238622.01.LZZZZZZZ.jpg</
ImageUrlLarge>
<ListPrice xsi:type="xsd:string">$65.00</
ListPrice>
<OurPrice xsi:type="xsd:string">$65.00</
OurPrice>
<UsedPrice xsi:type="xsd:string">$12.00</
UsedPrice>
<ThirdPartyNewPrice xsi:type="xsd:
string">$79.26</ThirdPartyNewPrice>
<SalesRank xsi:type="xsd:string">743,683</
SalesRank>
<NumberOfOfferings xsi:type="xsd:string">8</
NumberOfOfferings>
<ThirdPartyNewCount xsi:type="xsd:
string">4</ThirdPartyNewCount>
<UsedCount xsi:type="xsd:string">4</
UsedCount>
<ThirdPartyProductInfo xsi:type="amazon:
ThirdPartyProductInfo">
<ThirdPartyProductDetails SOAP-ENC:
arrayType="amazon:ThirdPartyProductDetails[6]" xsi:
type="SOAP-ENC:Array">
<ThirdPartyProductDetails xsi:
type="amazon:ThirdPartyProductDetails">
<OfferingType xsi:type="xsd:
string">ThirdPartyNew</OfferingType>
<SellerId xsi:type="xsd:
string">AGLPMRINU0Q3T</SellerId>
<SellerNickname xsi:type="xsd:
string">pbshop</SellerNickname>
<ExchangeId xsi:type="xsd:
string">Y02Y3893412Y3808702</ExchangeId>
<OfferingPrice xsi:type="xsd:
string">$79.26</OfferingPrice>
<Condition xsi:type="xsd:string">new</
Condition>
<ConditionType xsi:type="xsd:
string">Brand new Paperback - delivered from the UK in
7-10 days</ConditionType>
<ExchangeAvailability xsi:type="xsd:
string">Usually ships in 1-2 business days</
ExchangeAvailability>
<SellerCountry xsi:type="xsd:
string">United Kingdom</SellerCountry>
<SellerState xsi:type="xsd:string"/>
<ShipComments xsi:type="xsd:
string">International shipping available
</ShipComments>
<SellerRating xsi:type="xsd:
string">4.5</SellerRating>
<SellerRating xsi:type="xsd:
string">4.5</SellerRating>
</ThirdPartyProductDetails>
<ThirdPartyProductDetails xsi:
type="amazon:ThirdPartyProductDetails">
<OfferingType xsi:type="xsd:
string">ThirdPartyNew</OfferingType>
<SellerId xsi:type="xsd:
string">A150I0Y8V24372</SellerId>
<SellerNickname xsi:type="xsd:
string">ponti_books</SellerNickname>
<ExchangeId xsi:type="xsd:
string">Y02Y4713751Y1487140</ExchangeId>
<OfferingPrice xsi:type="xsd:
string">$81.15</OfferingPrice>
<Condition xsi:type="xsd:string">new</
Condition>
<ConditionType xsi:type="xsd:
string">Brand NEW! paperback !!! Delivered within 4-14
working days !!!</ConditionType>
<ExchangeAvailability xsi:type="xsd:
string">Usually ships in 1-2 business days</
ExchangeAvailability>
<SellerCountry xsi:type="xsd:
string">United Kingdom</SellerCountry>
<SellerState xsi:type="xsd:string"/>
<ShipComments xsi:type="xsd:
string">International shipping available
</ShipComments>
<SellerRating xsi:type="xsd:
string">0.0</SellerRating>
<SellerRating xsi:type="xsd:
string">0.0</SellerRating>
</ThirdPartyProductDetails>
<ThirdPartyProductDetails xsi:
type="amazon:ThirdPartyProductDetails">
<OfferingType xsi:type="xsd:
string">ThirdPartyNew</OfferingType>
<SellerId xsi:type="xsd:
string">AW7TB4FMTD6QC</SellerId>
<SellerNickname xsi:type="xsd:
string">bookbundledotcom</SellerNickname>
<ExchangeId xsi:type="xsd:
string">Y01Y6849822Y8220882</ExchangeId>
<OfferingPrice xsi:type="xsd:
string">$94.52</OfferingPrice>
<Condition xsi:type="xsd:string">new</
Condition>
<ConditionType xsi:type="xsd:string"/>
<ExchangeAvailability xsi:type="xsd:
string">Usually ships in 1-2 business days</
ExchangeAvailability>
<SellerCountry xsi:type="xsd:
string">United States</SellerCountry>
<SellerState xsi:type="xsd:
string">CT</SellerState>
<ShipComments xsi:type="xsd:
string">Expedited shipping available
</ShipComments>
<SellerRating xsi:type="xsd:
string">0.0</SellerRating>
<SellerRating xsi:type="xsd:
string">0.0</SellerRating>
</ThirdPartyProductDetails>
<ThirdPartyProductDetails xsi:
type="amazon:ThirdPartyProductDetails">
<OfferingType xsi:type="xsd:
string">Used</OfferingType>
<SellerId xsi:type="xsd:
string">A2SQVLAWHMCCQH</SellerId>
<SellerNickname xsi:type="xsd:
string">bowerybay</SellerNickname>
<ExchangeId xsi:type="xsd:
string">Y04Y5912049Y5577643</ExchangeId>
<OfferingPrice xsi:type="xsd:
string">$12.00</OfferingPrice>
<Condition xsi:type="xsd:
string">verygood</Condition>
<ConditionType xsi:type="xsd:
string">Palgrave MacMillan; 2001; Very Good+ in no DJ;
311; 8vo - 8" to 9" tall;</ConditionType>
<ExchangeAvailability xsi:type="xsd:
string">Usually ships in 1-2 business days</
ExchangeAvailability>
<SellerCountry xsi:type="xsd:
string">United States</SellerCountry>
<SellerState xsi:type="xsd:
string">NY</SellerState>
<ShipComments xsi:type="xsd:
string">International shipping available Expedited
shipping available </ShipComments>
<SellerRating xsi:type="xsd:
string">4.5</SellerRating>
<SellerRating xsi:type="xsd:
string">4.5</SellerRating>
</ThirdPartyProductDetails>
<ThirdPartyProductDetails xsi:
type="amazon:ThirdPartyProductDetails">
<OfferingType xsi:type="xsd:
string">Used</OfferingType>
<SellerId xsi:type="xsd:
string">AA28NRZ3F3177</SellerId>
<SellerNickname xsi:type="xsd:
string">abwwhse</SellerNickname>
<ExchangeId xsi:type="xsd:
string">Y04Y3082010Y7396609</ExchangeId>
<OfferingPrice xsi:type="xsd:
string">$15.89</OfferingPrice>
<Condition xsi:type="xsd:
string">verygood</Condition>
<ConditionType xsi:type="xsd:
string">Item(s) will ship from warehouse within 1-2 days
of purchase.</ConditionType>
<ExchangeAvailability xsi:type="xsd:
string">Usually ships in 1-2 business days</
ExchangeAvailability>
<SellerCountry xsi:type="xsd:
string">United States</SellerCountry>
<SellerState xsi:type="xsd:
string">PA</SellerState>
<SellerRating xsi:type="xsd:
string">5.0</SellerRating>
<SellerRating xsi:type="xsd:
string">5.0</SellerRating>
</ThirdPartyProductDetails>
<ThirdPartyProductDetails xsi:
type="amazon:ThirdPartyProductDetails">
<OfferingType xsi:type="xsd:
string">Used</OfferingType>
<SellerId xsi:type="xsd:
string">A1OFYZC3UDZRLK</SellerId>
<SellerNickname xsi:type="xsd:
string">[EMAIL PROTECTED]</SellerNickname>
<ExchangeId xsi:type="xsd:
string">Y03Y6602085Y3410921</ExchangeId>
<OfferingPrice xsi:type="xsd:
string">$29.98</OfferingPrice>
<Condition xsi:type="xsd:
string">verygood</Condition>
<ConditionType xsi:type="xsd:
string">Publisher: Palgrave Macmillan<br>Date of
Publication: 2001<br>Condition: Very Good<
br>Description: 0312238622</ConditionType>
<ExchangeAvailability xsi:type="xsd:
string">Usually ships in 1-2 business days</
ExchangeAvailability>
<SellerCountry xsi:type="xsd:
string">United Kingdom</SellerCountry>
<SellerState xsi:type="xsd:string"/>
<ShipComments xsi:type="xsd:
string">International shipping available </ShipComments>
<SellerRating xsi:type="xsd:
string">4.0</SellerRating>
<SellerRating xsi:type="xsd:
string">4.0</SellerRating>
</ThirdPartyProductDetails>
</ThirdPartyProductDetails>
</ThirdPartyProductInfo>
<BrowseList SOAP-ENC:arrayType="amazon:
BrowseNode[8]" xsi:type="SOAP-ENC:Array">
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:
string">Animated films</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:
string">Animation</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:string">Film
& Video - General</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:
string">Japan</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:string">Pop
Arts / Pop Culture</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:
string">Popular Culture - General</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:string">Social
Science</BrowseName>
</BrowseNode>
<BrowseNode xsi:type="amazon:BrowseNode">
<BrowseName xsi:type="xsd:
string">Sociology</BrowseName>
</BrowseNode>
</BrowseList>
<Media xsi:type="xsd:string">Hardcover</
Media>
<NumMedia xsi:type="xsd:string">1</NumMedia>
<Isbn xsi:type="xsd:string">0312238622</
Isbn>
<Availability xsi:type="xsd:string">Out of
Print--Limited Availability</Availability>
<ProductDescription xsi:type="xsd:
string">Although packaged as a book for general readers,
<i>Anime: From</i> Akira <i>to</
i> Princess Mononoke is a dreary academic study that
showcases the clich&eacute;s of "higher" criticism
but tells the reader little about the art form. The
potentially interesting points that Susan Napier raises
(e.g., Are characters with blond, pink, or purple hair
really perceived as Japanese?) are ignominiously buried
in arcane jargon. And she too often discusses other
authors' theories instead of anime itself. In a section
on <I>Ranma 1/2</I>, she refers to various
books, but in a footnote she cites only a single
published interview with series creator Rumiko
Takahashi. If Napier regards the Ranma series as
significant, why didn't she interview the artist? <
p> The text is riddled with errors, which suggests
that the author hasn't watched the films carefully. For
example, she cites a "brilliant" essay referring to the
loss of all electrical power in Japan (a symbol of
"modernization under the patriarchal system") in episode
3 of <I>Neon Genesis Evangelion</I>. No
blackout occurs in this episode. In episode 6, however,
all the electricity in Japan is requisitioned to power a
superweapon. <i>From</i> Akira <i>
to</i> Princess Mononoke is the sort of book
churned out by professors to satisfy publish-or-perish
rules. <I>--Charles Solomon</I> </
ProductDescription>
<Reviews xsi:type="amazon:Reviews">
<AvgCustomerRating xsi:type="xsd:
string">3.74</AvgCustomerRating>
<TotalCustomerReviews xsi:type="xsd:
string">27</TotalCustomerReviews>
<CustomerReviews SOAP-ENC:
arrayType="amazon:CustomerReview[3]" xsi:type="SOAP-ENC:
Array">
<CustomerReview xsi:type="amazon:
CustomerReview">
<Rating xsi:type="xsd:string">4</
Rating>
<Summary xsi:type="xsd:string">Not
what you think...</Summary>
<Comment xsi:type="xsd:string">The
first thing I need to note is that the title of this
book is misleading. It is definitely NOT a survey of
recent anime history. It is also not explicitly aimed at
an otaku audience, although every otaku out there should
be interested. In fact, this is an academic work of film
criticism, analyzing a variety of themes that appear in
recent anime. Keep this in mind and you won't be
disappointed.<P>I did find a couple of things to
be annoying. For one, Napier uses a fair amount of
academic Newspeak. It wasn't difficult, just
distracting, and I don't think it adds anything to the
text. Also, some of her analysis appears to be clouded
by the need to bow to the sacred cows of PC. Check out
her analysis of gender roles in &quot;Wicked
City&quot;, where she completely ignores the fact
that it is the female lead who ends up being the most
powerful character.<P>Don't let my gripes mislead
you. This book's positive points far outweigh it's
negatives. Most of Napier's analysis is quite
insightful, and I've found myself watching a lot of
these anime with her ideas in mind. The fact that she
compares concepts between different anime was especially
interesting; where else can you get a thorough
comparison of the apocalyptic themes in &quot;
Akira&quot; and &quot;Evangelion&quot;?<
P>I'm sure plenty of people will be disappointed that
their favorite anime didn't rate mention (what, no &
quot;Tenchi&quot;?!?). Take this book for what it
is, and enjoy it. Then pop in those beat up old &
quot;Bubblegum Crisis&quot; tapes and see some old
favorites in a new light.</Comment>
</CustomerReview>
<CustomerReview xsi:type="amazon:
CustomerReview">
<Rating xsi:type="xsd:string">3</
Rating>
<Summary xsi:type="xsd:string">Who is
the target audience?</Summary>
<Comment xsi:type="xsd:string">Napier
presents an in-depth analysis of anime works that are
popular in the US. The book seems to try to meet demands
from both non-academic anime fans and academics who need
information about pop culture of contemporary Japan.
Unfortunately, this book does not meet either demands to
the level of satisfaction. If you are a hard-core anime
fan, you must simply wonder why the golden age of anime,
which is from the late 70s to the 80s, are largely
ignored. You might also wonder why only the anime titles
that are popular in the West are treated in the book.
For example, among Miyazaki Hayao's works, the most
important (for both fans and creators of anime in Japan)
are Lupin, Nausicaa and Laputa: Mononoke Hime's
importance is a very recent idea marketed by Disney to
American audience. Furthermore, Napier does not care
about the important anime titles (in terms of both anime
history and Japanese culture) like Gundam and Macross.
Her anime collection seems to be limited to US official
releases (I guess she doesn't watch fansubs...) If you
are an academic who is looking for an overview and some
concrete information about Japanese anime, then this
book will not help you much. For example, she regards
Akira as a representative anime work, but the truth is
that Akira is important because it was the first
international release. The same can be said about Ghost
in the Shell. In short, Napier only discusses anime
titles that are visible to American or Western audience
and discuss them as if Japan has had the same perception
of anime as America. There are many important anime
works before Akira. Actually, compared to those, Akira
is not so important at all. What if you see a book that
tries to explain what American literature is, without
mentioning Emerson, Hawthorne and Melville? As a reader
who is both an academic and an anime fan, I don't see
who this book is trying to target as its legitimate
reader. Overall, Napier's discussions in this book are
organized and solid as a scholarly work, but her
approach and presumed frame of logic should be seriously
questioned.</Comment>
</CustomerReview>
<CustomerReview xsi:type="amazon:
CustomerReview">
<Rating xsi:type="xsd:string">5</
Rating>
<Summary xsi:type="xsd:string">An
excellent account of the genre</Summary>
<Comment xsi:type="xsd:string">This is
a definite must read for all fans of anime. It is
especially good to novice otaku like myself who only
really know of the things I grew up watching as a kid
and a few releases here (Force Five, Star Blazers,
Battle of the Planets, Akira, Princess Mononoke). It
explores central themes around many different types of
anime and warns you (indirectly) about what things to
avoid. For exaple, no parent after reading this book
will allow their children to go anywhere near the Hentai
sections of an anime video store, though I did see
Legend of the Overfiend a few shelves away from Sailor
Moon at one store. BAD IDEA, Newbury Comics!!!<BR>
If I have one criticism of this book, it would be that
it is written in too scholarly a manner and the author's
editor should have told the author to tone it down a
bit. There was also to much of a repetition of certain
phrases. As a reader, I got sick of the word &quot;
privelidge&quot; by the end of the second chapter
and there was lots more to come. Still, if it wasn't for
this book, I never would have discovered such d elights
as Ranma 1/2, Nausicaa, or Ghost In The Shell; so I
would highly recommend this book to anyone interested in
anime.</Comment>
</CustomerReview>
</CustomerReviews>
</Reviews>
<SimilarProducts SOAP-ENC:arrayType="xsd:
string[5]" xsi:type="SOAP-ENC:Array">
<Product xsi:type="xsd:
string">1880656647</Product>
<Product xsi:type="xsd:
string">1880656418</Product>
<Product xsi:type="xsd:
string">1880656728</Product>
<Product xsi:type="xsd:
string">1880656329</Product>
<Product xsi:type="xsd:
string">188065623X</Product>
</SimilarProducts>
</Details>
</Details>
</return>
</namesp117:AsinSearchRequestResponse>
<SellerRating _id="1" xsi:type="xsd:string">4.5</
SellerRating>
<SellerRating _id="1" xsi:type="xsd:string">0.0</
SellerRating>
<SellerRating _id="1" xsi:type="xsd:string">0.0</
SellerRating>
<SellerRating _id="1" xsi:type="xsd:string">4.0</
SellerRating>
<SellerRating _id="1" xsi:type="xsd:string">5.0</
SellerRating>
<SellerRating _id="1" xsi:type="xsd:string">4.5</
SellerRating>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
<!-- Request ID: 1FQJB0F4Q5S29KNHN8FS -->
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29796&edit=1