Ask a Question related to ASP.NET Web Services, Design and Development.
-
Ashishthaps #1
Hiding Abstrected Class Structure in WSDL
I’m building a simple web service that has a few functions, each returning
simple data classes, structured similar to this:
public class ResultBase
{
public int StatusCode;
}
public class StatusResult :ResultBase
{
public string MyResult;
}
public class StatusReporter : System.Web.Services.WebService
{
public StatusResult CheckStatus(int machineID)
{
//do the status check
}
}
Now, I’m not using datasets or other MS specific things as the wsdl that
gets generated causes a lot of problems with non MS clients. We have people
using axis or curl or some other damn unix client with http posts. So,
we found that writing our own classes for that generates very clean and easy
to parse output xml.
The problem with the above code is that it generates the inherited
structures with it. So, it will generate ResultBase and the StatusResult with
a <base extend> tag around it. All I want generated is the StatusResult class
with StatusCode and MyResult as elements in it. I don’t want the end user to
have to deal with our class structures (even the proxy class that VS2003
generates from the wsdl is quite cumbersome for .net clients as it doesn’t
regenerate the original structures).
Is it possible to do this without rewriting DefaultWsdlHelpGenerator.aspx or
building another custom wsdl generator ?
Ashishthaps Guest
-
Class::Struct - want to access structure within structure
I want to access a structure within a structure. Below is what I had in mind. Please help. #!/perl/bin/perl use Class::Struct; struct Step... -
Class v. Structure
Is there any performance considerations for a web service returning a structure versus an instance of a class? -
WSDL file produces useless class when imported with WSDL.exe
I am having a problem with a WSDL file supplied by a client. When WSDL.exe is used, the WSDL file (shown later) produces the following output class.... -
hiding wsdl...
hi, how can i hide the wsdl file without exposing this to client.. regards, -
WSDL.exe doesn't seem to create the proxy class
Hello, I'm trying to compile a proxy class using the WSDL.exe app found in the bin folder. I've set up a batch file to run the command (saves...



Reply With Quote

