Calling SOAP server functions

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Claire

    Calling SOAP server functions

    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\Loca lhost" which contains files "reference. cs", "reference.map" ,
    "servicemain.di sco", "servicemain.ws dl".

    In the CF project I did a while ago, in Solution Explorer I had other sub
    nodes beneath "local host" called "servicemain.di sco", "servicemain.sw dl"
    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


  • Mohamoss

    #2
    RE: Calling SOAP server functions

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


    l/cpconCreatingWe bServiceProxy.a sp
    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

    Comment

    • Claire

      #3
      Re: Calling SOAP server functions

      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


      Comment

      Working...