[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Missing XML elements in EndOfElement
There is a search on the archive screen.
http://www.scottklement.com/archives/ftpapi/
Much of the archive is also searchable via google. Use the site:scottklement.com modifier like this:
end of element site:scottklement.com
https://www.google.com/search?q=end+of+element+site%3Ascottklement.com&ie=utf-8&oe=utf-8
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Don Brown
Sent: Friday, May 15, 2015 1:55 AM
To: HTTPAPI and FTPAPI Projects
Subject: Missing XML elements in EndOfElement
Hello All;
First question is how do I search the HTTPAPI archives as I would imagine the problem we are having has been answered before.
The problem we are experiencing is in processing the returned xml.
We are using:
rc = http_url_post_xml(
'https://dev.payt.com.au:8443/TransactionService.svc'
: %addr(SOAP) + 2 // Data to post to server
: %len(SOAP) // Length of data
: %paddr(StartOfElement) // Procedure to call at start of
each element
: %paddr(EndOfElement) // Procedure to call at end of
each element
: *NULL // Data to pass to procedure
: HTTP_TIMEOUT // Secconds before give up
: HTTP_USERAGENT // User-Agent string passed
: 'text/xml; charset=utf-8' //Content type
: 'http://tempuri.org/ITransactionService/GetTransactionSummary');
Running in debug and stopping in the EndOfElement procedure we are skipping all the transaction detail - (See attached text file)
We receive the following (end of) elements;
a:StartDate
a:EndDate
a:NetworkName
a:RecordCountMessage
a:TransactionDetail
Here is a snippet of the data being received (More data is in the attached
file)
We do not see any of the detail elements in the EndOfElement procedure.
If I run this in SoapUI the data seems to be displayed correctly. (The wsdl is available from
https://dev.payt.com.au:8443/TransactionService.svc?wsdl)
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<GetTransactionSummaryResponse xmlns="http://tempuri.org/">
<GetTransactionSummaryResult xmlns:a="
http://schemas.datacontract.org/2004/07/Payt.BusinessEntities" xmlns:i="
http://www.w3.org/2001/XMLSchema-instance">
<a:StartDate>20-01-2015</a:StartDate>
<a:EndDate>20-01-2015</a:EndDate>
<a:NetworkName>Network 1</a:NetworkName>
<a:RecordCountMessage i:nil="true"/>
<a:TransactionDetail>
<a:TransactionDetail>
<a:Tag>P</a:Tag>
<a:NetworkID/>
Yes there are two consecutive tags <a:TransactionDetail> - could this be causing a problem ?
What other information could I provide to assist in determining our problem ?
Thank you for your assistance.
Regards
Don Brown
MSD Information Technology
Suite 5/29 McDougall Street Milton Q 4064 ( 07 3368 7888
+ PO Box 1629 MILTON Q 4054
Ê 07 3368 7877
* Don.Brown@xxxxxxxxxx
È 0408 751 644
þ www.msd.net.au www.architect4web.com.au
I am a proud supporter of THE REFERRAL NETWORK and recommend the services of the other member businesses. For more information please checkout the website www.refnet.net.au
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------