PPC & Web Service Interaction.

P

packiyanath sk

Hi

I am trying to access a webservice through a PPC application. This can
be done. But can any one suggest me on what are the possible options for
accessing the webservice from the PPC applications other than hardcoding
the Webservice server URL inside the application.

I beleive, One way is .. ask the user to enter the IP of the webservice
to connect at the time of installation of the PPC that can be stored in
an XML or flat file that can be read at runtime.. In this case if IP
changes ????? again prblm.

So is there any other possible way to do this using Active Sync or any
other way ! Since Iam posting this in this grp.. Its obvious that Iam
using dotnet for this.

Pls do reply to this post. It will be really helpful. Thanks.
Packiyanath.S.K.
 
A

Alex Feinman [MVP]

Why don't you use a DNS name for your url (as opposite to IP address). This
way you will be able to modify the actual address it resolves to as needed
 
J

j.edwards

DNS is ok most of the time, but it can change too so I have a settings form
that allows a user to change the webservice url. When you make an instance
of the webservice object you can at runtime dynamically set what url to use.
You can even specify proxy settings.
 
P

packiyanath sk

Hi Alex

Thanks for your reply !

Are you sure, DNS will solve the problem. Logically seeing it should
solve the problem. Just to confirm Iam asking !!

Thanks once again
Packiyanath.S.K.
 
P

packiyanath sk

Hi Edward !

Thanks for your reply.

You mean to say, Give an UI in PPC Application to enter IP/DNS of the
Web service server right ?

If that is so...that is waht currently Iam doing. but I dont want the
user to enter that. Something like..it should happen automatically.

As Alex says,,will DNS solve the prblm ?

THanks
Packiyanath
 

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