9

I'm attempting to create my first WCF service.

I've created the service and now I'm trying to call it from a asp.net (vb) web site and I've tried adding a web reference to it and using the scvutil.exe to consume the service.

So far neither have worked. It's not letting me declare the service in my code. If someone could point me to a good tutorial on how to consume a WCF service in an ASP.Net web site that would be great.

I've found numerous on how to use them with AJAX or silverlight or windows apps but nothing on using it in just a plain old website.

1

2 Answers 2

18

Please see Beginner's Guide to Windows Communication Foundation. It's part of the WCF Developer Center on MSDN, which is full of good resources.


The link above is broken. Some other links I've found while searching for it:

Sign up to request clarification or add additional context in comments.

2 Comments

This link seems to be active and may be of help: msdn.microsoft.com/en-us/data/ee720180.aspx
That's about WCF Data Services, which is different.
2

Just add service reference, use the service reference as using "reference1.xxxx" and then use the client code.

That's all after the initialization. It works for me. Let me know if you require any help.

1 Comment

could you clarify your answer some more?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.