I'm still quite puzzled. How can URI's be relative when they can be arbitrary strings?!? Relativity implies rules to those strings and I didn't think there were any.
Though I'm puzzled, I won't bother y'all with it any more. Russell Butek [EMAIL PROTECTED] "Theodore W. Leung" <[EMAIL PROTECTED]> on 02/11/2002 01:26:44 PM Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc: Subject: RE: [PATCH] fix admin service to use absolute namespace URI The issue is that use of relative URI's as namespace declarations was deprecated by the W3C XML Plenary -- see http://lists.w3.org/Archives/Public/xml-uri/2000Sep/0083.html This causes a problem when you try to use XML Signature to sign a SOAP message, because the relative URI's cannot be canonicalized. I agree that we want to have simple service names at the end of urls/ Making the dispatching code smarter is fine by me. Ted On Mon, 2002-02-11 at 10:37, Glen Daniels wrote: > > This is going to be really annoying, in that we'll have to type URLs like > > http://localhost:port/axis/services/urn:AdminService > > I'm -1 to this. What's the issue here, that namespaces should be urn:'s? I think a *much* better solution is to allow services to register namespaces which should be dispatched to them in the WSDD, so you'd have: > > <service name="AdminService" provider="java:MSG"> > <namespace>urn:AdminService</namespace> > ... > </service> > > Then we make the matching/dispatch code a little smarter. > > Opinions? > > --Glen > > > -----Original Message----- > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]] > > Sent: Monday, February 11, 2002 1:15 PM > > To: [EMAIL PROTECTED] > > Subject: Re: [PATCH] fix admin service to use absolute namespace URI > > > > > > Team, Ted, > > If no-one objects today, I will check it in first thing tomorrow. > > > > Thanks, > > dims > > > > --- "Theodore W. Leung" <[EMAIL PROTECTED]> wrote: > > > This patch requires a little more scrutiny: Have I caught all the > > > places that need changing? It passes all the tests on my machine. > > > > > > Ted > > > > > > > > > > Index: org/apache/axis/client/AdminClient.java > > > =================================================================== > > > RCS file: > > /home/cvspublic/xml-axis/java/src/org/apache/axis/client/Admin > > Client.java,v > > > retrieving revision 1.51 > > > diff -u -r1.51 AdminClient.java > > > --- org/apache/axis/client/AdminClient.java 5 Feb 2002 > > 16:22:39 -0000 1.51 > > > +++ org/apache/axis/client/AdminClient.java 8 Feb 2002 > > 06:29:12 -0000 > > > @@ -177,7 +177,7 @@ > > > > > > public String list() throws Exception { > > > log( JavaUtils.getMessage("doList00") ); > > > - String str = "<m:list > > xmlns:m=\"AdminService\"/>" ; > > > + String str = "<m:list > > xmlns:m=\"urn:AdminService\"/>" ; > > > ByteArrayInputStream input = new > > ByteArrayInputStream(str.getBytes()); > > > return process(input); > > > } > > > @@ -189,14 +189,14 @@ > > > > > > public String quit() throws Exception { > > > log(JavaUtils.getMessage("doQuit00")); > > > - String str = "<m:quit > > xmlns:m=\"AdminService\"/>"; > > > + String str = "<m:quit > > xmlns:m=\"urn:AdminService\"/>"; > > > ByteArrayInputStream input = new > > ByteArrayInputStream(str.getBytes()); > > > return process(input); > > > } > > > > > > public String undeployHandler(String handlerName) > > throws Exception { > > > log(JavaUtils.getMessage("doQuit00")); > > > - String str = "<m:undeploy > > xmlns:m=\"AdminService\">" + > > > + String str = "<m:undeploy > > xmlns:m=\"urn:AdminService\">" + > > > "<handler name=\"" + > > handlerName + "\"/>"+ > > > "</m:undeploy>" ; > > > ByteArrayInputStream input = new > > ByteArrayInputStream(str.getBytes()); > > > @@ -205,7 +205,7 @@ > > > > > > public String undeployService(String serviceName) > > throws Exception { > > > log(JavaUtils.getMessage("doQuit00")); > > > - String str = "<m:undeploy > > xmlns:m=\"AdminService\">" + > > > + String str = "<m:undeploy > > xmlns:m=\"urn:AdminService\">" + > > > "<service name=\"" + > > serviceName + "\"/>"+ > > > "</m:undeploy>" ; > > > ByteArrayInputStream input = new > > ByteArrayInputStream(str.getBytes()); > > > @@ -274,7 +274,7 @@ > > > log(JavaUtils.getMessage("needPwd00")); > > > return null; > > > } > > > - String str = "<m:passwd xmlns:m=\"AdminService\">"; > > > + String str = "<m:passwd > > xmlns:m=\"urn:AdminService\">"; > > > str += args[i + 1]; > > > str += "</m:passwd>"; > > > input = new ByteArrayInputStream(str.getBytes()); > > > @@ -342,7 +342,7 @@ > > > > > > if ( opts != null ) processOpts( opts ); > > > > > > - call.setProperty( > > HTTPConstants.MC_HTTP_SOAPACTION, "AdminService"); > > > + call.setProperty( > > HTTPConstants.MC_HTTP_SOAPACTION, "urn:AdminService"); > > > > > > Vector result = null ; > > > Object[] params = new Object[] { new > > SOAPBodyElement(input) }; > > > Index: org/apache/axis/server/server-config.wsdd > > > =================================================================== > > > RCS file: > > /home/cvspublic/xml-axis/java/src/org/apache/axis/server/serve > > r-config.wsdd,v > > > retrieving revision 1.10 > > > diff -u -r1.10 server-config.wsdd > > > --- org/apache/axis/server/server-config.wsdd 1 Feb > > 2002 05:21:20 -0000 1.10 > > > +++ org/apache/axis/server/server-config.wsdd 8 Feb > > 2002 06:29:12 -0000 > > > @@ -16,7 +16,7 @@ > > > <handler > > type="java:org.apache.axis.transport.local.LocalResponder" > > name="LocalResponder"/> > > > <handler > > type="java:org.apache.axis.handlers.SimpleAuthenticationHandler" > > > name="Authenticate"/> > > > > > > - <service name="AdminService" provider="java:MSG"> > > > + <service name="urn:AdminService" provider="java:MSG"> > > > <parameter name="allowedMethods" value="AdminService"/> > > > <parameter name="enableRemoteAdmin" value="false"/> > > > <parameter name="className" value="org.apache.axis.utils.Admin"/> > > > > > > > > > ===== > > Davanum Srinivas - http://jguru.com/dims/ > > > > __________________________________________________ > > Do You Yahoo!? > > Send FREE Valentine eCards with Yahoo! Greetings! > > http://greetings.yahoo.com > >