[jdom-interest] Namespace.hashcode patch

philip.nelson at omniresources.com philip.nelson at omniresources.com
Thu May 31 09:17:19 PDT 2001


> -----Original Message-----
> From: Elliotte Rusty Harold [mailto:elharo at metalab.unc.edu]
> Sent: Thursday, May 31, 2001 11:04 AM
> To: philip.nelson at omniresources.com; jdom-interest at jdom.org
> Subject: RE: [jdom-interest] Namespace.hashcode patch
> 
> 
> At 9:36 AM -0500 5/31/01, philip.nelson at omniresources.com wrote:
> 
> That doesn't convince me. Suppose I use a different prefix later in 
> the document  but tie it to the same URI. Does it still work? 

Possibly, yes.

> If so 
> it's the URI that matters, not the prefix. For example,

It is the uri that matters and if you defined the new prefix in the
definitions element, it would be a normal acceptable situation as far as I
know.  Now, depending on how the WSDL processor application is resolving
prefixes to namespaces your example may or may not work.  I agree that it
should work. I don't know that it will work. 

> 
> 
> <definitions name="A_Service"
>    targetNamespace="urn:A_Service.com"
>    xmlns="http://schemas.xmlsoap.org/wsdl/"
>    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>    xmlns:tns="http://tempuri.org/AService" ******************
>      xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> 
> 
> >Setup a port based on the  message and type
> 
> <portType name="A_Service" 
> xmlns:newPrefix="http://tempuri.org/AService">
>    <operation name="echo">
>      <input message="newPrefix:InechoRequest"/> **************
>    </operation>
> </portType>
> 
> -- 
> 
> +-----------------------+------------------------+-------------------+
> | Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
> +-----------------------+------------------------+-------------------+
> |                  The XML Bible (IDG Books, 1999)                   |
> |              http://metalab.unc.edu/xml/books/bible/               |
> |   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
> +----------------------------------+---------------------------------+
> |  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
> |  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
> +----------------------------------+---------------------------------+
> 



More information about the jdom-interest mailing list