svcutil document literal wrapped

Posted on 2011-10-03
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
    LVL 9

    Expert Comment

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

    Expert Comment

    by:Anil Golamari
    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.
    LVL 1

    Author Comment

    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

    Take a look at below url and it should ans your question with some code samples.
    LVL 1

    Author Closing Comment

    Thanks. I think I get it now.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
    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…
    This video discusses moving either the default database or any database to a new volume.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now