You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by John Kaputin <KA...@uk.ibm.com> on 2005/10/27 16:39:46 UTC
How to represent xs:AnyURI in Component model?
A question for Arthur mainly, but any comments welcome...
Several properties of WSDL 2.0 Components are defined as type xs:AnyURI and
then constrained further to absolute IRIs. Not sure whether to represent
these in the Component model interfaces as java.net.URI or if String will
suffice. We discussed this some time back. What are your thoughts?
Examples cases are:
Binding {type}
InterfaceOperation {message exchange pattern}
InterfaceOperation {style} ... a set of xs:AnyURI, so URI[] or String[]
Feature and Property {ref}
Endpoint {address}
John Kaputin
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: How to represent xs:AnyURI in Component model?
Posted by Davanum Srinivas <da...@gmail.com>.
Arthur,
+1. I have no problem either way. Just wanted us as a team to make a
conscious decision.
thanks,
dims
On 10/29/05, Arthur Ryman <ar...@gmail.com> wrote:
>
> Dims,
>
> I don't think JDK 1.3 support is a requirement for Woden 1.0. The main goal of Woden 1.0 is to help get the WSDL 2.0 spec finished. If later we get users who require JDK 1.3 we can assess them best solution. One approach would be to create our own URI class.
>
> Perhaps in preparation for that, we could create a Woden URI class and a subclass, AbsoluteURI. We could simply delegate the implementation now to java.net.URI, and later if we need to support JDK 1.3, provide an alternate implementation.
>
>
> On 10/27/05, Lawrence Mandel <lm...@ca.ibm.com> wrote:
> >
> > Interesting point Dims. I don't think we've discussed the level of the JRE that Woden will support.
> >
> > Does anyone have a problem requiring a 1.4 JRE?
> >
> > Lawrence
> >
> >
> >
> >
> > Davanum Srinivas <da...@gmail.com>
> >
> > 10/27/2005 03:59 PM
> >
> > Please respond to
> > woden-dev
> >
> >
> > To woden-dev@ws.apache.org
> >
> > cc
> >
> >
> > Subject Re: How to represent xs:AnyURI in Component model?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Arthur,
> >
> > So by default woden will not run on JDK1.3? java.net.URI is not
> > present in 1.3 AFAIK.
> >
> > -- dims
> >
> > On 10/27/05, Arthur Ryman < arthur.ryman@gmail.com> wrote:
> > > John,
> > >
> > > I believe java.net.URI is fairly lightweight so I suggest we use that.
> > > I know definitely that java.net.URL is very heavyweight and should be
> > > avoided. String in not appealing to me since we should ensure that the
> > > URI syntax is correct and be absolute (i.e. there is a scheme).
> > >
> > > On 10/27/05, John Kaputin <KA...@uk.ibm.com> wrote:
> > > > A question for Arthur mainly, but any comments welcome...
> > > >
> > > > Several properties of WSDL 2.0 Components are defined as type xs:AnyURI and
> > > > then constrained further to absolute IRIs. Not sure whether to represent
> > > > these in the Component model interfaces as java.net.URI or if String will
> > > > suffice. We discussed this some time back. What are your thoughts?
> > > >
> > > > Examples cases are:
> > > > Binding {type}
> > > > InterfaceOperation {message exchange pattern}
> > > > InterfaceOperation {style} ... a set of xs:AnyURI, so URI[] or String[]
> > > > Feature and Property {ref}
> > > > Endpoint {address}
> > > >
> > > >
> > > > John Kaputin
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
> >
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: How to represent xs:AnyURI in Component model?
Posted by Arthur Ryman <ar...@gmail.com>.
Dims,
I don't think JDK 1.3 support is a requirement for Woden 1.0. The main goal
of Woden 1.0 is to help get the WSDL 2.0 spec finished. If later we get
users who require JDK 1.3 we can assess them best solution. One approach
would be to create our own URI class.
Perhaps in preparation for that, we could create a Woden URI class and a
subclass, AbsoluteURI. We could simply delegate the implementation now to
java.net.URI, and later if we need to support JDK 1.3, provide an alternate
implementation.
On 10/27/05, Lawrence Mandel <lm...@ca.ibm.com> wrote:
>
>
> Interesting point Dims. I don't think we've discussed the level of the JRE
> that Woden will support.
>
> Does anyone have a problem requiring a 1.4 JRE?
>
> Lawrence
>
>
>
> *Davanum Srinivas <da...@gmail.com>*
>
> 10/27/2005 03:59 PM Please respond to
> woden-dev
>
> To
> woden-dev@ws.apache.org cc
> Subject
> Re: How to represent xs:AnyURI in Component model?
>
>
>
>
> Arthur,
>
> So by default woden will not run on JDK1.3? java.net.URI is not
> present in 1.3 AFAIK.
>
> -- dims
>
> On 10/27/05, Arthur Ryman <ar...@gmail.com> wrote:
> > John,
> >
> > I believe java.net.URI is fairly lightweight so I suggest we use that.
> > I know definitely that java.net.URL is very heavyweight and should be
> > avoided. String in not appealing to me since we should ensure that the
> > URI syntax is correct and be absolute (i.e. there is a scheme).
> >
> > On 10/27/05, John Kaputin <KA...@uk.ibm.com> wrote:
> > > A question for Arthur mainly, but any comments welcome...
> > >
> > > Several properties of WSDL 2.0 Components are defined as type
> xs:AnyURI and
> > > then constrained further to absolute IRIs. Not sure whether to
> represent
> > > these in the Component model interfaces as java.net.URI or if String
> will
> > > suffice. We discussed this some time back. What are your thoughts?
> > >
> > > Examples cases are:
> > > Binding {type}
> > > InterfaceOperation {message exchange pattern}
> > > InterfaceOperation {style} ... a set of xs:AnyURI, so URI[] or
> String[]
> > > Feature and Property {ref}
> > > Endpoint {address}
> > >
> > >
> > > John Kaputin
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: woden-dev-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
>
Re: Java level supported by Woden
Posted by John Kaputin <KA...@uk.ibm.com>.
I have changed the few cases of uri Strings to use java.net.URI instead.
I'm not ignoring the java 1.3 discussion. Just wanted to get some
consistency in the API for M2, and there were fewer changes that way round.
I had to make some changes in DOMUtils to get URI working, which will do
for now. If we decide to stick with 1.42 I'll improve the code later.
I tried compiling Woden with Sun jre 1.3.1. The were two types of error:
1) java.net.URI (as expected)
2) The constructor Locale(String lang) is undefined on the Locale class in
j2se 1.3.
The solution to this was to use Locale(localeLanguage, "") - i.e. empty
string for the country code, compatible with jre 1.42 too.
John Kaputin
Lawrence Mandel
<lmandel@ca.ibm.c
om> To
woden-dev@ws.apache.org
28/10/2005 04:18 cc
Subject
Please respond to Re: Java level supported by Woden
woden-dev
Thought I should add that Eclipse WTP will need support for 1.4 and newer
JREs. WTP does not require support for 1.3.
Lawrence
John Kaputin <KA...@uk.ibm.com>
To
10/27/2005 06:08 PM woden-dev@ws.apache.org
cc
Please respond to Subject
woden-dev Java level supported by
Woden
>Interesting point Dims. I don't think we've discussed the level of the JRE
that Woden will support. .
>
>Does anyone have a problem requiring a 1.4 JRE?
>
>Lawrence
+1 for java 1.4.
I have only tested so far with 1.4 and 1.5. As 1.5 is already available
and 1.4 is already 'old' (but still common), might we risk constraining
Woden in the future if we start off with back level support to 1.3.
John Kaputin
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: Java level supported by Woden
Posted by Lawrence Mandel <lm...@ca.ibm.com>.
Thought I should add that Eclipse WTP will need support for 1.4 and newer
JREs. WTP does not require support for 1.3.
Lawrence
John Kaputin <KA...@uk.ibm.com>
10/27/2005 06:08 PM
Please respond to
woden-dev
To
woden-dev@ws.apache.org
cc
Subject
Java level supported by Woden
>Interesting point Dims. I don't think we've discussed the level of the
JRE
that Woden will support. .
>
>Does anyone have a problem requiring a 1.4 JRE?
>
>Lawrence
+1 for java 1.4.
I have only tested so far with 1.4 and 1.5. As 1.5 is already available
and 1.4 is already 'old' (but still common), might we risk constraining
Woden in the future if we start off with back level support to 1.3.
John Kaputin
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Java level supported by Woden
Posted by John Kaputin <KA...@uk.ibm.com>.
>Interesting point Dims. I don't think we've discussed the level of the JRE
that Woden will support. .
>
>Does anyone have a problem requiring a 1.4 JRE?
>
>Lawrence
+1 for java 1.4.
I have only tested so far with 1.4 and 1.5. As 1.5 is already available
and 1.4 is already 'old' (but still common), might we risk constraining
Woden in the future if we start off with back level support to 1.3.
John Kaputin
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: How to represent xs:AnyURI in Component model?
Posted by Lawrence Mandel <lm...@ca.ibm.com>.
Interesting point Dims. I don't think we've discussed the level of the JRE
that Woden will support.
Does anyone have a problem requiring a 1.4 JRE?
Lawrence
Davanum Srinivas <da...@gmail.com>
10/27/2005 03:59 PM
Please respond to
woden-dev
To
woden-dev@ws.apache.org
cc
Subject
Re: How to represent xs:AnyURI in Component model?
Arthur,
So by default woden will not run on JDK1.3? java.net.URI is not
present in 1.3 AFAIK.
-- dims
On 10/27/05, Arthur Ryman <ar...@gmail.com> wrote:
> John,
>
> I believe java.net.URI is fairly lightweight so I suggest we use that.
> I know definitely that java.net.URL is very heavyweight and should be
> avoided. String in not appealing to me since we should ensure that the
> URI syntax is correct and be absolute (i.e. there is a scheme).
>
> On 10/27/05, John Kaputin <KA...@uk.ibm.com> wrote:
> > A question for Arthur mainly, but any comments welcome...
> >
> > Several properties of WSDL 2.0 Components are defined as type
xs:AnyURI and
> > then constrained further to absolute IRIs. Not sure whether to
represent
> > these in the Component model interfaces as java.net.URI or if String
will
> > suffice. We discussed this some time back. What are your thoughts?
> >
> > Examples cases are:
> > Binding {type}
> > InterfaceOperation {message exchange pattern}
> > InterfaceOperation {style} ... a set of xs:AnyURI, so URI[] or
String[]
> > Feature and Property {ref}
> > Endpoint {address}
> >
> >
> > John Kaputin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: How to represent xs:AnyURI in Component model?
Posted by Davanum Srinivas <da...@gmail.com>.
Arthur,
So by default woden will not run on JDK1.3? java.net.URI is not
present in 1.3 AFAIK.
-- dims
On 10/27/05, Arthur Ryman <ar...@gmail.com> wrote:
> John,
>
> I believe java.net.URI is fairly lightweight so I suggest we use that.
> I know definitely that java.net.URL is very heavyweight and should be
> avoided. String in not appealing to me since we should ensure that the
> URI syntax is correct and be absolute (i.e. there is a scheme).
>
> On 10/27/05, John Kaputin <KA...@uk.ibm.com> wrote:
> > A question for Arthur mainly, but any comments welcome...
> >
> > Several properties of WSDL 2.0 Components are defined as type xs:AnyURI and
> > then constrained further to absolute IRIs. Not sure whether to represent
> > these in the Component model interfaces as java.net.URI or if String will
> > suffice. We discussed this some time back. What are your thoughts?
> >
> > Examples cases are:
> > Binding {type}
> > InterfaceOperation {message exchange pattern}
> > InterfaceOperation {style} ... a set of xs:AnyURI, so URI[] or String[]
> > Feature and Property {ref}
> > Endpoint {address}
> >
> >
> > John Kaputin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: woden-dev-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
Re: How to represent xs:AnyURI in Component model?
Posted by Arthur Ryman <ar...@gmail.com>.
John,
I believe java.net.URI is fairly lightweight so I suggest we use that.
I know definitely that java.net.URL is very heavyweight and should be
avoided. String in not appealing to me since we should ensure that the
URI syntax is correct and be absolute (i.e. there is a scheme).
On 10/27/05, John Kaputin <KA...@uk.ibm.com> wrote:
> A question for Arthur mainly, but any comments welcome...
>
> Several properties of WSDL 2.0 Components are defined as type xs:AnyURI and
> then constrained further to absolute IRIs. Not sure whether to represent
> these in the Component model interfaces as java.net.URI or if String will
> suffice. We discussed this some time back. What are your thoughts?
>
> Examples cases are:
> Binding {type}
> InterfaceOperation {message exchange pattern}
> InterfaceOperation {style} ... a set of xs:AnyURI, so URI[] or String[]
> Feature and Property {ref}
> Endpoint {address}
>
>
> John Kaputin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: woden-dev-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org