How to call webservice in Navision codeunit ?

Could anybody tell me How to call webservice methods in Navision codeunit ? Thank you very much.

Here is an example I already used: IF ISCLEAR(SoapHttpConn) THEN CREATE(SoapHttpConn); SoapHttpConn.Property('EndPointURL','http://localhost/WSTest/Service1.asmx'); SoapHttpConn.Connect; SoapHttpConn.Property('SoapAction','http://tempuri.org/HelloWorld'); SoapHttpConn.BeginMessage; IF ISCLEAR(SoapSerialize) THEN CREATE(SoapSerialize); SoapSerialize.Init(SoapHttpConn.InputStream); SoapSerialize.startEnvelope('','STANDARD'); SoapSerialize.startBody; SoapSerialize.writeXML('<HelloWorld xmlns="http://tempuri.org"></HelloWorld>'); SoapSerialize.endBody; SoapSerialize.endEnvelope; SoapHttpConn.EndMessage; IF ISCLEAR(XmlDom) THEN CREATE(XmlDom); XmlDom.load(SoapHttpConn.OutputStream); XmlDom.save('c:\temp.xml'); CREATE(XmlDomNew); XmlNode := XmlDom.firstChild(); XmlDomNew.appendChild(XmlNode); XmlNode := XmlDom.selectSingleNode('//customsOffices'); attributes := XmlNode.attributes(); attributes.removeNamedItem('xmlns'); XmlDomNew.appendChild(XmlNode); XmlDomNew.save('c:\temp.xml'); Testfile.OPEN('c:\temp.xml'); Testfile.CREATEINSTREAM(TestStream); XMLPORT.IMPORT(99999,TestStream); Testfile.CLOSE; SoapHttpConn Automation ‘Microsoft Soap Type Library’.HttpConnector SoapSerialize Automation ‘Microsoft Soap Type Library’.SoapSerializer XmlDom Automation ‘Microsoft XML, v5.0’.DOMDocument XmlNode Automation ‘Microsoft XML, v5.0’.DOMDocument attribute Automation ‘Microsoft XML, v5.0’.IXMLDOMNamedNodeMap Hope this helps…

I cannot Register the soap component. I download soap sdk kit and installed on my computer. but I cannot find custom control list. I did even try to register in Navision. don’t know how to register the soap component.

thanks.

dave