I have about 230 ".xsd" files, all of them start with:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="
http://www.ecma.ch/standards/ecma-323/csta/ed2" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:csta="
http://www.ecma.ch/standards/ecma-323/csta/ed2" elementFormDefault="qualified" attributeFormDefault="unqualified">
.........
.........
</xsd:schema>
Is that redefition?
The wsdl file has this:
<types>
<xs:schema
targetNamespace="
http://www.ecma-international.org/standards/ecma-348/csta-w sdl">
<xs:import namespace="
http://www.ecma.ch/standards/ecma-323/csta/ed2" schemaLocation="csta.xsd"/>
</xs:schema>
</types>
------------
For example, "accept-call.xsd" ia:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="
http://www.ecma.ch/standards/ecma-323/csta/ed2" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:csta="
http://www.ecma.ch/standards/ecma-323/csta/ed2" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:annotation>
<xsd:documentation>CSTA-accept-call</xsd:documentation>
</xsd:annotation>
<xsd:include schemaLocation="call-connection-identifiers.xsd"/>
<xsd:include schemaLocation="device-feature-types.xsd"/>
<xsd:include schemaLocation="extension-types.xsd"/>
<xsd:element name="AcceptCall">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="callToBeAccepted" type="csta:ConnectionID"/>
<xsd:element ref="csta:correlatorData" minOccurs="0"/>
<xsd:element ref="csta:userData" minOccurs="0"/>
<xsd:element ref="csta:extensions" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="AcceptCallResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="csta:extensions" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------------------
While "agent-busy-event.xsd" is:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="
http://www.ecma.ch/standards/ecma-323/csta/ed2" xmlns:xsd="
http://www.w3.org/2001/XMLSchema" xmlns:csta="
http://www.ecma.ch/standards/ecma-323/csta/ed2" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xsd:annotation>
<xsd:documentation>CSTA-agent-busy-event</xsd:documentation>
</xsd:annotation>
<xsd:include schemaLocation="event-cause.xsd"/>
<xsd:include schemaLocation="device-identifiers.xsd"/>
<xsd:include schemaLocation="status-reporting.xsd"/>
<xsd:include schemaLocation="device-feature-types.xsd"/>
<xsd:include schemaLocation="extension-types.xsd"/>
<xsd:element name="AgentBusyEvent">
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="csta:monitorCrossRefID"/>
<xsd:element name="agentDevice" type="csta:SubjectDeviceID"/>
<xsd:element name="agentID" type="csta:AgentID" minOccurs="0"/>
<xsd:element name="acdGroup" type="csta:DeviceID" minOccurs="0"/>
<xsd:element name="pendingAgentState" type="csta:PendingAgentState"
minOccurs="0"/>
<xsd:element ref="csta:cause" minOccurs="0"/>
<xsd:element ref="csta:extensions" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
----------------------------------------------------------------------------
-
By the way, I have 320 error message like the below one for each file (not
only for accept-call.xsd):
- Custom tool warning: Ignore duplicate schema document
'file:///C:/csta_wsdl_docs/accept-call.xsd' with TargetNamespace
'
http://www.ecma.ch/standards/ecma-323/csta/ed2'.
- Custom tool warning: Ignore duplicate schema document
'file:///C:/csta_wsdl_docs/agent-busy-event.xsd' with TargetNamespace
'
http://www.ecma.ch/standards/ecma-323/csta/ed2'.
- Custom tool warning: Ignore duplicate schema document
'file:///C:/csta_wsdl_docs/agent-logged-off-event.xsd' with TargetNamespace
'
http://www.ecma.ch/standards/ecma-323/csta/ed2'.
....... and so on .....
Thanks,
[quoted text, click to view] "Christoph Schittko [MVP]" <INVALIDEMAIL@austin.rr.com> wrote in message
news:OAhRE13nEHA.4032@TK2MSFTNGP15.phx.gbl...
> The new error sounds like it's legitimate. Any chance another file
> besides 'file:///C:/csta_wsdl_docs/accept-call.xsd' defines the
> namespace '
http://www.ecma.ch/standards/ecma-323/csta/ed2' where if
> should reference it via an import or an include?
>
> HTH,
> Christoph Schittko
> MVP XML .NET
>
> > -----Original Message-----
> > From: trexim [mailto:trexim@hotmail.com]
> > Posted At: Monday, September 20, 2004 3:37 PM
> > Posted To: microsoft.public.dotnet.xml
> > Conversation: Problem add Web Reference for CSTA WSDL
> > Subject: Re: Problem add Web Reference for CSTA WSDL
> >
> > Thank you for your reply.
> >
> > I tried that too (quite tedious, with the downloading of 229 .xsd
> files).
> > I
> > no longer get the error message while using the "Add Web Reference"
> > wizard,
> > but VS .Net couldn't generate any codes and complains that:
> > "
> > Custom tool warning: DiscoCodeGenerator unable to initialize code
> > generator.
> > No code generated.
> > Custom tool warning: Ignore duplicate schema document
> > 'file:///C:/csta_wsdl_docs/accept-call.xsd' with TargetNamespace
> > '
http://www.ecma.ch/standards/ecma-323/csta/ed2'.
> > "
> >
> > Obviously this could be a brand new type of error.
> >
> > I am just surpised that searching the Web and news-group for similar
> > problem, I couldn't find any entry. As if nobody ever tried this
> csta.wsdl
> > with Visual Studio .NET. ECMA does not have (it seems) a developer
> forum
> > or
> > anything like that. Microsoft is using some CSTA standard (for voice
> > application in particular) and appears to be moving away from TAPI.
> > Hopefully, I am still posting something in topic here.
> >
> > Any reply/advice/pointer are greatly appreciated.
> >
> > Thank you very much,
> >
> >
> > "Christoph Schittko [MVP]" <INVALIDEMAIL@austin.rr.com> wrote in
> message
> > news:Ow7Q$N0nEHA.212@TK2MSFTNGP10.phx.gbl...
> > > Trexim,
> > >
> > > The problem is that the schemaLocation reference to csta.xsd is
> > > relative, therefore wsdl.exe (and Visual Studio) append the path
> > > location of the referencing wsdl document -- which I would assume to
> be
> > > the default behavior.
> > >
> > > Unfortunately, you can't provide a "search path" for included
> documents,
> > > so your best bet is to download the wsdl and all references schemas,
> put
> > > them into a single folder on your disk and run wsdl.exe (or the Add
> Web
> > > Reference wizard).
> > >
> > > HTH,
> > > Christoph Schittko
> > > MVP XML
> > >
> > > > -----Original Message-----
> > > > From: trexim [mailto:trexim@hotmail.com]
> > > > Posted At: Monday, September 20, 2004 9:10 AM