Re: Passing arguments to Web Service from Win application

From: Erik Porter [.NET MVP] (erikporter@mvps.org)
Date: 01/22/03


From: "Erik Porter [.NET MVP]" <erikporter@mvps.org>
Date: Wed, 22 Jan 2003 02:30:32 -0500


Do you have any links to samples on doing this?

"AJoshi" <ajoshi@approva.net> wrote in message
news:OIycWSewCHA.2796@TK2MSFTNGP12...
> If you want to do all this transparently (without changing server
webmethod
> signatures) then you can use a SoapHeader that is filled within a
SoapOutput
> filter (use WSE). You will then have a SoapInput filter at the server end
> which extracts this. Use WSE encryption and signing for security. Your
> client code fills in the user name, pwd etc. using a SoapContext object.
> This is accessible in your SoapOutput filter. This has minimal changes in
> client code.
>
> "Alex Ayzin" <Alex.Ayzin@verizon.net> wrote in message
> news:e6ZOBYbwCHA.968@TK2MSFTNGP12...
> > Hello,
> >
> > Need your help again, guys. I'm not exactly too sure what I need, but
I'll
> > try to word it out. Anyway, I have a Win app that has a Login form. On
> that
> > Login form I have 4 textboxes, that capture data from Users - UserName,
> > Password, ServerName, DataBaseName. That Win app consumes a Web Service
> > running on a WebServer. When Win app issues a call to WebService through
> > proxyObj.WebMethod(), I pass a couple of parameters to it. What I need
to
> do
> > here's capture Logon information from those 4 texboxes and pass that
info
> to
> > WebService among other params as ParamArray args(). What is a best
> solution
> > to implement this?
> > I was thinking like this:
> > 1.Declare a Shared function on the form to capture 4 textboxes .Text
> > properties.
> > 2. Create separate object (class) to grab that information from a Shared
> > function(my managers request that it's a separate object)
> > 3. Compile previous object into .DLL, reference it in WebService and
have
> an
> > access to captured information.
> > But I see a lot of design holes in it; maybe you can come up with a
couple
> > of ideas that might help... Thanks a lot.
> > --Alex
> >
> >
>
>



Relevant Pages

  • Re: Passing arguments to Web Service from Win application
    ... If you want to do all this transparently (without changing server webmethod ... You will then have a SoapInput filter at the server end ... > WebService among other params as ParamArray args. ... Create separate object to grab that information from a Shared ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: several responses from same webservice?
    ... The idea of having both apps with a webservice could also be an good ... - A client uses a webservice to notify the server app that it wants ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: webservice to expose existing app functionality
    ... and manage your web services, then you need to create a web service project ... applicaiton makes a poor multi-user server because the console application ... benefit is that once you refactor your app in this way, ... >create a webservice without creating a new webservice project within ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Changing Webservice from Server Without rebuilding
    ... Right click on your webservice in the VS.net gui and select properties. ... of the URL Behavior, set it to dynamic. ... Your app will then have an ... > We have created a webservice, and in out test server everyting works fine, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Error Loading CustomInputFilter
    ... the WebService runs fine.. ... TIA ... > System.Web.Services.Protocols.SoapHeaderException: Server unavailable, ... Filter: ...
    (microsoft.public.dotnet.framework.webservices.enhancements)