[prev in list] [next in list] [prev in thread] [next in thread]
List: php-soap
Subject: Re: [SOAP] SOAP message structure passing between SOAP
From: noddle <jagrogan () me ! com>
Date: 2009-10-20 16:02:53
Message-ID: 25977870.post () talk ! nabble ! com
[Download RAW message or body]
OK, last one for a while. It's not easy to lean PHP, XML, XSD, SOAP, & WSDL
all at the same time.
All my grief was again a namespace problem because simplexml_load_string
didn't know what to do with the namespace prefix 'tnt' that I had to prepend
to the Amazon schemas in order to get the PHP WSDL & SOAP extension to
create the PHP types out of the complex types in the schemas and so
simplexml_load_string was returning FALSE.
I changed this:
$xmlobj = simplexml_load_string($xmlstr);
to this:
$xmlobj = simplexml_load_string($xmlstr, NULL, NULL, "tnt", true);
and now get back a simplexml object as expected.
Thanks.
noddle wrote:
>
> Hello,
>
> I am trying to write a SOAP client / server app & cannot get the SOAP
> message structures passed back and forth between the client & servers:
>
> Attached are the WSDL, XSDs, XML example, & PHP that is causing me so much
> grieve.
>
> Has anyone any ideal what I am doing wrong?
>
> I've not attached some of the schemas and skeleton php files.
>
> This is Mac osX, PHP 5.3 with SOAP extension & apache 2.2.x.
>
> Thanks.
>
> http://www.nabble.com/file/p25950961/AmazonServices.wsdl
> AmazonServices.wsdl
> http://www.nabble.com/file/p25950961/AmazonServicesClient.php
> AmazonServicesClient.php
> http://www.nabble.com/file/p25950961/AmazonServicesServer.php
> AmazonServicesServer.php
> http://www.nabble.com/file/p25950961/amzn-envelope.xml amzn-envelope.xml
> http://www.nabble.com/file/p25950961/AmazonServices.php AmazonServices.php
> http://www.nabble.com/file/p25950961/XMLlibrary.php XMLlibrary.php
> http://www.nabble.com/file/p25950961/amzn-envelope.xsd amzn-envelope.xsd
> http://www.nabble.com/file/p25950961/amzn-base.xsd amzn-base.xsd
> http://www.nabble.com/file/p25950961/amzn-header.xsd amzn-header.xsd
> http://www.nabble.com/file/p25950961/FulfillmentCenter.xsd
> FulfillmentCenter.xsd
>
--
View this message in context: \
http://www.nabble.com/SOAP-message-structure-passing-between-SOAP-client-server-tp25950961p25977870.html
Sent from the Php - Soap mailing list archive at Nabble.com.
--
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic