[RESOLVED] Webservice default return value template
Hi,
So I've created a default Visual Studio project for a webservice and I invoked the HelloWorld method.
What I get is indeed a "Hello World" string, but with some additional "crap" attached:
Code:
<style>
@namespace url(http://www.w3.org/1999/xhtml); [src="http://static.addtoany.com/buttons/share_save_256_24.png"] {display: none !important;} #a2apage_dropdown {display: none !important;} #socialBotAdd, .addthis_button, .addthis_toolbox.addthis_default_style, #addthis_link, [onclick="return addthis_sendto()"] {display: none !important;} #greet_block {display: none !important;} .meebo-00 {display: none !important;} #wibiyaToolbar, #wibiyaToolbar_window_template {display: none !important;}
</style>
Where is this stuff generated? And how can I remove this.
Thanks! :wave:
Re: Webservice default return value template
Hello,
How exactly are you calling the Web Method, and where are you seeing that additional "stuff"?
Can you show a screen shot?
Gary
Re: Webservice default return value template
I've just noticed that I'm invoking through HTTP Post from the 'web interface'.
http://i.imgur.com/XuO8v.png
Re: Webservice default return value template
For properly testing the web service, I would suggest using something like soapUI, that way you will see exactly what is going on.
Also, if you are going to use the Browser, you might want to use IE. Who's to say that Chrome isn't showing you "stuff" that wasn't intended.
Gary
Re: Webservice default return value template
Ah, yes, that script is a blocker for those social widgets and gadgets on websites and chrome adds it to all its output.
Running in IE indeed returns a clean response.
Re: [RESOLVED] Webservice default return value template
Glad to hear that worked out, and thanks for the rep :)
If you didn't check it out, I would still recommend soapUI, it is a very useful tool.
Gary