Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Client: Incorrect number of parameters supplied for SOAP req
Message
From
10/10/2010 12:41:13
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Client: Incorrect number of parameters supplied for SOAP req
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01484626
Message ID:
01484626
Views:
1068
Hi all,

I'm trying to access this website http://ec.europa.eu/taxation_customs/vies/ for a VAT validation number but get the error - "Client: Incorrect number of parameters supplied for SOAP request"

The code
local lValid as Boolean
local countryCode as string
local vatNumber as string
local cName as string
local cAddress as string
local ldDate as date

lcUrl = "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"
local o as MSSOAP.SoapClient30
o = createobject("MSSOAP.SoapClient30")

loException = null

llError=.f.
try
	o.MSSoapInit(lcUrl)
catch to loException
	llError = .t.
endtry

if llError
	? "Unable to load WSDL file from " + lcUrl
	return
endif

loException  = null

try
	countryCode="PT"
	vatNumber="502441240"
	ldDate = date()

	loNL =  o.CheckVat(@countryCode, @vatNumber)
catch to loException
	llError = .t.
endtry

*** Check for SOAP Error first  - set even if Exception

if (o.FaultCode != "")  && Client or Server (usually Server)
	wait window  o.FaultString
	return
endif

*** If no SOAP Error check Exception
if !isnull(loException)
	? loException.message
	? loException.errorno
	return
endif
any help will be appreciated.

João Batista
Next
Reply
Map
View

Click here to load this message in the networking platform