help with web methods

Post Reply
Posts: 9
Joined: Thursday 24th October 2019 2:14pm

help with web methods

Post by salihburhan » Friday 15th May 2020 3:04pm

I need to integrate a web service into my desktop application..
I tried to use httpclient of curl, but could not. I have no idea what I am doing.. 8)
If anyone has a sample code for me to debug, I'd be most grateful.
All I need to do is use some methods on the remote server.

Here is how I failed (the objective is to run IsEInvoiceUser on the server):

$ww = "<s:Envelope xmlns:s=\"\">" &
"<s:Body xmlns:xsi=\"\" xmlns:xsd=\"\">" &
"<IsEInvoiceUser xmlns=\"\">" &
"<userInfo Username=\"Uyumsoft\" Password=\"Uyumsoft\"/>" &
"<vknTckn> 9000068418 </vknTckn>" &
"<alias/></IsEInvoiceUser>" &
"</s:Body>" &

$cu.URL = " ... ntegration"
$cu.User = "Uyumsoft"
$cu.Password = "Uyumsoft"
$cu.Post("application/json", $ww)
$wRes = $cu.Peek()
Message($wRes, "OK")

User avatar
Site Admin
Posts: 447
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: help with web methods

Post by cogier » Sunday 17th May 2020 3:07pm

I am not sure if this will help but please have a look. I have written code to access web based APIs. My program 'Your_Location' is one. It is on the Gambas Farm or available here. Look at the 'Web.Class'.

Post Reply