Showing posts with label Web Services. Show all posts
Showing posts with label Web Services. Show all posts

02/06/2011

Web Service - wsdl

You can use the windows service by add it in your project as reference, but there is another way to use the web service, by create the class for this service.
You can apply this action by using the wsdl.exe.
how??

C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin>wsdl /out:d:\WebServiceClass.cs .asmx?wsdl

after that, add this class to your project and use the functions of the service.


Read more...

02/11/2010

web service: The test form is only available for requests from the local machine.

if you create aweb service, and you want to test it from another server machine, the follwoing message will be appear:
"The test form is only available for requests from the local machine."
so, you should add the follwoing code into your web.config:
<webServices>
    <protocols>
        <add name="HttpSoap12" />
        <add name="HttpSoap" />
        <add name="HttpGet" />
        <add name="HttpPost" />
    </protocols>
</webServices>


before

</system.web>

Read more...