Hi,
I’ve to call a webservice from Ivanti.
With a small Powserhsell script, it works:
$secpasswd = ConvertTo-SecureString "TooSecret" -AsPlainText -Force
$mycreds = New-Object System.Management.Automation.PSCredential ("myuser", $secpasswd)
$myWS = New-WebServiceProxy -uri http://myserver/mbSDKService/MsgSDK.asmx?WSDL -Credential $mycreds
$myWS.WhoAmI()
The result only return “mysuser” (it’s the attended result).
But I don’t understand how I’ve to do the same thing with Lucee? How can I login ?
I’m completely lost
Thanks for your help and your consideration.
Kind regards,
Christophe
Hi,
I’m testing with this code :
<cfset wsobj = createObject("webservice", "http://*****/mbSDKService/MsgSDK.asmx?WSDL",{refreshwsdl=true,username="****",password="****",authtype="NTLM",workstation="***",ntlmdomain="***",wsversion=2})>
<cfdump var="#wsobj#" >
But I’ve got this error:
Thanks for your help.
Christophe
the 401 is coming from the .net side of things
I don’t believe ntlm is supported?
- webservice: a struct containing the following optional keys (username,password,proxyServer,proxyPort,proxyUser,proxyPassword)
I’d avoid webservices if at all possible, simple REST calls are going to be a lot easier and more reliable
Lucee has a very old implementation using Axis 1 and it’s not actively maintained
But is there an alternative to use this kind of webservice?
I will try simple REST, I have never used that …
Christophe
These links will be more helpful to you while trying the rest
Thank you very much I don’t want to give up Coldfusion to program in .Net
I’m old school, when i say REST I actually just meant a plain old page which returns json