RE: How to pass an object as parameter ?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Dan Rogers (danro_at_microsoft.com)
Date: 12/13/04


Date: Mon, 13 Dec 2004 21:02:24 GMT

Hi,

If it is your intent to have the same implementation shared by the client
and the server, then you will need to modify the proxy class that is
generated to use the namespace you desire - and you will also have to add
that DLL as a reference to the client-side project.

The generated proxy has a "data compabible" implementation of the classes
that the service requests as inputs and return types. You'll probably want
to comment these out if you change the generated proxy.

Alternately, you could make the generated proxy have the same namespace as
your server side data DLL. This way, you won't have to change any of the
generated code.

I hope this helps

Dan Rogers
Microsoft Corporation
--------------------
>From: "chak" <r_chakravarthy@hotmail.com>
>Subject: How to pass an object as parameter ?
>Date: Mon, 13 Dec 2004 07:54:27 +0530
>Lines: 16
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <ujlWirL4EHA.924@TK2MSFTNGP14.phx.gbl>
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservices
>NNTP-Posting-Host: 220.226.4.22
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP14
phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservices:27153
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
>I have a class with public properties defined in an assembly. I then have
a
>web service in
>the same solution, which takes an object of this class as a parameter.
>However, the web service works only if i key in the the fully qualified
>name of the object (including namespace) in the proxy class. How can this
>be avoided ?
>
>
>
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.809 / Virus Database: 551 - Release Date: 12/9/2004
>
>
>



Relevant Pages

  • Re: Please enter password for HTTP proxy
    ... Web Proxy log: WEBEXTDyyyymmdd.log ... This newsgroup only focuses on SBS technical issues. ... |> on to the SBS server that hosts the ISA. ... |> sure the problematic clients also have Firewall Client installed. ...
    (microsoft.public.windows.server.sbs)
  • RE: Proxy requires authentication
    ... problem where it is being asked to authenticate to the proxy server. ... sure the problematic client also have Firewall Client installed. ... | Thread-Topic: Proxy requires authentication ...
    (microsoft.public.windows.server.sbs)
  • Re: ISA Server Problems, please help
    ... The All access rule for SBS Internet ... Web Proxy and/or ... > To accommodate the linux SecureNAT clients you should create a new Client ... ISA Server denies the specified Uniform Resource Locator. ...
    (microsoft.public.windows.server.sbs)
  • Re: Need to Turn Off Proxy Server in SBS 4.5
    ... client machines (it is done by default when you install an SBS client)? ... IE's web proxy settings are disabled like you said, ... Server is internal only...no outside web or ftp serving. ...
    (microsoft.public.backoffice.smallbiz)
  • Re: SBS 4.5 Slow Internet (Odd Problem!)
    ... So other server services run fine when the internet is slow? ... at 10.0.0.2 port 80 (in this mode the web proxy service is used) ... winsock proxy (note this will only work if the client has the proxy client ...
    (microsoft.public.backoffice.smallbiz)