PC Review


Reply
Thread Tools Rate Thread

Consuming a web service

 
 
Tim Buck
Guest
Posts: n/a
 
      4th Nov 2003
I wrote a very simple web service to test its functionality when consumed
from a PPC app. The web service simply takes in two numeric values, adds
them together, then returns the answer. I then wrote a very simple smart
device application that consumes this web service, passing in two values and
expecting to get back an answer. However, this error shows up instead:
"Cannot Establish trust relationship with remote server"

Any Ideas?

I am using IIS5.0 with SSL enabled.

I understand there is a workaround that will trap all the client certificate
messages and send back true regardless. I don't want that. I do want this
to be secure.

What are my options?

Thanks in advance.


 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      4th Nov 2003
Are you using a test certificate or locally issued certificate on the IIS
machine? In that case you will need to add this certificate to your PPC. The
easiest way to see if the certificate is a problem is to open the web
service url rfom PIE and see if it complains.

"Tim Buck" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I wrote a very simple web service to test its functionality when consumed
> from a PPC app. The web service simply takes in two numeric values, adds
> them together, then returns the answer. I then wrote a very simple smart
> device application that consumes this web service, passing in two values

and
> expecting to get back an answer. However, this error shows up instead:
> "Cannot Establish trust relationship with remote server"
>
> Any Ideas?
>
> I am using IIS5.0 with SSL enabled.
>
> I understand there is a workaround that will trap all the client

certificate
> messages and send back true regardless. I don't want that. I do want

this
> to be secure.
>
> What are my options?
>
> Thanks in advance.
>
>



 
Reply With Quote
 
Tim Buck
Guest
Posts: n/a
 
      4th Nov 2003
The certificate is on the IIS server. I connected to the web service with
PIE and it worked fine. What could I be missing?


"Tim Buck" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I wrote a very simple web service to test its functionality when consumed
> from a PPC app. The web service simply takes in two numeric values, adds
> them together, then returns the answer. I then wrote a very simple smart
> device application that consumes this web service, passing in two values

and
> expecting to get back an answer. However, this error shows up instead:
> "Cannot Establish trust relationship with remote server"
>
> Any Ideas?
>
> I am using IIS5.0 with SSL enabled.
>
> I understand there is a workaround that will trap all the client

certificate
> messages and send back true regardless. I don't want that. I do want

this
> to be secure.
>
> What are my options?
>
> Thanks in advance.
>
>



 
Reply With Quote
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      5th Nov 2003
You need to make sure that the correct root certificate is on the device. If
you are using your own certification authority, export the root certificate
and import it on the device. To import certificate on the device build and
use AddRootCert utility:
http://support.microsoft.com/default...b;en-us;322956




"Tim Buck" <(E-Mail Removed)> wrote in message
news:e3Y%(E-Mail Removed)...
> The certificate is on the IIS server. I connected to the web service with
> PIE and it worked fine. What could I be missing?
>
>
> "Tim Buck" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I wrote a very simple web service to test its functionality when

consumed
> > from a PPC app. The web service simply takes in two numeric values,

adds
> > them together, then returns the answer. I then wrote a very simple

smart
> > device application that consumes this web service, passing in two values

> and
> > expecting to get back an answer. However, this error shows up instead:
> > "Cannot Establish trust relationship with remote server"
> >
> > Any Ideas?
> >
> > I am using IIS5.0 with SSL enabled.
> >
> > I understand there is a workaround that will trap all the client

> certificate
> > messages and send back true regardless. I don't want that. I do want

> this
> > to be secure.
> >
> > What are my options?
> >
> > Thanks in advance.
> >
> >

>
>



 
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
Error consuming WCF service in Windows Service Daniel Microsoft Dot NET Framework 6 7th Jan 2011 10:11 PM
consuming a web service Jay Microsoft VB .NET 1 6th Nov 2006 11:00 PM
consuming a web service =?Utf-8?B?SnVsaWE=?= Microsoft ASP .NET 3 16th May 2006 03:43 PM
Consuming Web Service unwantedspam Microsoft ASP .NET 1 1st Dec 2005 10:15 PM
Consuming XML Web Service =?Utf-8?B?UGV0ZXI=?= Microsoft ASP .NET 3 8th Mar 2005 02:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:51 PM.