You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Cedric Bompart <ce...@morse.com> on 2001/04/17 16:22:31 UTC

schema?

Hello,

I try to map a new type to be use by Soap...

Here is my mapping instruction in the deployment descriptor:
	<isd:mappings>
		<isd:map
encodingStyle="http://schemas.xmlsoap.org/soap/encoding/
http://localhost/encoding/" xmlns:x="urn:xml-soap-bank" qname="x:account"
javaType="bank.Account"
java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
	</isd:mappings>

Here is my w3c schema:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/1999/XMLSchema">
	<xsd:element name="account"/>
	<xsd:complexType>
		<xsd:sequence>
			<xsd:element name="id" type="xsd:int"/>
			<xsd:element name="balance" type="xsd:long"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>

How should I call my schema file? xml-soap-bank.xsd?
it is the right way to involve new type?

Thx.
Ced.

--
Cedric Bompart, Internet Developer, Morse Hughes Rae
tel: 01332 826110   mobile: 07931 536934   switchboard: 01332 826000
email: c.bompart@hughesrae.co.uk

This email and any attachments are confidential and are intended only for
the addressee. If you are not the intended recipient of this email and have
received it in error, please notify the sender immediately by reply email
and then delete it from your system.


---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org