Calling SOAP server functions

C

Claire

Ive only done this once before (for compact framework) and Ive forgotten how
I set it up.

Visual studio. C# Windows application.
Ive added a web with its SOAP service to IIS on \\localhost and it's active.
Ive added a web reference to my project. The web references wizard added a
sub node of "localhost" beneath "Web references" in Solution Explorer.
In my project file directory, Ive now got a sub-directory "Web
references\Localhost" which contains files "reference.cs", "reference.map",
"servicemain.disco", "servicemain.wsdl".

In the CF project I did a while ago, in Solution Explorer I had other sub
nodes beneath "local host" called "servicemain.disco", "servicemain.swdl"
and "reference.map" files. I don't seem to have them in Solution Explorer in
this new project. How do these get to appear?
Also, "localhost" in the new project seems to have an extra property "URL
behaviour" which my earlier CF attempt does not appear to possess.

I'm stuck now. I need to know what to do for my application to link to the
reference.cs file so I can access the functions. Ive completely forgotten.
The differences between the two projects is bugging me because I don't know
if Ive missed out on some necessary step, it may be due to one being
constructed in compact framework but I'm not familiar enough with it to
know.

can someone help please
Claire
 
M

Mohamoss

Hi Claire
I guess what you need it to create a proxy class of your webservice so you
use its functions.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconCreatingWebServiceProxy.asp
the when deploying you would need to set the URL property to the location
of y our webservice , you might want to keep and then read that from
appSetting in the web.config file of your application so you can
reconfigure that at deployment time.
Mohamed M .Mahfouz
Developer Support Engineer
ITWorx on behalf of Microsoft EMEA GTSC
 
C

Claire

Thanks for help. I think there's just a difference between compact framework
and regular windows.
I was able to create the service with no problems.
Claire
 

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