Java version "1.7.0_71
I need help.
Using the http plugin, I am attempting to download data from a remote server that uses DotNet. I am assured by the owner of the remote server that the url (with obfuscated IP address) in the below code snippet is correct. However, whenever the code is executed, the returned status is always 500, and the XML response is always an error message. I use the exact same url in a Visual FoxPro implementation and valid data is returned. Also, the server owner sent a test program of theirs that also returns the expected data. Can anyone explain why the Servoy implementation does not work?
- Code: Select all
var url = 'http://xxx.xxx.xxx.xxx/EAM.Outbound.WebServices/OutBoundService.asmx?op=GetTodayXML'
var httpClient = plugins.http.createNewHttpClient()
var httpGet = httpClient.createGetRequest( url )
var httpResponse = httpGet.executeRequest()
var httpStatus = httpResponse.getStatusCode()
var xml = httpResponse.getResponseBody()
Also, is there a way to 'see' what the http plugin is emitting/sending to the remote server? I tried using the Wireshark network protocol analyzer, however, it doesn't show the url in its entirety (as in the code).