RE: [PHP] Fun with SOAP.
- From: warren@xxxxxxxxxxxx ("Warren Vail")
- Date: Tue, 29 Apr 2008 23:53:52 -0700
You should be able to parse it manually in PHP, but probably not with a XML
parser or reader. Simply var_dump() the responses you are getting and write
the code to break it up into values you can use. In some respects I've
found this easier than XML, which tends at times to be somebody else's idea
of a standard XML response ;-).
Warren
-----Original Message-----
From: Nathan Nobbe [mailto:quickshiftin@xxxxxxxxx]
Sent: Tuesday, April 29, 2008 2:07 PM
To: Eric Butera
Cc: php php
Subject: Re: [PHP] Fun with SOAP.
On Tue, Apr 29, 2008 at 2:15 PM, Eric Butera
<eric.butera@xxxxxxxxx> wrote:
A fellow co-worker of mine is working on a project integrating withwhile others
Amazon using SOAP. I've never used SOAP before but it seemed like
things were straight forward at first. Some parts work
done. Right now we are stuck trying to fetch a document from theexpected. The
remote server.
We are able to connect and get a list of documents as
PHP 5 SOAP extension handles this like a champ. When a singlerequest for a
document is requested an exception is thrown with the error message
"looks like we got no XML document." The document listing request
returns a simple single text/xml SOAP XML response. The
single document returns a multi-part (multipart/related) response.sure what to
Can the PHP 5 soap client even parse such things? I looked at the
manual pages and did Google searching, but I'm not even
word my queries as. It seems like somehow this should just work asSo any help
the script just defines a client and then does the call.
or links to something that explains how this multipartresponse can be
handled will be greatly appreciated. See below for the script &
responses.
i know this has nothing to do w/ getting it to work w/ php,
eric, but have you tried hitting the service w/ soap ui?
http://www.soapui.org/
although its written in java, its an indispensable testing
tool, imho, and i always give it a shot when im having soap
troubles. i might try to see if you can get a successful
response from the service w/ it.
-nathan
.
- Follow-Ups:
- Re: [PHP] Fun with SOAP.
- From: "Eric Butera"
- Re: [PHP] Fun with SOAP.
- References:
- Fun with SOAP.
- From: "Eric Butera"
- Re: [PHP] Fun with SOAP.
- From: "Nathan Nobbe"
- Fun with SOAP.
- Prev by Date: Re: [PHP] Xampp question, pretty much 0T
- Next by Date: Graphical Site Map
- Previous by thread: Re: [PHP] Fun with SOAP.
- Next by thread: Re: [PHP] Fun with SOAP.
- Index(es):
Relevant Pages
|