I Want to create a codunite to login and push navision data in php magento. for this i want to use navision codeunit “XML DOM Management”. But i don’t know the Actual Syntax or process logic how to create this code unit if any one who know’s how to do this please guide me the logic and process.
Example of My Codeunit for loginRequest
RootNode := XMLRequest.CreateNode(‘element’,‘soap:Envelope’,SOAPNamespace);
XMLDomMgt.AddAttribute(RootNode,‘xmlns:xsd’,XSDNamespace);
XMLDomMgt.AddAttribute(RootNode,‘xmlns:xsi’,XSINamespace);
XMLDomMgt.AddAttribute(RootNode,‘xmlns:soapenc’,SOAPENCNamespace);
XMLDomMgt.AddElement(RootNode,‘SOAP-ENV:Body’,’’,SOAPNamespace,BodyNode);
XMLDomMgt.AddElement(BodyNode,‘ns1:login’,’’,NS1Namespace,LoginNode);
XMLDomMgt.AddAttribute(LoginNode,‘xmlns:ns1’,‘urn:Magento’);
Thanx in Advance.