<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to creating</title><link>https://sourceforge.net/p/tinywsdl/wiki/creating/</link><description>Recent changes to creating</description><atom:link href="https://sourceforge.net/p/tinywsdl/wiki/creating/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 31 Jul 2012 12:47:54 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/tinywsdl/wiki/creating/feed" rel="self" type="application/rss+xml"/><item><title>WikiPage creating modified by Ratoo</title><link>https://sourceforge.net/p/tinywsdl/wiki/creating/</link><description>Creating a new WSDL 2.0 Description
---

Creation of new Description object is quite simple:

~~~~~~
WSDL2Factory factory = WSDL2Factory.newInstance();
Description description = factory.newDescription();
~~~~~~

&lt;br/&gt; Note that any description must have its targetNamespace defined:

~~~~~~
description.setTargetNamespace(URI.create("http://myorganization.org"));
~~~~~~

&lt;br/&gt;This targetNamespace is used as a namespace for top-level components.

Creation of all top-level components such as Interface, Binding, Service etc... 
is done through this Description component.

Note that this is a general rule in the API, so any component is created through its parent.

~~~~~~
Interface _interface = description.addInterface("my_interface");
Binding binding = description.addBinding("my_binding");
Service service = description.addService("my_service");
~~~~~~</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ratoo</dc:creator><pubDate>Tue, 31 Jul 2012 12:47:54 -0000</pubDate><guid>https://sourceforge.netd2013506591cdc59e20557c5f769b1edbc78c443</guid></item></channel></rss>