PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Vies Soap "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"
Vies Soap "http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl"
Iniciado por guest, 02,jun. 2014 14:20 - 4 respuestas
Publicado el 02,junio 2014 - 14:20
Hi

I try to implement this soap service within a project but I get Always the message "wrong input"

The code looks like this.

"SOAP.Name[1]="countryCode"
SOAP.Type[1]=SOAPStringType
SOAP.Value[1]="BE"

SOAP.Name[2]="vatNumber"
SOAP.Type[2]=SOAPStringType
SOAP.Value[2]="0412345678"

bRes is boolean
bRes=SOAPRun("http://ec.europa.eu/taxation_customs/vies/services/checkVatService", "checkVat", "urn:ec.europa.eu:taxud:vies:services:checkVat:types", "")

Is there any error on this code or do I forget somthing? :confused:

Regds
Henri Parianos
Publicado el 02,junio 2014 - 14:39
Why not import the WSDL and run it using the windev objects?
Publicado el 02,junio 2014 - 14:57
Import de wdsl as webservice and use the following code

CVS is checkVatService.checkVat
CVSR is checkVatService.checkVatResponse
CVS.countryCode = pLandcode
CVS.vatNumber = pBTWNummer

CVSR = checkVatService.checkVat(CVS)
Publicado el 02,junio 2014 - 15:42
Thanks to all
It works ! :cheers:
Miembro registrado
4 mensajes
Publicado el 15,marzo 2016 - 11:52
Thanks for your response. It was an good help for me too.