Alex,
> I've looked at the source code for the wsewsdl2 generated class and I looked
> at the source code from the " Microsoft.VSDesigner" in the Reference.cs file.
[quoted text clipped - 4 lines]
> that Wsewsdl.exe is generating some sort of "standards based" class file. Is
> that way to be preferred (even though calling it is a pain)?
WseWsdl exe generates a proxy thats based on the WSE framework and
wsdl.exe generates a proxy based on th System.Web.Services library. They
essentially do the same thing however, the additional stuff u get with
the wsewsdl client is that it adds the Filters (pipeline) for processing
the WS-* specs. Another interesting thing to note is, WSE (if you have
installed the wse add-in for VS.net) also automatically adds another
proxy in the References.cs/vb thats with the name <wsdl-proxy-name>Wse
that does the same thing as the wsewsdl proxy.
The alternative to not using the wsewsdl generated proxy is to just
derive your proxy from the WebServicesClientProtocol instead of the
standard SoapHttpClientProtocol.

Signature
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilip.krishnan AT apdiya DOT com
alex bean - 12 May 2005 14:26 GMT
Dilip,
Thanks. I am aware of the filters that WSE adds to your client and service
apps. I was really wondering what the "best practice" for setting up a call
to web method is?
More specifically, in first example above (wsewsdl2) I was required to
create a request object (HelloWorld request = new HelloWorld();), then I
had to load my string into a property of that object (request.name =
"test";), then I used that object as the parameter to the webmethod
(=proxy_wsewsdl.HelloWorld(request) )
The webmethod retuned another object, which I had to access properties to
get the string I was interested in.
Whereas, with the second example all I did was pass the string in directly
and have a sting retuned directly.
Which is "better"?
Is this the answer:
For this trivial example (pass in one string and get back one string) the "
wsewsdl2" is overkill and you are probably better off with the Visual Studio
auto generated one but if you had a larger number of complex parameters to a
web method and/or the web method retuned a complex set of parts the "object"
approach (generated by wsewsdl2) is better.
Is that the right answer? (It probably all boils down to what your
preferences are but I'm also interested in what is considered the best
practice.)
Dilip Krishnan - 12 May 2005 15:24 GMT
There is no real best practice. Its akin to choosing one framework over
the other. Some frameworks are good, some are bad, some are lacking in
features some are loaded with them. I'd say wsdl generated classes are
easy but they dont provide the WS-* stack for you, unless you derive
from the wse client proxy. And once you derive from the wse proxy then
you're pretty much exercising the same WSE code; at which point there is
no real difference.
> Dilip,
>
[quoted text clipped - 24 lines]
> preferences are but I'm also interested in what is considered the best
> practice.)

Signature
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilip.krishnan AT apdiya DOT com
Hi there,
perhaps you guys could assist in this. According to the tutorial I'm
working through, if I WSE (v2) enable my web service and the consuming
client and update my client web reference, I should see a <Service>WSE class
(apparently auto generated). For whatever reason, this is not being created.
In the code pain a comment reads
'This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.
4322.2032.
Note, I'm using .NET 1.1 with WSE 2.0.
Any advice?
thanks
Matt