Proxy Class
Anyone have success creating and, more importantly, using a proxy class.
We've created a proxy class that is a web service. Then we created a small
Console app that references that proxy class and attempts to create a new
instance of that class. Whenever we try to create a new instance, the
application throws an exception.
Any ideas? Anyone doing anything with a proxy class?
Thanks,
Tim Hodgson
# 1 Re: Proxy Class
Can't say that I have, but a posting of the error output would definitely
help.
"Tim Hodgson" <thodgson@exclamationsoft.com> wrote in message
news:3999898a@news.dev-archive.com...
> Anyone have success creating and, more importantly, using a proxy class.
>
> We've created a proxy class that is a web service. Then we created a
small
> Console app that references that proxy class and attempts to create a new
> instance of that class. Whenever we try to create a new instance, the
> application throws an exception.
>
> Any ideas? Anyone doing anything with a proxy class?
>
> Thanks,
> Tim Hodgson
>
>
>
>
Oscar at 2007-11-11 22:29:17 >

# 2 Re: Proxy Class
There is no error output. When debugging in VS7 the debugger will encounter
an exception, then crash VS7 - imagine that!
Just wondering if anyone has done it and if there are examples.
"Oscar" <consulBanana@hotmail.com> wrote in message
news:39999d56$1@news.dev-archive.com...
> Can't say that I have, but a posting of the error output would definitely
> help.
>
> "Tim Hodgson" <thodgson@exclamationsoft.com> wrote in message
> news:3999898a@news.dev-archive.com...
> > Anyone have success creating and, more importantly, using a proxy class.
> >
> > We've created a proxy class that is a web service. Then we created a
> small
> > Console app that references that proxy class and attempts to create a
new
> > instance of that class. Whenever we try to create a new instance, the
> > application throws an exception.
> >
> > Any ideas? Anyone doing anything with a proxy class?
> >
> > Thanks,
> > Tim Hodgson
> >
> >
> >
> >
>
>
# 3 Re: Proxy Class
Are you still having this problem? I know I can't help specifically, but I
don't see any other replies yet. I was thinking that if it's one of those
runtime exceptions, you might try wrapping the whole thing in a try block,
then dumping the exception information in code, rather than relying on VS7
to give you the details(could just be a problem in the exception handling
code). Just a thought, let me know how it turns out.
"Tim Hodgson" <thodgson@exclamationsoft.com> wrote in message
news:3999a433$1@news.dev-archive.com...
> There is no error output. When debugging in VS7 the debugger will
encounter
> an exception, then crash VS7 - imagine that!
>
> Just wondering if anyone has done it and if there are examples.
>
>
> "Oscar" <consulBanana@hotmail.com> wrote in message
> news:39999d56$1@news.dev-archive.com...
> > Can't say that I have, but a posting of the error output would
definitely
> > help.
> >
> > "Tim Hodgson" <thodgson@exclamationsoft.com> wrote in message
> > news:3999898a@news.dev-archive.com...
> > > Anyone have success creating and, more importantly, using a proxy
class.
> > >
> > > We've created a proxy class that is a web service. Then we created a
> > small
> > > Console app that references that proxy class and attempts to create a
> new
> > > instance of that class. Whenever we try to create a new instance, the
> > > application throws an exception.
> > >
> > > Any ideas? Anyone doing anything with a proxy class?
> > >
> > > Thanks,
> > > Tim Hodgson
> > >
> > >
> > >
> > >
> >
> >
>
>
Oscar at 2007-11-11 22:31:21 >

# 4 Re: Proxy Class
Tim,
Within your proxy in the class derived from SoapClientProtocol, you should
see this:
public class DataServices : SoapClientProtocol {
public xxx() {
this.Path = "http://machine/localhost/yyy.asmx/zzz.asmx";
Remove "/zzz.asmx" from the "this.Path" line. It should work fine!
Hope this helps,
Robby Powell
FarPoint Technologies
"Tim Hodgson" <thodgson@exclamationsoft.com> wrote in message
news:3999898a@news.dev-archive.com...
> Anyone have success creating and, more importantly, using a proxy class.
>
> We've created a proxy class that is a web service. Then we created a
small
> Console app that references that proxy class and attempts to create a new
> instance of that class. Whenever we try to create a new instance, the
> application throws an exception.
>
> Any ideas? Anyone doing anything with a proxy class?
>
> Thanks,
> Tim Hodgson
>
>
>
>