F
Francesco Spegni
hi there,
i'm a newbie in this field and i hope i'm not asking a very stupid
question, but googling i didn't find my way out of here.
what i want to do is to write a method, export it through a webservice
in such a way that the result is sent back to the caller in a
compressed way (the soap header remains uncompressed, but the body of
the soap message is compressed). so i followed the instructions here:
http://www.mastercsharp.com/article.aspx?ArticleID=86&TopicID=7
and it's easy to understand what it does. at least i think so. the
problem is a step further. let's say i export the webmethod:
[WebMethod,CompressionExtension]
public string foo_method(...)
{
....
}
at the address http://localhost/mywebservice.asmx . now, if i try to
create a proxy for my webservice through the:
c:\> wsdl http://localhost/mywebservice.asmx?wsdl
command, what i get is a (auto-generated) class containing a (auto-
generated) method:
[WebMethod]
public string foo_method(...)
{
....
}
this means that invokin the foo_method() from my proxy, i get an error
because the result is compressed while proxy expects it to be
uncompressed. so what i do is to modify the proxy method manually
adding the CompressionExtension.
the question is: how can i do in order to let wsdl to auto-generate
also the [CompressionExtension] decoration? in this way i can make
faster (and "batchable") my development and deployment phases. i hope
i was able to explain my trouble.
thank you in advantage for any hint you can give to me
have a nice day
francesco
i'm a newbie in this field and i hope i'm not asking a very stupid
question, but googling i didn't find my way out of here.
what i want to do is to write a method, export it through a webservice
in such a way that the result is sent back to the caller in a
compressed way (the soap header remains uncompressed, but the body of
the soap message is compressed). so i followed the instructions here:
http://www.mastercsharp.com/article.aspx?ArticleID=86&TopicID=7
and it's easy to understand what it does. at least i think so. the
problem is a step further. let's say i export the webmethod:
[WebMethod,CompressionExtension]
public string foo_method(...)
{
....
}
at the address http://localhost/mywebservice.asmx . now, if i try to
create a proxy for my webservice through the:
c:\> wsdl http://localhost/mywebservice.asmx?wsdl
command, what i get is a (auto-generated) class containing a (auto-
generated) method:
[WebMethod]
public string foo_method(...)
{
....
}
this means that invokin the foo_method() from my proxy, i get an error
because the result is compressed while proxy expects it to be
uncompressed. so what i do is to modify the proxy method manually
adding the CompressionExtension.
the question is: how can i do in order to let wsdl to auto-generate
also the [CompressionExtension] decoration? in this way i can make
faster (and "batchable") my development and deployment phases. i hope
i was able to explain my trouble.
thank you in advantage for any hint you can give to me
have a nice day
francesco