PC Review


Reply
Thread Tools Rate Thread

Compact framework and web services

 
 
Krudler
Guest
Posts: n/a
 
      21st Dec 2004

Hi

I have a compact framework application that gets information from a web
service running on a server. It works fine until I enable ssl on the web
site. - I change the URL of the webservice in my cf app to https, run the
app and get the error "a native exception has occurred in ...." which occurs
as soon as the webservice is called.
I cant debug properly i just reach the webservice call and it crashes. there
are calls to any other methods on that line.

Are there any other setting that you need to apply before the web service
will work. I have search the web but cant seem to find much information on
calling ssl web services on the compact framework.

does anyone have any helpful links or information?

I was considering using wse but havent been able to find much information on
this either..


Thanks


 
Reply With Quote
 
 
 
 
Dan Bass
Guest
Posts: n/a
 
      21st Dec 2004
There may not be too much in the way of calling web services through SSL
from the .Net CF framework, but there is for doing this from the .Net
framework...

http://msdn.microsoft.com/library/de...SecNetHT14.asp
[beware of line wraps]

For starters, the device will need to get the certificate of the secure
server...

http://www.explosivedog.com/blog/arc...06/21/348.aspx
[beware of line wraps]

Let me know how you get on.

HTH

Daniel.

"Krudler" <(E-Mail Removed)> wrote in message
news:u$(E-Mail Removed)...
>
> Hi
>
> I have a compact framework application that gets information from a web
> service running on a server. It works fine until I enable ssl on the web
> site. - I change the URL of the webservice in my cf app to https, run the
> app and get the error "a native exception has occurred in ...." which
> occurs as soon as the webservice is called.
> I cant debug properly i just reach the webservice call and it crashes.
> there are calls to any other methods on that line.
>
> Are there any other setting that you need to apply before the web service
> will work. I have search the web but cant seem to find much information on
> calling ssl web services on the compact framework.
>
> does anyone have any helpful links or information?
>
> I was considering using wse but havent been able to find much information
> on this either..
>
>
> Thanks
>
>



 
Reply With Quote
 
Krudler
Guest
Posts: n/a
 
      21st Dec 2004

Thanks Daniel

I have tried your suggestion but it seems to make no difference.

other people seemed to have got an "Could not establish trust relationship
with remote server." error and trusting all the Certificates fixed that.

I cant understand why I am getting a native exception.

I have tried cutting down my app to just a single form which calls the web
service but no luck.

Are there any settings in iis that could be messing me up. I can browse the
webservice.asmx fine




"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
news:(E-Mail Removed)...
> There may not be too much in the way of calling web services through SSL
> from the .Net CF framework, but there is for doing this from the .Net
> framework...
>
> http://msdn.microsoft.com/library/de...SecNetHT14.asp
> [beware of line wraps]
>
> For starters, the device will need to get the certificate of the secure
> server...
>
> http://www.explosivedog.com/blog/arc...06/21/348.aspx
> [beware of line wraps]
>
> Let me know how you get on.
>
> HTH
>
> Daniel.
>
> "Krudler" <(E-Mail Removed)> wrote in message
> news:u$(E-Mail Removed)...
>>
>> Hi
>>
>> I have a compact framework application that gets information from a web
>> service running on a server. It works fine until I enable ssl on the web
>> site. - I change the URL of the webservice in my cf app to https, run the
>> app and get the error "a native exception has occurred in ...." which
>> occurs as soon as the webservice is called.
>> I cant debug properly i just reach the webservice call and it crashes.
>> there are calls to any other methods on that line.
>>
>> Are there any other setting that you need to apply before the web service
>> will work. I have search the web but cant seem to find much information
>> on calling ssl web services on the compact framework.
>>
>> does anyone have any helpful links or information?
>>
>> I was considering using wse but havent been able to find much information
>> on this either..
>>
>>
>> Thanks
>>
>>

>
>



 
Reply With Quote
 
Dan Bass
Guest
Posts: n/a
 
      22nd Dec 2004
Strange... What are the details of the exception?


"Krudler" <(E-Mail Removed)> wrote in message
news:uT1%(E-Mail Removed)...
>
> Thanks Daniel
>
> I have tried your suggestion but it seems to make no difference.
>
> other people seemed to have got an "Could not establish trust relationship
> with remote server." error and trusting all the Certificates fixed that.
>
> I cant understand why I am getting a native exception.
>
> I have tried cutting down my app to just a single form which calls the web
> service but no luck.
>
> Are there any settings in iis that could be messing me up. I can browse
> the webservice.asmx fine
>
>
>
>
> "Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in message
> news:(E-Mail Removed)...
>> There may not be too much in the way of calling web services through SSL
>> from the .Net CF framework, but there is for doing this from the .Net
>> framework...
>>
>> http://msdn.microsoft.com/library/de...SecNetHT14.asp
>> [beware of line wraps]
>>
>> For starters, the device will need to get the certificate of the secure
>> server...
>>
>> http://www.explosivedog.com/blog/arc...06/21/348.aspx
>> [beware of line wraps]
>>
>> Let me know how you get on.
>>
>> HTH
>>
>> Daniel.
>>
>> "Krudler" <(E-Mail Removed)> wrote in message
>> news:u$(E-Mail Removed)...
>>>
>>> Hi
>>>
>>> I have a compact framework application that gets information from a web
>>> service running on a server. It works fine until I enable ssl on the web
>>> site. - I change the URL of the webservice in my cf app to https, run
>>> the app and get the error "a native exception has occurred in ...."
>>> which occurs as soon as the webservice is called.
>>> I cant debug properly i just reach the webservice call and it crashes.
>>> there are calls to any other methods on that line.
>>>
>>> Are there any other setting that you need to apply before the web
>>> service will work. I have search the web but cant seem to find much
>>> information on calling ssl web services on the compact framework.
>>>
>>> does anyone have any helpful links or information?
>>>
>>> I was considering using wse but havent been able to find much
>>> information on this either..
>>>
>>>
>>> Thanks
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft C# .NET 0 24th May 2007 03:22 AM
Any suggestion for directory layout of project support both Full.NET Framework and Compact Framework? ping235 Microsoft Dot NET Framework 2 22nd May 2007 02:35 AM
Web services with .NET Compact Framework Davie Microsoft Dot NET Compact Framework 3 12th Feb 2006 06:51 PM
Building a SOAP Message (in Compact Framework) [REPLYING FROM microsoft.public.dotnet.framework] news.microsoft.com Microsoft Dot NET Framework 0 16th Mar 2004 04:54 PM
Re: Consuming Web Services using Compact Framework Alex Feinman [MVP] Microsoft Dot NET Compact Framework 3 17th Jul 2003 09:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 AM.