org.eclipse.wst.wsdl.Definition serialization namespace [message #145995] |
Wed, 02 November 2005 15:35  |
Eclipse User |
|
|
|
Originally posted by: esnible.acm.org
I create a <definition> using
org.eclipse.wst.wsdl.WSDLFactory.eINSTANCE.createDefinition( ), add the
definition to a Resource, and save it. The generated .wsdl file looks
like this:
<?xml version="1.0" encoding="UTF-8"?>
<definitions/>
This was unexpected; I had hoped to see a namespace:
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"/>
This seems to be my fault. I have told the ResourceSet to use
org.eclipse.wst.wsdl.internal.util.WSDLResourceFactoryImpl (by putting
that in the extension-to-factory map.) When I put XMIResourceFactoryImpl
into the extension-to-factory map alone I get proper namespaces:
<?xml version="1.0" encoding="ASCII"?>
<wsdl:Definition xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:wsdl="http://www.ibm.com/wsdl/2003/WSDL"/>
... but that factory impl can't serialize the full WSDL I want to generate
(EMF complains the embedded schemas aren't contained in a file when
serializing using XMIResourceFactoryImpl).
Any advice?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02975 seconds