BlockLeftTop, PRELOAD BlockLeftBottom, PRELOAD BlockLeftStretch, PRELOAD BlockTop, PRELOAD BlockBottom, PRELOAD BlockStretch, PRELOAD BlockRightTop, PRELOAD BlockRightBottom, PRELOAD BlockRightStretch, PRELOAD
DeltaEngine

How to allow web services to be called and tested remotely

by Benjamin Nitschke 13. April 2007 10:39
My blog posts are getting shorter ^^

Usually you can't execute web service methods from the autogenerated web service site remotely to test them. By default you will get the following message where the web service test is supposed to be:
  • The test form is only available for requests from the local machine
Fix this by adding the following to your web.config file of your web service:

<configuration>
    <system.web>
        <webServices>
            <protocols>
                <add name="HttpGet"/>
                <add name="HttpPost"/>
            </protocols>
        </webServices>
    </system.web>
</configuration>


BTW: Any messages in the Test section of the web service site will be "The test form is only available for requests from the local machine" even if the problem is something else, which you will see when testing locally like "The test form is only available for methods with primitive types as parameters.". There seem to be no way around that.

Comments


4/16/2007 10:34:05 PM #

Hi there Ben,

Just a quick question off topic... In looking at Amazon todasy I noticed that your XNA Game Programming has a release date of 30th April. Do you know if this is likely?

Cheers

Andy

Silmar | Reply



4/19/2007 7:47:38 PM #

Great tip!
I really appreciate it.
I was looking for news about your and xna and found a tip that will help me a lot in many of my developments.
Thank you very much.

Martín Suárez Viacava

Martín Suárez Viacava | Reply



4/28/2010 11:36:04 AM #

I\'m happy I found this blog, I couldnt discover any info on this subject matter prior to. I also run a site and if you want to ever serious in a little bit of guest writing for me if possible feel free to let me know, i\'m always look for people to check out my site. Please stop by and leave a comment sometime!

Rapidshare | Reply


Add comment




biuquote
  • Comment
  • Preview
Loading



Disclaimer: The opinions expressed in this blog are own personal opinions and do not represent the companies view.
© 2000-2011 exDream GmbH & MobileBits GmbH. All rights reserved. Legal/Impressum

Poll

Which platform should Soulcraft be released on next?











Show Results Poll Archive

Recent Games

Soulcraft

Fireburst

Jobs @ exDream

Calendar

<<  May 2012  >>
MoTuWeThFrSaSu
30123456
78910111213
14151617181920
21222324252627
28293031123
45678910