views:

25

answers:

0

Hi, I have an web service on developed .net The Url is : www.yemeksepeti.com/YemeksepetiCatalogWebService/CatalogExportMobile.asmx

I want to use the service methods is : Mobile_GetCities

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /YemeksepetiCatalogWebService/CatalogExportMobile.asmx HTTP/1.1 Host: www.yemeksepeti.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/Mobile_GetCities"


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

xml

Here is the Soap Methods

And here is the get and set methods

HTTP GET

The following is a sample HTTP GET request and response. The placeholders shown need to >be replaced with actual values.

GET /YemeksepetiCatalogWebService/CatalogExportMobile.asmx/Mobile_GetCities? HTTP/1.1 Host: www.yemeksepeti.com

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

xml

HTTP POST

The following is a sample HTTP POST request and response. The placeholders shown need to >be replaced with actual values.

POST /YemeksepetiCatalogWebService/CatalogExportMobile.asmx/Mobile_GetCities HTTP/1.1 Host: www.yemeksepeti.com Content-Type: application/x-www-form-urlencoded Content-Length: length

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

xml

The web service have an authentication, the username and password must enter in. I try to diffirent ways on connect the webservice and take the xml file result. But I couldnt success. I tried to connect httpClient, ı try to set the authentication password and like Then I tried connect the webservice with ksoap2 methods.

Could you show me a way ? Which way I should to go? I read lots of forum thread about, Calling a web service from Android and How to do HTTP authentication in android like that.. Thanks for your heplness