Connecting Tech Pros Worldwide Help | Site Map

wsdl.exe and WS-Eventing

Stefan Lischke
Guest
 
Posts: n/a
#1: Nov 21 '05
hi there,

I have a lot of problems generating code for the new "WS-Eventing"
Specification

http://schemas.xmlsoap.org/ws/2004/08/eventing/

Is it possible, that after IBM joined this spec. the code can only be
generated
by the WSDL toolkit from IBM?????

I'm doing

wsdl.exe /server http://schemas.xmlsoap.org/ws/2004/08/eventing/

in a directory where i have downloaded XMLSchema.dtd and datatypes.dtd
(i was not able to use a local version of eventing.wsdl for wsdl.exe)

The following Error occurred:
-------
Schema validation warning: The global attribute
'http://www.w3.org/XML/1998/namespace:lang' has already been declared.
An error occurred at , (88, 3).
Schema validation warning: The global attribute
'http://www.w3.org/XML/1998/namespace:space' has already been
declared. An error occurred at , (95, 3).
Schema validation warning: The attributeGroup
'http://www.w3.org/XML/1998/namespace:specialAttrs' has already been
declared. An error occurred at , (111, 3).

Warning: Schema could not be validated. Class generation may fail or
may produce incorrect results.

Warning: no classes were generated.
--------

thanx for any help

Stefan Lischke
Stefan Lischke
Guest
 
Posts: n/a
#2: Nov 21 '05

re: wsdl.exe and WS-Eventing


Hello,

I solved some of my problems, and i just want to update this, in case of
someone googles to this problem.

I made a local version of eventing.wsdl eventing.xsd and addressing.xsd
and then used wsdl.exe

wsdl.exe /server eventing.wsdl addressing.xsd

!! pay attention not to add eventing.xsd to the cmd line, it gives a
redefiniton error

!! pay attention, you have to add addressing.xsd to cmd line, cause
wsdl.exe is not interpreting the schema location for imports [1]

Now there are no errors anymore and no redefinitions.
But also no code :-)

i wrote a mail to Alan Geller, who pointed me to the following:
--snip---
.....the .Net WSDL tool only generates code if you have bindings in your
WSDL, and the distributed .wsdl file only contains portTypes. To get
code to generate, you'll need to add a binding definition.
--snap---

I'll keep you updated when i created bindings and got some code.

In the meantime i found the Plumbwork Orange[2] project, an OpenSource
WS-Eventing implementation.


Greetings Stefan


[1]
http://msdn.microsoft.com/library/de...ml01202003.asp
(at the bottom of the page there is the question: Why doesn't XSD.exe
support the schemaLocation attribute on imports and includes?

[2] http://sourceforge.net/projects/plumbworkorange/

Stefan Lischke wrote:[color=blue]
> hi there,
>
> I have a lot of problems generating code for the new "WS-Eventing"
> Specification
>
> http://schemas.xmlsoap.org/ws/2004/08/eventing/
>
> Is it possible, that after IBM joined this spec. the code can only be
> generated
> by the WSDL toolkit from IBM?????
>
> I'm doing
>
> wsdl.exe /server http://schemas.xmlsoap.org/ws/2004/08/eventing/
>
> in a directory where i have downloaded XMLSchema.dtd and datatypes.dtd
> (i was not able to use a local version of eventing.wsdl for wsdl.exe)
>
> The following Error occurred:
> -------
> Schema validation warning: The global attribute
> 'http://www.w3.org/XML/1998/namespace:lang' has already been declared.
> An error occurred at , (88, 3).
> Schema validation warning: The global attribute
> 'http://www.w3.org/XML/1998/namespace:space' has already been
> declared. An error occurred at , (95, 3).
> Schema validation warning: The attributeGroup
> 'http://www.w3.org/XML/1998/namespace:specialAttrs' has already been
> declared. An error occurred at , (111, 3).
>
> Warning: Schema could not be validated. Class generation may fail or
> may produce incorrect results.
>
> Warning: no classes were generated.
> --------
>
> thanx for any help
>
> Stefan Lischke[/color]
Closed Thread