Avatar of trgb
trgbFlag for United States of America

asked on 

svcutil document literal wrapped

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

Avatar of undefined
Last Comment
trgb
Avatar of Grant Spiteri
Grant Spiteri
Flag of Australia image

Not to sure but why dont you create your own proxy?
Avatar of Anil Golamari
Anil Golamari
Flag of United States of America image

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.
Avatar of trgb
trgb
Flag of United States of America image

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of Anil Golamari
Anil Golamari
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of trgb
trgb
Flag of United States of America image

ASKER

Thanks. I think I get it now.
WCF
WCF

Windows Communication Foundation (WCF) is a tool used to implement and deploy a service-oriented architecture (SOA) to support distributed computing where services have remote consumers. It features a runtime and a set of APIs in the .NET Framework for building connected, service-oriented applications. Services typically have a WSDL interface (Web Services Description Language) that any WCF client can use to consume the service, regardless of which platform the service is hosted on. WCF implements many advanced Web services (WS) standards such as WS-Addressing, WS-ReliableMessaging, WS-Security, RSS Syndication Services, WS-Discovery, routing and better support for REST services.

4K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo