RE: Inconsitant data

[email protected] ("Steven Macintyre")
Newsgroups php.soap
Message-ID <[email protected]>
Sorry - full correct email below;



-----Original Message-----
From: Steven Macintyre [mailto:[email protected]] 
Sent: Tuesday, March 31, 2009 5:04 PM
To: '[email protected]'
Subject: Inconsitant data

Hi all,

We are creating a call on a SOAP interface, we have no problems with the
interface accepting our other data, however two nodes are not recorded when
using $client->__getLastRequest() and trace is enabled.

Please see below;

Information passed 

Array
(
    [ShippingData] => 
    [PaymentData] => Array
        (
            [PaymentMethod] => Account
            [PaymentAccount] => G017N00000002
            [PaymentConfirmed] => A
            [PaymentReference] => 1435(32156979)
            [AuthorizationCode] => 925547
        )

    [ContactData] => 
    [OrderLineItem] => 
    [OrderNumber] => 
    [OrderDateTime] => 
    [PromoVoucher] => 
)

$client->__getLastRequest() returned;

<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.siebel.com/xml/VSOrderConfirm"><SOAP-ENV:Body><ns1:Ord
erHeader><ns1:OrderNumber></ns1:OrderNumber><ns1:OrderDateTime></ns1:OrderDa
teTime><ns1:ShippingData/><ns1:PaymentData><ns1:PaymentMethod>Account</ns1:P
aymentMethod><ns1:PaymentConfirmed>A</ns1:PaymentConfirmed></ns1:PaymentData
><ns1:OrderLineItem/><ns1:PromoVoucher/><ns1:ContactData/></ns1:OrderHeader>
</SOAP-ENV:Body></SOAP-ENV:Envelope>

You will see that two of the 5 nodes are getting processed, but the others
aren't, could this be server side issue or remote (soap interface) issue.

Lastly, this is section of the wsdl, you will see that the three that are
omitted above are indented differently form the rest. Could this be the
cause?

        <sequence>
          <element name="PaymentMethod" type="string" minOccurs="0"
maxOccurs="1"/>
          <element name="PaymentConfirmed" type="string" minOccurs="0"
maxOccurs="1"/>
		  <element name="PaymentAccount" type="string" minOccurs="0"
maxOccurs="1"/>
		  <element name="PaymentReference" type="string"
minOccurs="0" maxOccurs="1"/>
		  <element name="AuthorizationCode" type="string"
minOccurs="0" maxOccurs="1"/>
        </sequence>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.