Compact framework and web services

K

Krudler

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
 
D

Dan Bass

K

Krudler

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 said:
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/default.asp?url=/library/en-us/dnnetsec/html/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/archive/2004/06/21/348.aspx
[beware of line wraps]

Let me know how you get on.

HTH

Daniel.

Krudler said:
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
 
D

Dan Bass

Strange... What are the details of the exception?


Krudler said:
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 said:
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/default.asp?url=/library/en-us/dnnetsec/html/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/archive/2004/06/21/348.aspx
[beware of line wraps]

Let me know how you get on.

HTH

Daniel.

Krudler said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top