C# Tutorials and offshore development in India
Tutorials Resources Forum Reviews Communities Interview Jobs Projects Training Your Ad Here


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » Webservices »

Getting error while trying to test webservices


Posted Date: 12 Nov 2004      Posted By: PD      Member Level: Bronze     Points: 2   Responses: 2



Hi ,
I am very new to web services . I created the traditional hello world example . For testing purpose when I try to give
http://localhost/NHGCF/SampleService.asmx ,it works giving me a default page and a button to invoke .
But when I tried to specify the method name in the following way ,
http://localhost/NHGCF/SampleService.asmx/GetSecurityInfo
it gave a error saying "Request format is unrecognized"

Can anyone please help





Responses

Author: Atal Bihari Upadhyay    12 Nov 2004Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

You need to specify protocol in configuration file as:

<webServices>
<protocols>
<add name="HttpPost" />
<add name="HttpGet" />
</protocols>
<webServices>

Hope this answers your question.

Regards,



Author: karpagam    12 Nov 2004Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

WebService can be accessed by default using SOAP Protocol.(can use only HttpPost when requesting WebService on local server). To enable Http Get Request for requesting web service, add the foll info to the web.config

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



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Previous : How to synchronize data?
Return to Discussion Forum
Post New Message
Category: Webservices




About Us    Contact Us    Privacy Policy    Terms Of Use