I am creating a set of Web Services which share some common xml defined data elements. I want to separate these entities into a common schema, service 1 specific schema, service 2 specific schema etc... the service specific schemas will reference the common schema. I want to use svcutil /datacontractonly to generate classes that can be used to create and serialize these objects using the WCF web programming model. The problem I am having is that when I import the common schema into the service specific schemas the common schema entity classes are included in the code generated for the service specific classes. This causes compile errors later when a single client attempts to use the generated entity classes for two services which both use the common schema entities. Is there anyway to get svcutil to only include the service specific entities in the generated code? I'd just like to have a common dll which includes the common schema entities which the services may reference.
1
There are 1 best solutions below
Related Questions in WCF
- couldn't copy pdb file to another directory while consuming wcf web service
- Call wcf from android app
- WCF Service not accepting multiple body parameters
- Error in Calling some service in WCF Client
- WCF channel Factory caching
- How to convert a List<string> to an IEnumerable<ServiceReference.datatable> C# Silverlight WCF RIA Services LINQ to SQL
- WCF reusing types with inheritance - cannot generate client code
- System.ServiceModel.FaultException'1' Where might the error be?
- How to configure proxy address for multiple WCF-bindings at once?
- How pass XML from PHP to the Soap WCF service?
- Multiple service contract inter-commnication
- WCF Service not returning virtual property ServiceProvider
- How to get information about error from HttpContext in WCF services
- Using Service Bus to access On Premise WCF Service
- Test case for WCF REST Service
Related Questions in WEB-SERVICES
- couldn't copy pdb file to another directory while consuming wcf web service
- .net rest service with JSON string and consumed with java client
- How to send Rest GET request that contains "#" value in url parameters?
- Looking the Method that MANUALLY INSTALL PHP on OSX Yosemite
- How to use @queryparam when using array in Java
- How to accept cookies when using a webservice - Android?
- zend soap server reading xml attributes
- Web Service Error path property must set before calling the send method
- Error with kSOAP2
- JAX-RS service response is returning double fields without decimal places
- How can I call a ASP.Net webservice using AJAX without calling controller
- Generate clients for multiple WSDL files and place it in different package through Spring Gradle
- File upload in AXIS2 webservice
- How to route by call method in proxy with WSO2?
- fetch data from web service to dataset in Delphi
Related Questions in XSD
- Shorten the XSD
- Custom XML Validator Factory
- XSD.exe Generating Classes with type Object instead of XSD defined type
- How to generate parameterized constructor for Type/Class from XSD
- Validate xml if any one element exists in a sequence xsd
- XML Validation with XML-Reader in PHP
- exception unmarshalling xml file using jaxb
- Building XSD for secific xml
- Restriction on elements depending on attributes in XSD 1.1
- XSD unique element XPath limitations
- Convert date type to string in jaxb using bindings
- How to validate xsd schema if it includes ohter schemas?
- .NET XmlSerializer and multidimensional arrays
- Java - Spring Ws - Loading Relative Includes in XSD files (Tomcat 8)
- XML validation: why is explicitly specifying a namespace not allowed in this case?
Related Questions in SVCUTIL.EXE
- How does the svcutil (WCF) create task based methods for every service?
- wcf service don't send element even the service xsd element has minOccurs and nillable in default values
- Create a proxy class with summary from a wsdl using svcutil
- How to reuse all assembly types in svcutil and specify a dictionary collection type?
- svcutil not exporting metadata for generic DataContract types
- SvcUtil and /dconly generates XSD's for data types NOT marked with the DataContract attribute
- How to determine what schema files (xsd) to include on my svcutil command line?
- Use svcutil.exe with a webproxy
- svcutil not generate the complextype which wrap an array of another type with /xmlserializer sometimes
- Why might VS "Add Service Reference" not generate interfaces for servicecontracts that svcutil recognizes just fine?
- why is proxy code Generated by svctuil so small?
- svcutil ignores WS-Trust Claims
- Creating shared data transfer classes generated by svcutil /datacontractonly and used in WCF web programming model
- Do i have to include xml namespaces in the svcutil.exe command?
- Deserialize object with XmlAnyElementAttribute not working
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I think this is what you need (on svcutil options)
/reference:
References types in the specified assembly. When generating clients, use this option to specify assemblies that might contain types that represent the metadata being imported.
You cannot specify message contracts and XmlSerializer types using this switch.
If DateTimeOffset referenced, this type is used instead of generating a new type. If the application is written using .NET Framework 3.5, SvcUtil.exe references DateTimeOffset automatically.
Short Form: /r
here is where I found it