Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Client: Incorrect number of parameters supplied for SOAP
Message
From
20/05/2011 06:49:24
 
 
To
10/10/2010 12:41:13
General information
Forum:
Visual FoxPro
Category:
Web Services
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:
01511213
Views:
43
Hello, João Batista

Did you find the solution for this problem?

Nicuta.


>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
Previous
Reply
Map
View

Click here to load this message in the networking platform