Android Question Web Service Giving error Internal server Error

yashwant

Member
Licensed User
Hi
I am using HTTPUTILS2 for web services and I am getting Job.Success=fail and showing Invalid Query String
My code is as follows

<code>

Dim Stest As String

Stest="<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body><ns1:get_details xmlns:ns1='http://www.xxxxxxxxxxx.org/getDetai.../ns1:get_details></soap:Body></soap:Envelope>"
job2.Initialize("Job2", Me)
job2.PostString("http://xxx.xx.xx.xx:xxx/soa-infra/s...on/xxxxxccbandroidintegrationbpel_client_ep?=", Stest)
Log("JobName = " & Job.JobName & ", Success = " & Job.Success)
Log("Error: " & Job.ErrorMessage)
</code>
I am getting Log
Error: Internal Server Error


have any body experience the same problem. Your response is highly appreciated.



Yashwant
 

yashwant

Member
Licensed User
Hi Uitenhage

Yes I have resolve this issue by adding following line while posting the string

htJob.GetRequest.SetHeader("SOAPAction", """http://Server/SoapAction""")
htJob.GetRequest.SetContentType("text/xml; charset=utf-8")
 
Top