trgb
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?
Not to sure but why dont you create your own proxy?
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.
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.
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
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks. I think I get it now.