<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <navFunction xmlns="urn:microsoft-dynamics-schemas/codeunit/NAV"> <text> <field1>value1</field1> <field2>value2</field2> <field3>value3</field3> </text> </navFunction> </soap:Body> </soap:Envelope>
navFunction(Text : BigText) Text[1024] CLEAR(XMLDocument); CREATE(XMLDocument); TempBlob.INIT; TempBlob.Blob.CREATEOUTSTREAM(WriteStream); TextoEntrada.WRITE(WriteStream); TempBlob.CALCFIELDS(Blob); TempBlob.Blob.CREATEINSTREAM(ReadStream); XMLDocument.load(ReadStream); XMLNodeList:=XMLDocument.childNodes; .... ....
<?xml version="1.0"?> -<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">-<s:Body>-<s:Fault><faultcode xmlns:a="urn:microsoft-dynamics-schemas/error">a:Microsoft.Dynamics.Nav.Types.Exceptions.NavNCLAutomationVariableNotCreatedException</faultcode><faultstring xml:lang="es-ES">The automation variable has not been instantiated.</faultstring>-<detail><string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">The automation variable has not been instantiated.</string></detail></s:Fault></s:Body></s:Envelope>
value1
value2
value3