FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV 2024
→
WDSL VECOZO
WDSL VECOZO
Débuté par Wouter Dral, 19 déc. 2016 17:04 - 6 réponses
Connectez-vous…
Wouter Dral
#1
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
Signaler
0
0
Wouter Dral
#2
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
Signaler
0
0
Peter Holemans (BE)
#3
Membre enregistré
123 messages
Popularité : +7 (9 votes)
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
arr
Certificate is
array of Certificates
MyCertificate is
Certificate
arr
Certificate
=
CertificateLoad
(
"CER.p12"
,
"password"
)
MyCertificate
=
arr
Certificate
[
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)
st
Param is a ControleerRequestType
st
Param.Zoekopdrachten.Zoekopdracht.Bsn
=
EDT_
BSN
st
Param.Zoekopdrachten.Zoekopdracht.Geboortedatum
=
DateToString
(
EDT_
Geb_datum
,
"YYYY-MM-DD"
)
st
Param.Zoekopdrachten.Zoekopdracht.Peildatum
=
DateToString
(
d
CheckDate
,
"YYYY-MM-DD"
)
st
Param.Zoekopdrachten.Zoekopdracht.Volgnummer
=
"1"
// Execute the Webservice
st
Resp is ControleerResponse
st
Resp
=
ControleerRequestType
(
ctx
,
st
Param
)
Cheers,
Peter Holemans
--
Peter Holemans
www.mcs2.eu
Signaler
0
0
Wouter Dral
#4
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!
Signaler
0
0
Wouter Dral
#5
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
Signaler
0
0
Peter Holemans (BE)
#6
Membre enregistré
123 messages
Popularité : +7 (9 votes)
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
Signaler
0
0
Wouter Dral
#7
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
Signaler
0
0
→ Revenir à WINDEV 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML
JAVA, Javascript
Texte