Hello Ashika Umanga,
first of all, welcome to Woden and secondly, do how would you prefer to be 
addressed? I assume your full name is Ashika Umanga Umagiliya, but I'm not 
sure which short name to use - Ashika or Umanga?  We address Eran 
Chinthaka as 'Chinthaka', but it looks like Sagara Gunathunga prefers to 
be addressed as 'Sagara', so I'd like to make sure I've got it right.

I'm posting about your comment:

> 1) when I wanted to get the objects of 'ImportedSchema' by calling 
> "TypesElement.getImportedSchemas() " method.It returned not only the
> imported schema,but also the inline schemas? 

I could not recreate the error you describe. My WSDL test case is attached 
to this email and a fragment of my test client code is pasted here:

public static void testSchema3(Description descComp) {
  TypesElement typesEl = descComp.toElement().getTypesElement();
  Schema[] allSchemas = typesEl.getSchemas();
  Schema[] importedSchemas = typesEl.getImportedSchemas();
  Schema[] inlinedSchemas = typesEl.getInlinedSchemas();
  System.out.println("Finished testSchema3");
}

The wsdl:types element contains one <xs:import> element and one 
<xs:schema> element. When Woden parses a WSDL document it also adds a 
ImportedSchema object for the built-in W3C XMLSchema types (xs:String, 
xs:QName, etc). I expect to see 3 schema objects in 'allSchemas', 2 
objects in 'importedSchemas' (the xs:import from my WSDL and the one added 
by Woden) and 1 object in 'inlinedSchema'. This is exactly what I see. Is 
it possible that you saw the extra ImportedSchema added by Woden for 
built-in types and confused this for an inlined schema in your WSDL? 

Please note, this is not a permanent feature of Woden - it's just how we 
implemented support for built-in XMLSchema types originally, but we'll 
change this (see WODEN-131) so it doesn't parse the W3C XMLSchema schema 
into an ImportedSchema object to store the built-in types.



regards,
John Kaputin

"ashika umanga" <[EMAIL PROTECTED]> wrote on 01/08/2007 09:00:41:

> hello guys,
> First of all let me introduce myself,my name is Ashika Umanga and I 
> really love to contribute for open source community.
> So with my one my friend sagara,i decided to give the best we got 
> for the Wodern project.
> So I started off with implementing parts of DOMWSDLWriter..
> I came upwith following problems.
> 
> 1) when I wanted to get the objects of 'ImportedSchema' by calling 
> "TypesElement.getImportedSchemas() " method.It returned not only the
> imported schema,but also the inline schemas? 
> 2) Is it ok to use the the 'write' method in "org.apache.ws.commons.
> schema.XmlSchema" ? or do we have to write our own method to 
> serialize the schemas?
> 
> thanks you in advance
> 
> 
> 
> -- 
> umanga
> http://umanga.ifreepages.com 





Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number 
741598. 
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU





Attachment: reservation.xsd
Description: Binary data

Attachment: reservation.wsdl
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to