Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
2

2005732

@2005732
About
Posts
4
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Dependency Injection ?
    2 2005732

    I've not yet looked into the AOP features of .NET 3.5 but I've been on teams that used Spring.NET in the past (although I wasn't involved so I don't have any practical experience with it) I just found a pretty sweet article right here on CodeProject that rates some open source AOP add-ons. This might help you if you're really set on using it. Rating of Open Source AOP Frameworks in .Net[^] Good luck. ~j

    WCF and WF question

  • Dependency Injection ?
    2 2005732

    Google "Aspect Oriented Programming (AOP)" and be prepared to read a lot... Glad you asked though because I didn't know this:

    .NET 3.5 supports Aspect Oriented concepts through the Unity container.

    Start here maybe: http://en.wikipedia.org/wiki/Aspect-Oriented\_Software\_Development

    WCF and WF question

  • Can a Java application call a DotNet WCF service ? [modified]
    2 2005732

    WCF is supposed to be much more compliant with standards than webservices but I have no experience with java and couldn't tell you definitely. What I do know is that a developer writing a WCF service can certainly make it so that it would NOT work with java. Meaning because it's WCF doesn't automatically make it consumable from java. I am currently writing a WCF service and have gone to great lengths to make it as vanilla as possible for that reason ... I would be interested in trying this with you. I could write a very simple service and see if you can consume it. But again.. I wouldn't be able to help on the java side of things at all. ~j

    WCF and WF csharp java wcf help tutorial

  • How to? Excluding referenced types while generating DTOs [modified]
    2 2005732

    I've googled this to the point of absolute frustration without success, but it's what I would consider a noob question I'm hoping someone can help me with. There has been a lot of close-but-not-quite conversation on the interwebs about my issue so I'm going to be as explicit as I can (aka verbose ... sorry). My goal is to use svcutil to generate my datacontracts which are also my DTO's for my WCF service. Everything works great until i have a datacontract that contains another datacontract ... and it does work ... except I have to manually go into the referencing generated class and remove the duplicated definition ... EVERYTIME I regenerate. I thought the svcutil /excludetype (/et) option would do this but I can't get it to work. Here is an illustration: I have an .xsd file that looks like this: (I'm leaving out the headers removing all but a single property to keep it simple. In reality there is obviously a lot more to this than a phone number.)

    <xs:complexType name="ContactDTO">
    xs:sequence
    <xs:element minOccurs="0" maxOccurs="1" name="PhoneNumber" type="xs:string" />
    xs:sequence
    xs:complexType

    I run it through svcutil and it generates my datacontract perfectly and I get a ContactDTO.vb class. But then I have another xsd that references the first like so: (again.. greatly simplified to not waste your time)

    <xs:include schemaLocation="ContactDTO.xsd"/>

    <xs:complexType name="CustomerDTO">
    xs:sequence
    <xs:element minOccurs="0" maxOccurs="1" name="CustomerName" type="xs:string" />
    <xs:element minOccurs="0" maxOccurs="1" name="Contact" type="ContactDTO" />
    xs:sequence
    xs:complexType

    After a bunch of trail and variation I've landed on using the following command line to generate the classes:

    svcutil /dconly ./CustomerDTO.xsd /n:http://mynamespacegoeshere.ccc/Schemas, /out:./Classes/CustomerDTO.vb /language:VB ./ContactDTO.xsd /et:ContactDTO.xsd

    And like i said, it does work ... but I get two classes, the CustomerDTO.vb class which I want and ANOTHER copy of the ContactDTO.vb class that has already been generated previously and i have to go into my generated classes and hand edit the duplicates out. Now I could just not generate the first class however the point is resuse ... so I have several OTHER classes that reference ContactDTO and I have to edit out every instance of the duplicate generated cod

    WCF and WF help question csharp wcf tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups