How to set URL for a httpRequest send via SendFormArray()?
How do I set an URL when I post a httpRequest via SendFormArray of my Ensemble Business Operation. Here is my code:
Parameter INVOCATION = "Queue";
Method Login(pRequest As CareHome.Request.LoginRequest, Output pResponse As Ens.StringResponse)
set tURL = ..Adapter.URL_"login/login"
set httpRequest = ##class(%Net.HttpRequest).%New()
set httpRequest.EntityBody = jsonStream
set tSC = ..Adapter.SendFormData(.tHttpResponse,"POST",httpRequest)
set pResponse.StringValue = tHttpResponse.Data.Read()
So, I am setting a tURL (which differs per REST operation) but I don't know how to include it in the SendFormData(). I have tried using an alternative function such as PostUrl() but in that function I cannot include the ContentType.