I have xml source with embedded data...
<request type="payment-credit" timestamp="20190118130000">
<merchantid>cooksontest</merchantid>
<account>internet</account>
<amount currency='EUR'>1000</amount>
<orderid>IQ9000012</orderid>
<pasref>15469482698462820</pasref>
<paymentmethod>sofort</paymentmethod>
<sha1hash>abb192a9bd3217b2180bcc0512bd3af30c83c80a</sha1hash>
<refundhash>b51118f58785274e117efe1bf99d4d50ccb96949</refundhash>
</request>
this has been used within Integrator to generate an outbound binding.
When looking at the Trace Files, the HTTP_CONTENT.XML is corrupt..
<?xml version="1.0" encoding="utf-8"?>
<request timestamp="20190118122811" type="payment-credit">
<merchantid>cooksontest</merchantid>
<account>internet</account>
<amount/>
<orderid>IQ9000011</orderid>
<pasref>15469482698462820</pasref>
<paymentmethod>sofort</paymentmethod>
<sha1hash>0ACA8FB03A4C6BA4EB631E99A2E52BD7BF34699B</sha1hash>
<refundhash>B51118F58785274E117EFE1BF99D4D50CCB96949</refundhash>
</request>
Am I doing something wrong?
Integrator and xml binding
-
caseywhite
- Posts: 192
- Joined: Thu May 26, 2016 1:17 am
Re: Integrator and xml binding
Could it be the single quotes around the currency type. What is you make it currency="EUR" instead of currency='EUR'
-
mark.nicholls
- Posts: 2
- Joined: Fri Feb 01, 2019 11:32 pm
Re: Integrator and xml binding
It makes no difference at all.
Here's the bind.txt from the Trace files, as you can see, AMOUNT is in the first part but not the second.
Fragment - REQUEST
order: /request/@timestamp
order: /request/@type
order: /request/merchantid
order: /request/account
order: /request/amount
order: /request/orderid
order: /request/pasref
order: /request/paymentmethod
order: /request/sha1hash
order: /request/refundhash
declaration: prefix="xml" uri="http://www.w3.org/XML/1998/namespace"
field: PAYMENTMETHOD "sofort"
field: REFUNDHASH "B51118F58785274E117EFE1BF99D4D50CCB96949"
field: MERCHANTID "cooksontest"
field: ACCOUNT "internet"
field: ORDERID "IQ9000011"
field: PASREF "15469482698462820"
field: SHA1HASH "3E47BBC146DD0F18D2CDECE4C10EEF70935A5BDE"
field: TIMESTAMP "20190204100015"
field: TYPE "payment-credit"
Here's the bind.txt from the Trace files, as you can see, AMOUNT is in the first part but not the second.
Fragment - REQUEST
order: /request/@timestamp
order: /request/@type
order: /request/merchantid
order: /request/account
order: /request/amount
order: /request/orderid
order: /request/pasref
order: /request/paymentmethod
order: /request/sha1hash
order: /request/refundhash
declaration: prefix="xml" uri="http://www.w3.org/XML/1998/namespace"
field: PAYMENTMETHOD "sofort"
field: REFUNDHASH "B51118F58785274E117EFE1BF99D4D50CCB96949"
field: MERCHANTID "cooksontest"
field: ACCOUNT "internet"
field: ORDERID "IQ9000011"
field: PASREF "15469482698462820"
field: SHA1HASH "3E47BBC146DD0F18D2CDECE4C10EEF70935A5BDE"
field: TIMESTAMP "20190204100015"
field: TYPE "payment-credit"