I have sucessfully posted an http request to a web service running on one of our servers.
Please note I did not write the web service and have no access to the source code.
Working code:
resp, err := http.Post("http://xxx.xxx.xx.xxx:8080/webservice/", "c:\\xml\\test.xml", nil)
I now instead of using an xml file need to build up the xml from a list of values.
I have written a function that does this, it basically pieces together the xml in a string builder. and my output string looks correct.
What I am not sure of is how do I post the xml as the post function seems to take the path to a file rather than a string?
Also is building it together as a string the correct method or should I approach it differently?