check tax number at our coldfusion sytem of crm-erp
Hello,
I want to check tax number at our coldfusion sytem of crm-erp.For example we are adding a company of our crm but we dont know that its tax number true or false.So ı tried make it like this code but ıts not work.Can u help me please?
<cfscript>
wsURL = ' http://185.198.197.162/vknsorgulama/getall/dogrulama?vkn=18644905568&durum=2';
Ad= 'GÜNGÖR',
Soyad= 'YILMAZ',
BabaAdi= 'MEMET',
VergiDairesiAdi= 'KALEKAPI',
VergiDairesiKodu= '007252',
VKN= '9690365396',
Unvan= null,
</cfscript>
<cfxml variable="requestXML"><cfoutput>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://www.w3.org/2001/XMLSchema-instance">
<soap:Header/>
<soap:Body>
<ws:VKN>
<ws:VKN>#VKN#</ws:VKN>
<!--Optional:-->
<ws:Ad>#Ad#</ws:Ad>
<!--Optional:-->
<ws:Soyad>#Soyad#</ws:Soyad>
<ws:VergiDairesiAdi>#VergiDairesiAdi#</ws:VergiDairesiAdi>
</ws:VKN>
</soap:Body>
</soap:Envelope></cfoutput>
</cfxml>
<cfhttp url = "#wsURL#" method = "post" result = "res">
<cfhttpparam type="header" name="content-type" value="text/xml">
<cfhttpparam type="header" name="SOAPAction" value="http://tempuri.org/DisKullaniciKimlikDogrula2">
<cfhttpparam type="header" name="content-length" value="#len(trim(requestXML))#">
<cfhttpparam type="header" name="charset" value="utf-8">
<cfhttpparam type="xml" name="message" value="#trim(requestXML)#">
</cfhttp>
<cfset VKNResult = xmlParse(res.FileContent).Envelope.Body.VKNResponse.VKNResult.XmlText>
<cfdump var="#VKNnResult#">
