0

In my Blackberry java native application, i am making a call to a dotnet web service whose Request and Response format is defined as below. Here In response XML is being returned. I have been searching the forums and trying for 2-3 days but no success...

Request format :

POST /cinews.asmx/GetSeatLayout HTTP/1.1
Host: webservices.mclients.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

strCinews=string&strTransId1=string&lngSessionId=string&blnScreenOnTop=string&strMergeOption=string&strAreaCats=string

Response format :

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

xml

Nate
  • 31,017
  • 13
  • 83
  • 207
Manish
  • 157
  • 1
  • 2
  • 10
  • 2
    And your question is? You seem to be getting the response, so I am guessing your question is not how to send an http POST request or receive a response, which I think leaves asking how to process the XML, but I'm not sure. Please clarify. However regardless of your actual question, it would surprise me if there was not already a similar question answered here, so I recommend you clarify your question and search. – Peter Strange Oct 25 '13 at 15:11
  • Thanks for replying peter. My question actually is how to send the request? I haven't made this type of request earlier so please point me to some reference(similar to my case). The Request and Response format (for the dotnet web service i want to call) described above is given by the person who created the web service. So my question now is how to make a HTTP Post request to that dotnet web service? I have all the input parameters available like strCinews, strTransId1, lngSessionId etc. – Manish Oct 26 '13 at 02:56
  • possible duplicate of [Http POST in BlackBerry](http://stackoverflow.com/questions/6184223/http-post-in-blackberry) – Nate Oct 26 '13 at 03:29
  • @Nate Thanks for the reply. I have just gone through the post adviced by you. I am making connection with "http://webservices.mclients.com/cinews.asmx", i am getting response as 200..it is ok i think.. but where should i tell about the web service method name i.e. GetSeatLayout. – Manish Oct 26 '13 at 07:08
  • `/cinews.asmx/GetSeatLayout` is the end of your URL. If you look at the **question** I linked to, that would be in the variable named `url` that's shown in the question. For the rest of the solution, see the **answers**. – Nate Oct 26 '13 at 09:00
  • @Nate : It is giving 500 as Response code... – Manish Oct 26 '13 at 12:52
  • 500 is a server error. You'll have to debug it on the server side, or search for information on the internet about that error code with that particular web service. – Nate Oct 26 '13 at 19:27

0 Answers0