Re: [SOAP] SOAP message structure passing between SOAP client/server
[email protected] (noddle)
| Newsgroups | php.soap |
|---|---|
| Message-ID | <[email protected]> |
Also it would propably help if I showed the output I am currently getting
from the SOAP client/server.
This is from the client PHP SOAP extension output functions. The first part
of the output isjust where I echoed the XML file before converting it to a
PHP array structure to pass through the SOAP server class call.
<?xml version="1.0" encoding="UTF-8"?>
<tnt:AmazonEnvelope xmlns:tnt="urn:schemas:tnt"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:schemas:tnt schemas/Amazon/amzn-envelope.xsd">
<tnt:Header>
<tnt:DocumentVersion>1.1</tnt:DocumentVersion>
<tnt:MerchantIdentifier>M_STORENAME_8675309</tnt:MerchantIdentifier>
<tnt:OverrideReleaseId>1.0</tnt:OverrideReleaseId>
</tnt:Header>
<tnt:MessageType>FulfillmentCenter</tnt:MessageType>
<tnt:PurgeAndReplace>true</tnt:PurgeAndReplace>
<tnt:EffectiveDate>2009-10-31T00:00:00</tnt:EffectiveDate>
<tnt:Message>
<tnt:MessageID>8675309</tnt:MessageID>
<tnt:OperationType>Update</tnt:OperationType>
<tnt:FulfillmentCenter>
<tnt:FulfillmentCenterID>TrollAndToadStore</tnt:FulfillmentCenterID>
<tnt:SupportsInStorePickup>true</tnt:SupportsInStorePickup>
<tnt:OperatingHours>
<tnt:Monday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Monday>
<tnt:Tuesday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Tuesday>
<tnt:Wednesday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Wednesday>
<tnt:Thursday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Thursday>
<tnt:Friday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Friday>
<tnt:Saturday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Saturday>
<tnt:Sunday>
<tnt:Open>09:00:00</tnt:Open>
<tnt:Close>17:00:00</tnt:Close>
</tnt:Sunday>
</tnt:OperatingHours>
</tnt:FulfillmentCenter>
</tnt:Message>
</tnt:AmazonEnvelope>
<br/><br/>Dumping request headers: <br/>POST
/Amazon/AmazonServicesServer.php HTTP/1.1
Host: 127.0.0.1
Connection: Keep-Alive
User-Agent: PHP-SOAP/5.3.0
Content-Type: application/soap+xml; charset=utf-8;
action="http://127.0.0.1/Amazon/AmazonServices"
Content-Length: 222
<br/><br/>Dumping request: </br/><?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="http://127.0.0.1/Amazon/AmazonServices.wsdl"><env:Body><ns1:AmazonServicesPut/></env:Body></env:Envelope>
<br/><br/>Dumping response headers: <br/>HTTP/1.1 200 OK
Date: Mon, 19 Oct 2009 13:16:28 GMT
Server: Apache/2.2.11 (Unix) mod_ssl/2.2.13 OpenSSL/0.9.8k DAV/2 PHP/5.3.0
X-Powered-By: PHP/5.3.0
Content-Length: 222
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/soap+xml; charset=utf-8
<br/><br/>Dumping response: <br/><?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:ns1="http://127.0.0.1/Amazon/AmazonServices.wsdl"><env:Body><ns1:AmazonServicesGet/></env:Body></env:Envelope>
<br/></p><br/>
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-tp25950961p25963175.html
Sent from the Php - Soap mailing list archive at Nabble.com.