Back to forum list… Back to How Do I?...

Xml Reader issues trying to read from eBay api (7 replies)

Browndog
4 years ago
Browndog 4 years ago

Hi,

I have a simple get request as attached from the eBay api which I am trying to replicate in Iman. I have setup the Oauth (tested success) and web service behaviour, created a new integration with an xml reader and attempted to read from the web service, however I get the below error however I configure the entry paths. I am not sure at this point where it is going wrong, how do I tell if the response is properly returning to Iman beofre I try and read from it?   

An error occurred whilst reading the source data. Error - The entry path for the iterator is invalid. Check the documents being parsed match to the expected layout.

Successful Response below


<GetOrdersResponse
xmlns="urn:ebay:apis:eBLBaseComponents">
2020-10-08T13:40:56.657Z
Success
1173
E1173_INTL_APIXO_19277479_R1

2
131

true


12345656
Completed
0.0
30.86
1.26

https://www.realisable.co.uk/wp-content/uploads/2020/10/Capture2.jpg
Browndog
4 years ago
Browndog 4 years ago

Xml reader config attached

https://www.realisable.co.uk/wp-content/uploads/2020/10/Capture.jpg
Browndog
4 years ago
Browndog 4 years ago

Web service Behaviour attached

https://www.realisable.co.uk/wp-content/uploads/2020/10/Capture-1.jpg
Browndog
4 years ago
Browndog 4 years ago

Response body screenshot.

I have tried to follow documentation regarding entry paths which I have tried a number of permutations with all giving the same error which makes me think the response I am getting is not correct.

https://www.realisable.co.uk/wp-content/uploads/2020/10/Capture-2.jpg
Browndog
4 years ago
Browndog 4 years ago

Further update, after enabling trace I can now see Iman is receiving the correct response so the issue lies with the xml reader, I have had this issue before on a json reader which required a patch I believe. 

Support
4 years ago
Support 4 years ago

Browndog, I suspect the issue relates to the namespaces in the Xml response aren't configured in the reader.

Below is a forum post which may guide you to the issue.

https://www.realisable.co.uk/how-do-i/xml-data-reading-namespaced-file/

Please note that we do offer an eBay connector for such a task.

https://www.realisable.co.uk/connect/ebay/

 

Browndog
4 years ago
Browndog 4 years ago

Hi,

Thanks for example, I have followed this and whilst the error is no longer displayed I do not get any results in the preview. We did look at the extension you do but some of the requirements we have are more than the scope of the connector at this point.

I am using xml entry point /ns:GetOrdersResponse with attached transaction paths

Namespace is xmlns:ns="urn:ebay:apis:eBLBaseComponents"

Is there something I am missing?

 

https://www.realisable.co.uk/wp-content/uploads/2020/10/Capture-3.jpg
Support
4 years ago
Support 4 years ago

Put the namespace in front of each path declaration.

Contact

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Request Demo

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close

Access Downloads

Realisable Software Ltd provides code-free, cost-effective applications integration solutions for SMEs. Our core IMan product is designed to integrate almost any application with a number of Sage solutions and online payment processors.

Looking to purchase IMan, please see our resellers here.

Realisable Software
Ph: +44 (0) 208 123 1017

Copyright © Realisable. All rights reserved.
Realisable is a registered trademark

Close