Hi,
When we create ASP.NET web service from visual studio and run the web service a test page opens up in which we can test our web service.
We can easily customize that web service test page. The name of the page is DefaultWsdlHelpGenerator.aspx we can found it in the following directory
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\ for ASP.NET 2.0.
Open the page in Visual Studio
First and foremost we would find the following things that could be configured
// set this to true if you want to see a POST test form instead of a GET test form
bool showPost = true;
// set this to true if you want to see the raw XML as outputted from the XmlWriter (useful for debugging)
bool dontFilterXml = false;
// set this higher or lower to adjust the depth into your object graph of the sample messages
int maxObjectGraphDepth = 4;
// set this higher or lower to adjust the number of array items in sample messages
int maxArraySize = 2;
// set this to true to see debug output in sample messages
bool debug = false;
To customize the UI good information is provided over here
Customizing Web Service Test Page’s UI Design
By Default the web service can be tested using Http Get (default) and Http Post, but if we want to test using the SOAP we can make use of the information provided in the following link
Bye
rerereree
LikeLike
Cool stuff,
What I’d like to do is have a file upload form element presented whenever the parameter type is XmlDocument.
Any thoughts on where to start with that?
thanks!
don
LikeLike
btw, when I loaded up the CustomWsdlHelpGenerator.aspx file, there was no syntax highlighting on the script, and I was getting lots of syntax errors in debug mode, with now line numbers attached.
I then added:
to the top of the page, and all that was fixed!
good to know if you’re having the same problem.
now, to figure out how to add a file-upload form element to the page.
LikeLike
При использовании трекбола надевайте коврик на палец.
LikeLike