[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.1

Invalid document end

Asked by Dracan in SOAP, PHP Scripting Language, WebApplications

Tags: amazon, soap, invalid document end, php

Hi.  I'm using PEAR SOAP to send a request to Amazon to query our product order data.

Amazon is returning the correct data, but the xml_parse call in SOAP's Parser.php is failing saying:

"Error: XML error on line 2 col 1 byte 527 Invalid document end".

The returned raw response that xml_parse is trying to parse is below.  Obviously I can get the code to ignore the error return value and just query the reponse using client->getLastResponse().  But I'd rather fix this so that it's working properly.

I'm fairly new to SOAP, so the answer might be blindingly obvious to someone with more experience in this.

Thanks for any help,
Dan.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SE="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body><ns0:string_Response xsi:type="xsd:string" xmlns:ns0="http://systinet.com/xsd/SchemaTypes/">1401433624</ns0:string_Response>
<ns1:doc href="cid:0xb90b6c8-0xb489080-0x1b31c38-0xb935c0f-0x5bd9f48" xmlns:ns1="http://systinet.com/xsd/SchemaTypes/"/>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
--xxx-WASP-CPP-MIME-Boundary-xxx-0xb33488b-03b83b48-xxx-END-xxx
Content-ID: <0xb90b68c-0x4980b80-0x1b1338c-0x3b95c0f-0x5b49df8>
Content-Type: application/binary
 
order-id	order-item-id	purchase-date	payments-date	buyer-email	buyer-name	buyer-phone-number	sku	product-name	quantity-purchased	currency	item-price	item-tax	shipping-price	shipping-tax	ship-service-level	recipient-name	ship-address-1	ship-address-2	ship-address-3	ship-city	ship-state	ship-postal-code	ship-country	ship-phone-number	delivery-start-date	delivery-end-date	delivery-time-zone	delivery-Instructions
*** I'VE REMOVED THE TAB DELIMITED ROWS FOR OUR CUSTOMER'S PRIVACY ***
*** I'VE REMOVED THE TAB DELIMITED ROWS FOR OUR CUSTOMER'S PRIVACY ***
*** I'VE REMOVED THE TAB DELIMITED ROWS FOR OUR CUSTOMER'S PRIVACY ***
*** I'VE REMOVED THE TAB DELIMITED ROWS FOR OUR CUSTOMER'S PRIVACY ***
 
--xxx-WASP-CPP-MIME-Boundary-xxx-0xb33488b-03b83b48-xxx-END-xxx--
[+][-]10/13/09 05:42 AM, ID: 25559239Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/13/09 05:57 AM, ID: 25559332Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/13/09 06:12 AM, ID: 25559450Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/13/09 11:50 AM, ID: 25562992Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/13/09 12:06 PM, ID: 25563212Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: SOAP, PHP Scripting Language, WebApplications
Tags: amazon, soap, invalid document end, php
Sign Up Now!
Solution Provided By: virmaior
Participating Experts: 1
Solution Grade: A
 
[+][-]10/13/09 12:33 PM, ID: 25563542Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/13/09 12:44 PM, ID: 25563662Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/13/09 12:50 PM, ID: 25563712Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625