Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Indigo

Vista - Is there a good tool for creating real contact first in wcf.

 
 
Old 09-04-2006   #1 (permalink)
R.A.B


 
 

Is there a good tool for creating real contact first in wcf.

Hello everybody

WCF is described as a contract first approch, even though you dont
generate the code from the xsd or wsdl

Im working on a project where someone is supplying me with the WSDL.
I coded a interface from it and and got the datatypes by running the
wsdl through svcutil

Now im creating a client by generating a stub, the problem is that the
original wsdl and the one exposed by my service do not look alike...
dont get me wrong, the service wsdl do still reflect the original,
however it has lost a lot of the restrictions etc.

My question..

Is there a way to generate service code for WCF from a wsdl, and keep
all the restriction information, or do I simply have to wait for better
one to one support for wsdl to wcf.

Ofcause I can generate stub code form the original wsdl, but I guess
that this will not change the restrictions for the client stub either.


My System SpecsSystem Spec
Old 09-25-2006   #2 (permalink)
q


 
 

Re: Is there a good tool for creating real contact first in wcf.

WSDL isn't the only type of contract out there. You shouldn't think of
WCF merely as a web service tool. Programmatically it looks feels MUCH
more like COM. In COM and WCF, the contracts are Interfaces, not WSDL
files. The OUTPUT of WCF *can be* WSDL, but output is never "first".
So, that's not what you use for contact first. In WCF, when we say
contract first, we mean you need to write the interfaces first
(Interface == Contract).

R.A.B wrote:
> Hello everybody
>
> WCF is described as a contract first approch, even though you dont
> generate the code from the xsd or wsdl
>
> Im working on a project where someone is supplying me with the WSDL.
> I coded a interface from it and and got the datatypes by running the
> wsdl through svcutil
>
> Now im creating a client by generating a stub, the problem is that the
> original wsdl and the one exposed by my service do not look alike...
> dont get me wrong, the service wsdl do still reflect the original,
> however it has lost a lot of the restrictions etc.
>
> My question..
>
> Is there a way to generate service code for WCF from a wsdl, and keep
> all the restriction information, or do I simply have to wait for better
> one to one support for wsdl to wcf.
>
> Ofcause I can generate stub code form the original wsdl, but I guess
> that this will not change the restrictions for the client stub either.


My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Anyone knows a good disaster recovery tool???? Vista hardware & devices
Anyone knows a good disaster recovery tool???? Vista hardware & devices
Adding New Contact when no "New Contact" option on tool bar? Vista mail
Finally everythings all GOOD...and i hope this is for real General Discussion
So what is a good tool for partition recovery? Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46