Android Question Soap request showing bad response

David Hawkins

Active Member
Licensed User
Longtime User
Hi I am making a Soap request to an ASMX web service, the web service is producing a JSON response which is what I am expecting but the response is showing ResponseError. Reason: Bad Request, Response: in the log

the Soap request is

Soap request:
Dim xml As String = $"<?xml version="1.0" encoding="utf-8"?>
        <soap12:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap12="">
                <GetRecords xmlns="">
        Dim job As HttpJob
        job.Initialize("Job1", Me)
        job.PostString(Main.URL & "GetChelseaRecords.asmx", xml)
        job.GetRequest.SetContentType("text/xml; charset=utf-8")
        job.GetRequest.SetHeader("Content-Type", "text/xml; charset=utf-8")
        wait for (job) JobDone(job As HttpJob)

but is fails every time. I must be doing something wrong but I can't see what.

I can save to the remote database using the same URL and obviously a different ASMX webservice so connection is OK

Some help would be much appreciated.

David Hawkins

Active Member
Licensed User
Longtime User
Andrew thank you for spotting the problem, I have just tried it and all is well thank you so much for seeing the problem something easily overlooked.
Upvote 0