C Sharp Console in VS2008 Adding Reference not generating Proxy

  • Thread starter Thread starter BigJohn
  • Start date Start date
B

BigJohn

I am performing the following steps, but the proxies are not being generated
and I can't reference in main.

1) IIS is installed on WinXP SP2, VS2008 C# and Web Development installed.
2) Placed outside WSDL in c:/inetpub/wwwroot/vendorname
3) New VS 2008 Console project
4) Right Click, Add Reference on solution explorer
5) Enter "http://localhost/vendorname/servicename" and select Go
6) Service is found and displays as expected
7) Enter a Reference name "ServiceName1"
8) Select OK

Proxies are not generated, only a Reference entry with a globe icon
indicating web reference.

When I try to create the C# instance, it cannot find an instance.

I also tried adding a framework 2.0 Web Reference, and it cannot generate
proxies there either.

I want to call the SOAP Web Service through Framework in 2008 but cannot
without the proxies.

What am I missing that is not generating proxies?
 
BigJohn said:
I am performing the following steps, but the proxies are not being generated
and I can't reference in main.

1) IIS is installed on WinXP SP2, VS2008 C# and Web Development installed.
2) Placed outside WSDL in c:/inetpub/wwwroot/vendorname
3) New VS 2008 Console project
4) Right Click, Add Reference on solution explorer
5) Enter "http://localhost/vendorname/servicename" and select Go
6) Service is found and displays as expected
7) Enter a Reference name "ServiceName1"
8) Select OK

Proxies are not generated, only a Reference entry with a globe icon
indicating web reference.

When I try to create the C# instance, it cannot find an instance.

I also tried adding a framework 2.0 Web Reference, and it cannot generate
proxies there either.

I want to call the SOAP Web Service through Framework in 2008 but cannot
without the proxies.

What am I missing that is not generating proxies?

Well, the first thing you should have done is take
http://localhost/vendorname/servicename.asmx and pasted it into a
browser address line to see it the Web service can be accessed.

The second thing is again using the browser address line and paste
http://localhost/vendorname/servicename.asmx?WSDL into it to see if it
can produce WSDL Web service XML.
 
BigJohn said:
I am performing the following steps, but the proxies are not being
generated
and I can't reference in main.

1) IIS is installed on WinXP SP2, VS2008 C# and Web Development installed.
2) Placed outside WSDL in c:/inetpub/wwwroot/vendorname
3) New VS 2008 Console project
4) Right Click, Add Reference on solution explorer
5) Enter "http://localhost/vendorname/servicename" and select Go
6) Service is found and displays as expected
7) Enter a Reference name "ServiceName1"
8) Select OK

Proxies are not generated, only a Reference entry with a globe icon
indicating web reference.

When I try to create the C# instance, it cannot find an instance.

I also tried adding a framework 2.0 Web Reference, and it cannot generate
proxies there either.

I want to call the SOAP Web Service through Framework in 2008 but cannot
without the proxies.

What am I missing that is not generating proxies?

The file that contains the proxy is hidden in the Solution Explorer, so if
you unhide your project files and expand the globe (web reference), you
should be able to see the .cs file with the proxy.

In order to make an instance of the proxy, you must reference it via the
namespace of the proxy, which will be the name you gave to the web
reference.

-Scott
 
Back
Top