Michelle,

Found on: http://xml.apache.org/soap/faq/faq_chawke.html
9.10  How do I exchange complex types between Apache-SOAP and MS SOAP?
The Castor XML tool (http://www.castor.org) is one way of doing this. Andrew
Fawcett of CODA was kind enough to make some sample code available on the
Castor web site: http://www.castor.org/presentations.html.

I've used once the XML-SOAP stuff, our XML-SOAP, was defined by a other
company, which made changes each time a new release came up. As expected
they where still doing heavy development on their XML-SOAP interface. So we
then choiced to use FrameMaker, which uses a template and a FrameMaker
model. The model is then murched into the template. More concrete, we wrote
the xml output file as a template. When it was changed again, we just made
the changes in the templates (the data we had to send wasn't changed). And
in the application we wrote some methods to fill the model with the data.
Then the data could be murged on the template and send to the application.
http://freemarker.sourceforge.net/

It should not be a problem to have xml instance as

  <car ...>
  </car>

or as 

  <car .... />

I think there isn't a setting in Castor for this 'option'.

Probutly that there are tools (/ package) which can do this, then let that
package read, 'strip' / modify and write then message.


Tjeerd


> -----Original Message-----
> From: Michelle Azzopardi [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 25 april 2002 11:30
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] Question about Castor XML Mapping & NameSpaces
> 
> 
> Hi,
> 
> I am using Castor, however I still have a few question marks 
> which I can't 
> seem to find the answer for. Can you please help me, it's 
> important for my 
> final year thesis.
> 
> So Castor say:
> "For Castor, a Java class has to map into an XML element. When Castor
> marshals an object, it will:
> 
> - use the mapping information, if any, to find the name of 
> the element to
> create " etc...
> 
> I would like to know whether it is possible in castor to map 
> the XML as in
> the following lines (1) & (2).. and more importantly how...? These XML
> documents make use of URI NameSpaces incl.
> http://www.w3.org/2000/10/XMLSchema
> 
> 
> 1) <car colour = "red" type = "saloon" />
> 
> 2) <xsd:element name = "id" type ="xsd:int"/>
> 
> I only found examples of mappings with closed element tags
> 
> <car colour = "red" type = "saloon" >
> <>
> </>
> </car>  <-- closing tag
> 
> Can Castor be used to create XML documents from Java by 
> marshalling using
> Other URI Namespaces...such as 
http://schemas.xmlsoap.org/soap/encoding/?

Any help is appreciated
Tnks a lot
Michelle




_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

This e-mail and any attachment is for authorised use by the intended recipient(s) 
only.  It may contain proprietary material, confidential information and/or be subject 
to legal privilege.  It should not be copied, disclosed to, retained or used by, any 
other party.  If you are not an intended recipient then please promptly delete this 
e-mail and any attachment and all copies and inform the sender.  Thank you.

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to