0

There are two PCs: In PC1, I have created ASMX Web Service and Hosted in local IIS.

My URL is like

XXX.XXX.X.103:82/WebService.asmx

Now, there is no Visual Studio in PC2, I just installed Framework 4.5.

How do I invoke and test that ASMX Web Service using only Framework?

Because when I run that URL in browser, I got the list of Services but not able to test it. How to solve with using only ".NET Framework"?

Here is the screen shot:

enter image description here

I am not getting this "Test Method" in PC2 and "Invoke Button".

TylerH
  • 20,799
  • 66
  • 75
  • 101
Nitesh Kothari
  • 890
  • 12
  • 27

3 Answers3

1

Ok, I got the answer:

Here is the code that I added in "Web.Config".

<webServices>
    <protocols>
      <add name="HttpGet"/>
      <add name="HttpPost"/>
    </protocols>
 </webServices>
Nitesh Kothari
  • 890
  • 12
  • 27
0

If you have any nullable arguments on the input of the web service method you are trying to test, the Invoke button will not show up.

ahajib
  • 12,838
  • 29
  • 79
  • 120
John D
  • 1
-2

ASMX services are designed to run in IIS. When using Visual Studio, a light weight IIS (Cassini) is used.

You will need to install IIS onto PC2.

Community
  • 1
  • 1
Richard Schneider
  • 34,944
  • 9
  • 57
  • 73