C Sharp Console in VS2008 Adding Reference not generating Proxy

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?
 
M

Mr. Arnold

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.
 
S

Scott M.

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top