Problem with XMLPort import

Hi!

I have a problem with an xml that I like import in NAV 2009 with XMLPorts.

My XML is:

<env:Envelope xmlns:env="">schemas.xmlsoap.org/…/">
env:Header</env:Header>
env:Body
<ns0:getOperacionesResponse xmlns:ns0="">http://gasoil.interna/">
http://gasoil.interna/">](http://gasoil.interna/)

60.0
0
1
2986
204479
9999
8899788532

0001-01-01T00:00:00+01:00
2010-08-31T23:59:59+02:00
4440
XX5BCB

0.0
19
Gasoleo C

I had defined an XMLport with this structure (following this link: www.mibuso.com/…/viewtopic.php

In my XMLPort

OnPreXMLport()
NS1 := NSpace1;
NS2 := NSpace2;
NS3 := NSpace3;

Globals:

My codeunit for import the XML.

importGasoil()
file.TEXTMODE(TRUE);
file.WRITEMODE(FALSE);

file.OPEN(‘c:\FacturacionGasoil.xml’);
file.CREATEINSTREAM(inStream);

XMLPORT.IMPORT(XMLPORT::MyXMLPortGasoil,inStream);

I receipt a lot errors when I launch my codeunit for import this XML the first is " element doesn´t exists in description object".

Anybody had the same problem and found the solution?.

Thanks in advance!!

Ana

Hi Ana,

I don’t have the answer to you question. But you posted it to the wrong forum (Membership Questions - which is only for questions about your membership of the user group).

I have moved it to the NAV Developers forum instead.