I have a web service that was created in c# in visual studio community 2019. When I launch the web service application on my development machine, the following page is displayed:
When I click on the "mq", this page is displayed:
When I enter a string of the appropriate layout into the input box next to mqRequest and click on invoke, the string that I entered is sent to the web service. The web service receives the string, process the string, and returns a string. This all works exactly as I anticipated.
Then, I deployed the web service to an AWS beanstalk instance. I verified that the instance is "green" by logging into the AWS account and viewing the beanstalk environment.
Now, I have a web application that is being developed in Visual Studio 2019 community MAC version and I need to have this web application send a string to the web service.
I have tried the following code:
HttpClient client = new HttpClient();
var APIResponse = client.GetStringAsync(url).Result;
with the url variable equal each of these:
http://mqxxxxxxxxx.elasticbeanstalk.com/WebService.asmx/mqRequest= http://mqxxxxxxxxx.elasticbeanstalk.com/WebService.asmx/mq/mqRequest=
In each case, I get an internal server error. I cant see what the internal server error is since the server is on AWS and is using a default config setting with custom Errors set to off.
What is the proper way to set up the url variable so that the is passed to the web service and processed by the mq action?
Thanks for any assistance.