axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <>
Subject Namespace support (was: Re: AXIS chat log for 9 October, 2001)
Date Wed, 10 Oct 2001 16:21:03 GMT
Russell Butek wrote:
> So we've agreed to:
> 1.  remove --package
> 2.  add some sort of command line argument for the namespace-to-package
> mappings
> 3.  look for a mapping properties file
> 4.  2 takes precedence over 3

Yep.  +1

> So now we have to decide
> 2.  What does the command line argument look like?  How about
>     --NStoPkg <ns0> <pkg0> -N <ns1> <pkg1> ... -N <nsN>

I'm thinking along the lines of what is easy to implement.  The CLI util that
we are already using supports 2 argurment parameters in the form of
<arg1>=<arg2>.  I suggest we use that.

I would be +1 to "--NStoPkg" being the long form and "-N" being the short form.

> 3.  What's the name of this file?  Are the
> pairs in the file <namespace>=<package>?  What happens if the namespace
> string contains "=" or whitespace?  Does java.util.Properties handle it?
> Maybe the pairs should be <package>=<namespace>?

Yes, java.util.Properties does handle that.  Basically the information needs
to be escaped by a backslash ('\=').  If you generate the mapping from a
Properties file, you will see what I mean.  I believe whitespace requires
you to enclose the property name in quotes.  The Javadocs has all the information.

I believe it is easier for the user if the namespace is first.  Logically, we
are mapping the namespace to the package, not the other way around.  (not to
mention the problems with using the Properties object).

As to the name, it should probably match the WSDL file name with the "properties"
extension in lieu of the "wsdl" extension:


> About your last point, Berin, I disagree with you.  I believe, via imports,
> you can have multiple WSDL definitions and, therefore, multiple namespaces
> for the WSDL things in the definitions.  Here's an example from section
> 2.1.2 of the WSDL spec.  The namespace for the service and the binding is
> "" and the namespace for the portType
> is "".  WSDL4J supports this.

My last point is regarding XInclude processing--meaning it should be done
before we process the WSDL document.  If the resulting WSDL is bad, the
author has given us an invalid document.  I am relatively new to WSDL in
detail, so if I say something rediculous let me know (as you are doing
now ;P).

In the example you presented, you are _not_ using XInclude semantics.  Therefore
my comments regarding XInclude don't apply here.  The confusion surrounded
comments (either in source or on the list) that alluded to us using XInclude
for the processing.  To use XInclude, the result would have to be altered
like this:

           <?xml version="1.0"?>
           <definitions name="StockQuote"


              <xi:include href=""

               <message name="GetLastTradePriceInput">
                   <part name="body" element="xsd1:TradePriceRequest"/>

               <message name="GetLastTradePriceOutput">
                   <part name="body" element="xsd1:TradePrice"/>

               <portType name="StockQuotePortType">
                   <operation name="GetLastTradePrice">
                      <input message="tns:GetLastTradePriceInput"/>
                      <output message="tns:GetLastTradePriceOutput"/>

The wsdl:import has different semantics around it--and in fact, I am surprised
that WSDL4J doesn't automagically handle it for us.  Since it is officially
part of the spec, I would think that this is something WSDL4J needs to do.  Otherwise,
the utility of it is reduced.

View raw message