axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Russell Butek" <bu...@us.ibm.com>
Subject RE: [PATCH] fix admin service to use absolute namespace URI
Date Mon, 11 Feb 2002 18:54:11 GMT
I agree with Glen.  I still don't agree with the original statement that
this is a problem, but I can go along with Glen's suggestion.

Russell Butek
butek@us.ibm.com


Glen Daniels <gdaniels@macromedia.com> on 02/11/2002 12:37:33 PM

Please respond to axis-dev@xml.apache.org

To:   "'axis-dev@xml.apache.org'" <axis-dev@xml.apache.org>
cc:
Subject:  RE: [PATCH] fix admin service to use absolute namespace URI




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:dims@yahoo.com]
> Sent: Monday, February 11, 2002 1:15 PM
> To: axis-dev@xml.apache.org
> 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" <twleung@sauria.com> 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
>



Mime
View raw message