I'm trying to incorporate a VAT checking function in my website, for validating entered VAT.
This service is granted by european Vies WSDL service.
No matter what I try, I always get the same error:
Web service operation checkVat with parameters {xx,xxxxxxxxxxx} cannot be found.
This is the last code I tried (maybe the fifth or sixth method experimented),
just straight from the Coldfusion documentation:
<cfscript>
ws = CreateObject("webservice",
"http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl");
ws.checkVat("xx","xxxxxxxxxxx");
req = getSOAPRequest(ws);
</cfscript>
<cfdump var="#req#">
<cfset soapreq = GetSOAPRequest(ws)>
<h2>SOAP Request</h2>
<cfdump var="#soapreq#">
<cfset soapresp = GetSOAPResponse(ws)>
<h2>SOAP Response</h2>
<cfdump var="#soapresp#">
Where red x represent country code and VAT number.
I'm about to let down, three days spent in trying and still no luck.
Someone willing to bang his head with mine?
Thanks anyway.