Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Client: Incorrect number of parameters supplied for SOAP
Message
 
À
10/10/2010 12:41:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01484626
Message ID:
01484628
Vues:
44
Th correctly WSDL is http://ec.europa.eu/taxation_customs/vies/services/checkVatService.wsdl

MartinaJ

>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform