Prev | Current Page 358 | Next

Binildas A Christudas

"Service-Oriented Java Business Integration"

One WSDL document can import other WSDL documents,
and setting targetNamespace to a unique value ensures that the namespaces do
not clash. The default namespace of the WSDL document is xmlns, and it is set to
http://schemas.xmlsoap.org/wsdl/. All the WSDL elements, such as definitions,
types and messages reside in this namespace. xmlns:xsd and xmlns:soap are the
standard namespace definitions used for specifying SOAP-specific information as
well as data types. xmlns:tns stands for this namespace.
The WSDLs are generated out of the service interfaces. These interfaces may be
in Java or .NET. When tools generate the WSDL, they will have their default
strategy on what value to put for the targetNamespace attribute. Many a times,
this can be overridden by the tools. Apache Axis WSDL2Java and Java2WSDL do
this. Hence, targetNamespace is an attribute which we can control if required. The
targetNamespace can be given values in multiple formats, depending upon which
way we want to control. Examples are given here:
targetNamespace=http://www.binildas.com/types/products/v1/1
targetNamespace=http://www.


Pages:
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370