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
  1. Home
  2. General Programming
  3. C#
  4. Proxy class from WSDL considering known types.

Proxy class from WSDL considering known types.

Scheduled Pinned Locked Moved C#
wcftutorialquestion
3 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 2322509
    wrote on last edited by
    #1

    Hi, How to generate a proxy class from WSDL by not generating classes for known types ? I already have few classes which WSDL has and i don't want WSDL tool to generate partial classes for those client classes which i have in xyz namespace. Thanks

    U L 2 Replies Last reply
    0
    • U User 2322509

      Hi, How to generate a proxy class from WSDL by not generating classes for known types ? I already have few classes which WSDL has and i don't want WSDL tool to generate partial classes for those client classes which i have in xyz namespace. Thanks

      U Offline
      U Offline
      User 2322509
      wrote on last edited by
      #2

      I found the solution. I commented out all the shared types from proxy class (generated by wsdl) and added [XmlInclude] attribute on proxy class for all types in shared assembly. I am not sure its the right approach.

      1 Reply Last reply
      0
      • U User 2322509

        Hi, How to generate a proxy class from WSDL by not generating classes for known types ? I already have few classes which WSDL has and i don't want WSDL tool to generate partial classes for those client classes which i have in xyz namespace. Thanks

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        The WSDL tool has a command line switch to reuse classes from specifed assemblies instead of creating new ones. You can specify your assembly there. I don't know the exact switch though :(

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

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