Hello to all,
I've got a little problem...When I try to add a schema (With aegis) to
define a certain type the generated one is generated all the same...
So I've got two definitions. I want that my definition stands and the
generated one to be removed...
Is someone can help me to resolve this problem?
Definition of the service
XFireHttpServer server;
// Create an XFire Service
ObjectServiceFactory serviceFactory = new
ObjectServiceFactory();
Service lservice =
serviceFactory.create(com.society.service.class);
ArrayList schemas = new ArrayList();
HashMap properties = new HashMap();
schemas.add("schema.xsd");
properties.put(ObjectServiceFactory.SCHEMAS, schemas);
// Register the service in the ServiceRegistry
XFire xfire = XFireFactory.newInstance().getXFire();
xfire.getServiceRegistry().register(lservice);
// Start the HTTP server
server = new XFireHttpServer();
server.setPort(8191);
server.start();
Definition in schema.xsd :
<xsd:complexType name="MyDataVO">
<xsd:sequence>
<xsd:element minOccurs="1" minOccurs="1"
name="note" nillable="true" type="xsd:string"/>
<xsd:element minOccurs="1" minOccurs="1"
name="myId" nillable="true" type="xsd:base64Binary"/>
</xsd:sequence>
</xsd:complexType>
Generated Schema :
<xsd:complexType name="MyDataVO">
<xsd:sequence>
<xsd:element minOccurs="0" name="note"
nillable="true" type="xsd:string"/>
<xsd:element minOccurs="0" name="myId"
nillable="true" type="xsd:base64Binary"/>
</xsd:sequence>
</xsd:complexType>
And finally in the generated WSDL I find in the two definition types...
(the generated one and the one in the schemas.xsd)
This email was sent to you by Reuters, the global news and information company.
To find out more about Reuters visit www.about.reuters.com
Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Reuters
Limited.
Reuters Limited is part of the Reuters Group of companies, of which Reuters
Group PLC is the ultimate parent company.
Reuters Group PLC - Registered office address: The Reuters Building, South
Colonnade, Canary Wharf, London E14 5EP, United Kingdom
Registered No: 3296375
Registered in England and Wales