Need help with web service client

Hi,

I’m working on the magento api v2 and I’m using the web service client component to do the job. Setting it up was in the component was ok until I tried running the graph. I have a request structure that says something like this:

<urn:salesOrderListRequestParam xmlns:urn=“urn:Magento”>
$session_id

<complex_filter>

increment_id

customer_id
1


</complex_filter>

</urn:salesOrderListRequestParam>

I’d get the all the orders for customer 1. However, when I change my filter to key=status and value=pending like this:

<urn:salesOrderListRequestParam xmlns:urn=“urn:Magento”>
$session_id

<complex_filter>

increment_id

status
pending


</complex_filter>

</urn:salesOrderListRequestParam>

get this error message: Node WEB_SERVICE_CLIENT1 finished with status: ERROR caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[211,6]
Message: XML document structures must start and end within the same entity.

But when I use the same request structure and leave the response mapping blank, it goes through.

I’m really new at this and I need help.

Thanks in advance.

Hi noob27,

seems to me there is issue in malformed XML data returned from server. Can use tool like http://www.soapui.org/ or http://soapclient.com/soaptest.html to grasp message from server to see whether XML is valid?

Hi Jarek,

Thanks for the quick response. You’re right, I tried using the tool and it was a problem with the response structure. It was an invalid xml document. I’ve re-installed my magento site and it’s still giving me the same invalid xml. Atleast now I know what’s causing the problem. I really appreciate your help.