PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 22 → WDSL VECOZO
WDSL VECOZO
Débuté par Wouter Dral, 19 déc. 2016 17:04 - 6 réponses
//hostimage.webdev.info/avatars/default.gif
Posté le 19 décembre 2016 - 17:04
Dear Colleagues,

Has anyone experiance with calling/addressing the VECOZO WDSL for checking COV?

We got as far as:

//Doe controlle van de COV uitvoeren
dCheckDate is Date = DateSys()

arrCertificate is array of Certificates
MyCertificate is Certificate
arrCertificate = CertificateLoad("CER.p12", "password")
MyCertificate = arrCertificate[1]

vz801802Service.Address = "https://acccovwebservice.vecozo.nl/v1/VZ801802.svc"

WD_COV is ControleerRequestType
WD_COV.Zoekopdrachten.Zoekopdracht.Bsn = EDT_BSN
WD_COV.Zoekopdrachten.Zoekopdracht.Geboortedatum = DateToString(EDT_Geb_datum,"YYYY-MM-DD")
WD_COV.Zoekopdrachten.Zoekopdracht.Peildatum = DateToString(dCheckDate, "YYYY-MM-DD")
WD_COV.Zoekopdrachten.Zoekopdracht.Volgnummer = "1"

//Controle op verzekeringsrecht
sResult is ControleerResponse = Controleer(WD_COV)

Trace(sResult)

So far no result, please assist?

Wouter
//hostimage.webdev.info/avatars/default.gif
Posté le 29 décembre 2016 - 17:27
Sorry to have bothered you with my question about WDSL for running VECOZO COV check by it. Is there realy nobody with the proper knowledge to help out her?
Thanx in advance for a little help.

Have a save changing to next year!

Wouter
//hostimage.webdev.info/avatars/odDG6D8CcyfYRhBj9KxYpg
Membre enregistré
8 messages
Posté le 07 janvier 2017 - 14:53
Hey Wouter,

There are issues with the WX web service consumption engine... It is bugged, to say the least. That's why we're moving away from WD to .Net Core C# mostly for solutions that require high web service interoperability. C# is often more code efficient than WLanguage for web services consumption. The main bug in WD: web service parameters of 'ComplexType' get falsely encoded by WD while they should act as an xml insertion... Support confirmed that this 'enhancement request' (what a laugh) will not be implemented before 2018 (V23) or maybe never at all. (See also my comments at http://27130.foren.mysnip.de/read.php…)

Not sure about your wsdl but you might try the below. If you have no ComplexType elements in your wsdl parameters it is likely to work.
Do you really need the certificates? If so, I think you should add them to the SoapHeader in some way (like shown below)...
// Get verttificates
arrCertificate is array of Certificates
MyCertificate is Certificate
arrCertificate = CertificateLoad("CER.p12", "password")
MyCertificate = arrCertificate[1]

// Use wsRequest variable
ctx is a wsRequest

//Prepare the base web service
ControleerRequestType..Address = "https://acccovwebservice.vecozo.nl/v1/VZ801802.svc"
//Maybe add your certtificates here
IF UseCertificates THEN
ctx.HTTPHeader["CertificateOrSomethingLikeThat"] = MyCertificate..ToStringInSomeWay
ELSE //It uses a user name and password
ControleerRequestType..UserName = Domain+["\"]+UserName
ControleerRequestType..Password = Password
END

// Set additionnal WS parameters (If you have imported your wsdl into the project)
stParam is a ControleerRequestType
stParam.Zoekopdrachten.Zoekopdracht.Bsn = EDT_BSN
stParam.Zoekopdrachten.Zoekopdracht.Geboortedatum = DateToString(EDT_Geb_datum,"YYYY-MM-DD")
stParam.Zoekopdrachten.Zoekopdracht.Peildatum = DateToString(dCheckDate, "YYYY-MM-DD")
stParam.Zoekopdrachten.Zoekopdracht.Volgnummer = "1"

// Execute the Webservice
stResp is ControleerResponse
stResp = ControleerRequestType(ctx, stParam)


Cheers,

Peter Holemans

--
Peter Holemans
www.mcs2.eu
//hostimage.webdev.info/avatars/Y3cePnc47TBIw9xEACPbOA
Membre enregistré
1 message
Posté le 11 janvier 2017 - 05:28
Hi Peter. Thanks for the reply. We were out off the office because off family affairs. Will be in again tomorrow and try your code. Keep you posted!
//hostimage.webdev.info/avatars/default.gif
Posté le 11 janvier 2017 - 11:39
Hi Peter,

Thanks for looking into our strubbles. The code changes provided does not seem to solve our challenge.
Is it an idea to send you an email with our test project in Windev 21, so you can have a look at our imported WSDL?
The WSDL is provided by VECOZO by the way.

Look forward on receiving your answer in this matter,

Thanks in advance.

Wouter
//hostimage.webdev.info/avatars/odDG6D8CcyfYRhBj9KxYpg
Membre enregistré
8 messages
Posté le 13 janvier 2017 - 09:13
Hi Wouter,

Sure you can send me your wsdl. I'll have a quick look...
Send me an email at peter dot holemans at gmail dot com.

Cheers,

Peter

--
Peter Holemans
www.mcs2.eu
//hostimage.webdev.info/avatars/default.gif
Posté le 19 janvier 2017 - 14:04
Hi Peter,

Thanx in advance. I was out off the office for a few days. I will send you our little test project with the WDSL build in to it.

Talk to you later.

Kind regards


Wouter