Hi Matteo,

I have had a look at the patch and debugged it a little but it appears
the generated wsdl
is not correct - I will look into it a bit more and get back to you with
more information.

Cheers, Edell. 

-----Original Message-----
From: Matteo Vescovi (JIRA) [mailto:[EMAIL PROTECTED] 
Sent: 28 July 2006 17:20
To: yoko-dev@incubator.apache.org
Subject: [jira] Updated: (YOKO-97) Support for exceptions

     [ http://issues.apache.org/jira/browse/YOKO-97?page=all ]

Matteo Vescovi updated YOKO-97:
-------------------------------

    Attachment: exception_and_basic_struct_support.diff
                exception_and_basic_struct_support.zip

Hi,
attached is a patch to add support for IDL exception and struct types to
IDLToWSDL tool.

The attached zip archive contains two new source files
StructVisitor.java and ExceptionVisitor.java which should be placed in
(all paths rooted at trunk):
tools/src/main/java/org/apache/yoko/tools/processors/idl/StructVisitor.j
ava
tools/src/main/java/org/apache/yoko/tools/processors/idl/ExceptionVisito
r.java

Four new resource files needed for new tests I added are also in the zip
archive; these should be placed in:
tools/src/test/resources/idl/Exception.idl
tools/src/test/resources/idl/expected_Exception.wsdl
tools/src/test/resources/idl/Struct.idl
tools/src/test/resources/idl/expected_Struct.wsdl

Please examine the contents of the resource files before considering
applying this patch.
I am not 100% sure that the generated wsdl is correct and would like
someone more familiar with wsdl than I am :-) to ensure everything is
fine.

In particular, in expected_Exception.wsdl generated from Exception.idl,
the complexTypeS representing each idl exception are wrapped by an
element.
I couldn't get XmlSchema to create the following wsdl fragment:
<complexType name="ExternalException">
    <sequence>
        <element name="description" type="string"/>
    </sequence>
</complexType>
<element name="ExternalException" type="ExternalException"/>

Instead, I have the following:
<xs:element name="ExternalException">
  <xs:complexType name="ExternalException">
    <xs:sequence>
      <xs:element name="description" type="xs:string">
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>
Is this correct?

If there are any problems, I'll gladly fix them and create a new patch.

Cheers,
- Matteo


> Support for exceptions
> ----------------------
>
>                 Key: YOKO-97
>                 URL: http://issues.apache.org/jira/browse/YOKO-97
>             Project: Yoko - CORBA Server
>          Issue Type: Sub-task
>          Components: Idl2Wsdl
>    Affects Versions: 1.0-incubating-M1
>            Reporter: Balaji Ravi
>         Attachments: exception_and_basic_struct_support.diff, 
> exception_and_basic_struct_support.zip
>
>
> Map the idl exceptions to a wsdl fault, a struct schema type & a
corba:exception type map.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira

        


Reply via email to