XMLPort - Import file with soap:Envelope

bhalpinbhalpin Member Posts: 309
Hi.

I've created an XMLPort to import a file that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<soap:Body>

<Order_RetrieveResponse xmlns="http://nowhere.com/pathinfo/SomebodysCRMWebservice">

<Order_RetrieveResult>

<field1>Value1</field1> 
<field2>Value2</field2> 
etc.

</soap:Body>

</soap:Envelope>

I keep getting the error:

The Element <Envelope> can not be found from object description.

I've tried putting elements soap:Envelope & soap:Body at the top of the XMLPorts node list (dumb, but i had to try it) and it makes no difference.

Is there some majic I'm missing to get the port to read this file?

Thanks in advance!

Comments

  • ta5ta5 Member Posts: 1,164
    Have a look at this:
    viewtopic.php?f=23&t=14637

    There is a problem with Namespaces, could be this.
    Hope this helps
    Thomas
  • bhalpinbhalpin Member Posts: 309
    Interesting threads - thanks!

    Now, next question: I *always* search the forum before posting a question. In this case I did a search on XMLport, 'XMLPort soap', and a few others, and I didn't see that thread.

    How did you find it?

    Thanks!
  • ta5ta5 Member Posts: 1,164
    I searched for namespace :mrgreen:
  • bhalpinbhalpin Member Posts: 309
    So obvious I didn't think of it!
Sign In or Register to comment.