473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Repeat schemas in differing WSDLs

We're trying to write a .NET/C# application against a series of services.
Normally it would just be easy, add web reference and we're done. However
there a 5 different services and they all share common <schema:types> which
are declared in each wsdl (not imported from one central document). When I
add a web reference 5 different times it creates 5 different versions of
all these types in different namespaces.

For example, in Service1 the Customer type goes in MyService.Service1 and
in Service2 the Customer type goes into MyService.Service2 - creating two
distinct .NET types which represent the same schema type. This creates
issues as we want to share types and information from service to service.

Is there to circumvent this? Cheers,

- Dan

--
Dan Diephouse
http://netzooid.com
Nov 23 '05 #1
1 851
This creates
issues as we want to share types and information from service to service.


Yup, it does.

Are you doing .NET 2.0 stuff or 1.1?

In .NET 2.0 this has been fixed through the /sharetypes switch on the
command line for wsdl.exe.

I remember it to be quite cumbersome in 1.1 to overcome this "issue".
Think I did declare the types in external XML schema files, and
referenced those through xsd:import in the types section of my wdsl
document or something like that. I can't quite remember anylonger...
Sorry... But 2.0 fixes it.

Regards

Henrik Gøttig
http://websolver.blogspot.com
Nov 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kyancy | last post by:
Hello All. We have several XML schemas to describe common component document parts. We then create new XML schemas as necessary that use "xsd:import schemaLocation=whateverLocation.." to include...
30
by: btober | last post by:
Whenever I create a temporary table, with something like CREATE TEMPORARY TABLE temptable1 AS SELECT * FROM paid.ad_hoc_query; New schemas appear, with names like "pg_temp_1". I guess the...
4
by: anonymous | last post by:
When I use the schema collection to apply many schemas to one XML instance document, I get an error if I do not qualify every element with the appropriate namespace. Both the W3C site and this...
2
by: John Jenkins | last post by:
Hi, I have a lot of schemas to load into a schema collection. I load them in by reading each one into a XMLTextReader from disk and add them into a schema collection. I have a couple of issues to...
0
by: wschaub | last post by:
Is it correct that VS2005 will contain several enhancements and additional features in VS2005/.NET2.0 which eliminate the restrictions/failures/limitations in terms of WS-Basic Profile (e.g. R2717...
14
by: Roland Hall | last post by:
Since I'm not getting any response from the community, I'm reposting this under my managed account. I've turned my web.config friendly error messages off and it may be easier to view what I'm...
6
by: Dennis Gearon | last post by:
This post is as much about getting some questions answered as leaving the following definitions in the archives for the next person. After a quick perview of the web, I came up with the...
3
by: Sami Marzouki | last post by:
Hi, What I'm trying to do is: - To write a Web.config with custom sections. (Done) - To write a xsd schema for this custom sections.(Done) - Tell the Web.config to take the two schemas. When...
0
by: vihrao | last post by:
I am designing wsdl that uses multiple schemas. I can do this in two ways: 1) use multiple schema imports in one wsdl or 2) use multiple schema imports in to one common schema and then import a...
0
by: mohitp | last post by:
HI I am trying to compile WSDLs on a unix box, it generates the .obj file, but when creating .lib it throws this error execvp: ar: Arg list too long Any pointers to this error? Thanks Mohit
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.