Missing element in SOAP response object
| From: | Song Qiu | Date: | Wed, 13 Oct 2004 20:53:26 +0000 |
| Subject: | Missing element in SOAP response object | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-14903@lists.php.net to get a copy of this message | ||
Hi,
I have a PEAR:SOAP client to call a SOAP sever to get an object. After
receiving the object, I found that there is an attribute missing. Here is
actual trace info and returned object dump. In there you can see that there
are two outgTraceEntries entries in the trace. But in the object, there is
only one. For incoTraceEntries, it looks right, there are two entries in the
object.
Any idea why?
Thanks!
Song
OUTGOING:
POST / HTTP/1.0
User-Agent: PEAR-SOAP 0.8.0RC2-devel
Host: test16.ai.elab.tumbleweed.com
Content-Type: text/xml; charset=UTF-8
Content-Length: 539
SOAPAction: ""
<?xml version="1.0" encoding="UTF-8"?>
<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:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns4="urn:MailGate"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns4:getMessageTraceLog>
<messageId xsi:type="xsd:int">58</messageId></ns4:getMessageTraceLog>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
INCOMING
HTTP/1.1 200 OK
Server: gSOAP/2.6
Content-Type: text/xml; charset=utf-8
Content-Length: 2129
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:MailGate="urn:MailGate">
<SOAP-ENV:Body
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
id="_0">
<SoapMessageTraceLog>
<messageId>58</messageId>
<received>1097612884</received>
<toEmail xsi:type="xsd:string">pop9@barra.tumbleweed.com</toEmail>
<fromEmail xsi:type="xsd:string">pop34@barra.tumbleweed.com</fromEmail>
<fromDisplay xsi:type="xsd:string">pop34@barra.tumbleweed.com</fromDisplay>
<subject xsi:type="xsd:string">Warning: The Badtimes virus</subject>
<reason xsi:type="xsd:string">unlicensed</reason>
<av-classification>0</av-classification>
<av-error-on-scan>false</av-error-on-scan>
<av-down>false</av-down>
<av-info xsi:type="xsd:string">
</av-info>
<virus-name xsi:type="xsd:string">
</virus-name>
<incoTraceEntries xsi:type="xsd:string">Oct 12 13:28:04 localhost
postfix/smtpd[10133]: 3DB57200004:
client=barra.tumbleweed.com[10.1.120.51]
</incoTraceEntries>
<incoTraceEntries xsi:type="xsd:string">Oct 12 13:28:04 localhost
postfix/cleanup[10134]: 3DB57200004:
message-id=<1231620041021220289574@barra.tumbleweed.com>
</incoTra
ceEntries>
<outgTraceEntries xsi:type="xsd:string">Oct 12 13:28:04 localhost
postfix/nqmgr[3946]: 3DB57200004:
from=<BOUNCE-pop34=40barra.tumbleweed.com@test16.ai.elab.tumbleweed.com&g
t;, size=1392, nrcpt=1 (queue active)
</outgTraceEntries>
<outgTraceEntries xsi:type="xsd:string">Oct 12 13:28:04 localhost
postfix/smtp[10138]: 3DB57200004: to=<pop9@barra.tumbleweed.com>,
relay=pan.ai.elab.tumbleweed.com[192.168.3.31], delay=0, status=sent (250
Ok)
</outgTraceEntries>
<filterTraceEntries xsi:type="xsd:string">10/12/04 13:28:04.312 INFO
[email-pool-5654] Processing 3DB57200004: writing file 3DB57200004: log id
58 filter_result 0 msg_id
<1231620041021220289574@barra.tumbleweed.com>
</filterTraceEntries
>
</SoapMessageTraceLog>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope></pre>
Return object:
Array
(
[messageId] => 58
[received] => 1097612884
[toEmail] => pop9@barra.tumbleweed.com
[fromEmail] => pop34@barra.tumbleweed.com
[fromDisplay] => pop34@barra.tumbleweed.com
[subject] => Warning: The Badtimes virus
[reason] => unlicensed
[av-classification] => 0
[av-error-on-scan] => false
[av-down] => false
[av-info] =>
[virus-name] =>
[incoTraceEntries] => Array
(
[0] => Oct 12 13:28:04 localhost postfix/smtpd[10133]:
3DB57200004: client=barra.tumbleweed.com[10.1.120.51]
[1] => Oct 12 13:28:04 localhost postfix/cleanup[10134]:
3DB57200004: message-id=<1231620041021220289574@barra.tumbleweed.com>
)
[outgTraceEntries] => Oct 12 13:28:04 localhost postfix/smtp[10138]:
3DB57200004: to=<pop9@barra.tumbleweed.com>,
relay=pan.ai.elab.tumbleweed.com[192.168.3.31], delay=0, status=sent (250
Ok)
[filterTraceEntries] => 10/12/04 13:28:04.312 INFO [email-pool-5654]
Processing 3DB57200004: writing file 3DB57200004: log id 58 filter_result 0
msg_id <1231620041021220289574@barra.tumbleweed.com>
)
Thanks.
Song
Thanks.
Song