svcutil document literal wrapped

Posted on 2011-10-03
Medium Priority
Last Modified: 2012-05-12
I'm trying to develop a wcf web service using a wsdl supplied by a vendor. Comments in the wsdl indicate that it is "designed using the Document Literal Wrapped pattern". The results of svcutil says that it is generating a message contract since the operation is neither RPC nor document wrapped. Is there something I can do to the wsdl before I run svcutil to get it to work?
Question by:trgb
  • 2
  • 2

Expert Comment

by:Grant Spiteri
ID: 36905180
Not to sure but why dont you create your own proxy?
LVL 18

Expert Comment

by:Anil Golamari
ID: 36905323
Using svcutil, you can create interfaces and classes (data contracts) from the WSDL.

svcutil your.wsdl (or svcutil your.wsdl /l:vb if you want Visual Basic)

This will create a file called "your.cs" in C# (or "your.vb" in VB.NET) which contains all the necessary items.

Now, you need to create a class "MyService" which will implement the service interface (IServiceInterface) - or the several service interfaces - and this is your server instance.

Now a class by itself doesn't really help yet - you'll need to host the service somewhere. You need to either create your own ServiceHost instance which hosts the service, configure endpoints and so forth - or you can host your service inside IIS.

Author Comment

ID: 36906644
I'm new to this, obviously, and have another question. In the tutorials I've done I had to define ServiceContracts OperationContracts and DataContracts. Why doesn't svcutil include those definitions?
LVL 18

Accepted Solution

Anil Golamari earned 2000 total points
ID: 36910731
Take a look at below url and it should ans your question with some code samples.


Author Closing Comment

ID: 36911328
Thanks. I think I get it now.

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question