Well they all use HTTPCLIENT procedure, i'm using this kind of
communication(HttpTransportSE) with my service here's a sample:
*try* {

SoapObject request = *new* SoapObject(*NAMESPACE*, *METHOD_NAME*);

 request.addProperty("value", 2);

 SoapSerializationEnvelope envelope =
*new*SoapSerializationEnvelope(SoapEnvelope.
*VER11*);

envelope.dotNet=*true*;

envelope.setOutputSoapObject(request);

HttpTransportSE androidHttpTransport = *new* HttpTransportSE(*URL*);

androidHttpTransport.call(*SOAP_ACTION*, envelope);

SoapObject result = (SoapObject)envelope.getResponse();

} *catch* (Exception e) {

}

My question is how can i adapt the solution already given with this
method.Has anyone called a service by HTTPS  using the same thg

Thx .


2010/6/2 Kostya Vasilyev <[email protected]>

> Lamia,
>
> I believe this is because you're testing your code with a self-signed
> certificate on the server.
>
> There is some information on how to make it work here:
>
>
> http://groups.google.com/group/android-developers/browse_thread/thread/1ac2b851e07269ba
>
> Note that disabling certificate checks altogether is just for testing - for
> production use, you should consider buying a server certificate and
> re-enabling certificate checking in your code.
>
> -- Kostya
>
> 02.06.2010 18:41, Lamia Hannoun пишет:
>
> Well I only changed my wcf url, but i had the same error  "Not trusted
> server certificate" Could u plz help me !!
> thx
>
> 2010/5/31 Nando Scheidecker <[email protected]>
>
>> All you have to do is to specify https.
>>
>> For instance:
>>
>> HTTPRequestHelper helper = new HTTPRequestHelper(myResponseHandler);
>> helper.performPost("https://localhost/service";, user, pass, null, null);
>>
>>  On Mon, May 31, 2010 at 12:56 AM, Lamia Hannoun <[email protected]
>> > wrote:
>>
>>>  Well i tried to change my app.config file and it works but i had this
>>> issue with the certificate, i have this exception when i try to execute any
>>> method "Could not establish trust relationship for the SSL/TLS secure
>>> channel with authority 'localhost'." I foudn some tricks to make it work on
>>> C# project but i'm actually calling my wcf from android application.Plz how
>>> can i do it ? Does anyone got the same problem before???
>>> Thx
>>>   2010/5/28 Lamia Hannoun <[email protected]>
>>>
>>>> Hello!  Any help  plz !!!!!
>>>>
>>>> 2010/5/28 Lamia Hannoun <[email protected]>
>>>>
>>>>  Hi!
>>>>>
>>>>> I have a biiig issue, I'm developping an android app that access my wcf
>>>>> using soap and basichttp for now on everythg seems working perfectly but 
>>>>> now
>>>>> i'm wondering if i can access to my wcf using https :s i read some 
>>>>> articles
>>>>> that say that it's impossible and complicated.
>>>>>
>>>>> Plz is there anyway to resolve that issue !!!! Plz help.
>>>>>
>>>>> Thx
>>>>>
>>>>
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Android Developers" group.
>>> To post to this group, send email to [email protected]
>>> To unsubscribe from this group, send email to
>>> [email protected]<android-developers%[email protected]>
>>> For more options, visit this group at
>>> http://groups.google.com/group/android-developers?hl=en
>>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Android Developers" group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]<android-developers%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>
>
>
> --
> Kostya Vasilev -- WiFi Manager + pretty widget -- 
> http://kmansoft.wordpress.com
>
>   --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to