[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AW: Missing XML elements in EndOfElement



   Hi Don,
   The error Thomas reports is actually the same error that Notepad++
   reports and is the same error you already mentioned.
   The first  <TransactionDetail> element is not closed by another
   </TransactionDetail>. The inner <TransactionDetail> elements are all
   correctly closed.
   The xml file just is not correct. Have the supplier fix the xml file
   and you can parse the file.
   Kind regards,
   Loek. Maartens.

   On 15-5-2015 3:51, Thomas Raddatz wrote:

I get the following error message when parsing your trans.txt with a modified ve
rsion of EXAMPLE11:

XML parse failed at line 2509, col 11: mismatched tag

But in contrast to you, I got all "TransactionDetail" elements before. Please en
able the HTTPAPI debug log and post it here. Remove all sensitive data, such as
user name and password, before posting it.

Thomas.

-----Ursprüngliche Nachricht-----
Von: [1]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [[2]mailto:ftpapi-bounces@xxxxxxxx
ottklement.com] Im Auftrag von Thomas Raddatz
Gesendet: Freitag, 15. Mai 2015 09:33
An: HTTPAPI and FTPAPI Projects
Betreff: AW: Missing XML elements in EndOfElement

Don,

Notepad++ reports the following error when I check the XML syntax:

XML Parsing error at line: 2512
Premature end of data in tag Envelope line 1

In fact there is no closing tag for the very first "TransactionDetail" element t
hat follows "RecordCountMesssage". I do not know if that is the core of the prob
lem, but at least it is a problem.

Regards,

Thomas.

-----Ursprüngliche Nachricht-----
Von: [3]ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [[4]mailto:ftpapi-bounces@xxxxxxxx
ottklement.com] Im Auftrag von Don Brown
Gesendet: Freitag, 15. Mai 2015 08:55
An: HTTPAPI and FTPAPI Projects
Betreff: Missing XML elements in EndOfElement

Hello All;

First question is how do I search the HTTPAPI archives as I would imagine the pr
oblem 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(
       '[5]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
       : '[6]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 a
vailable from
[7]https://dev.payt.com.au:8443/TransactionService.svc?wsdl)

<s:Envelope xmlns:s=[8]"http://schemas.xmlsoap.org/soap/envelope/";>
   <s:Body>
      <GetTransactionSummaryResponse xmlns=[9]"http://tempuri.org/";>
         <GetTransactionSummaryResult xmlns:a=[10]"
http://schemas.datacontract.org/2004/07/Payt.BusinessEntities"; xmlns:i=[11]"
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
*  [12]Don.Brown@xxxxxxxxxx
È 0408 751 644
þ  [13]www.msd.net.au  [14]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 [15]w
ww.refnet.net.au


--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended r
ecipient only. Access, disclosure, copying, distribution, or reliance on any of
it by anyone else is prohibited and may be a criminal offence. Please delete if
obtained in error and email confirmation to the sender.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
[16]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
--
IMPORTANT NOTICE:
This email is confidential, may be legally privileged, and is for the intended r
ecipient only. Access, disclosure, copying, distribution, or reliance on any of
it by anyone else is prohibited and may be a criminal offence. Please delete if
obtained in error and email confirmation to the sender.

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
[17]http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

References

   1. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   2. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   3. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   4. mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
   5. https://dev.payt.com.au:8443/TransactionService.svc
   6. http://tempuri.org/ITransactionService/GetTransactionSummary
   7. https://dev.payt.com.au:8443/TransactionService.svc?wsdl
   8. http://schemas.xmlsoap.org/soap/envelope/
   9. http://tempuri.org/
  10. http://schemas.datacontract.org/2004/07/Payt.BusinessEntities
  11. http://www.w3.org/2001/XMLSchema-instance
  12. mailto:Don.Brown@xxxxxxxxxx
  13. http://www.msd.net.au/
  14. http://www.architect4web.com.au/
  15. http://www.refnet.net.au/
  16. http://www.scottklement.com/mailman/listinfo/ftpapi
  17. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------