axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe" <dee...@opensource.lk>
Subject Re: [axis2]Questions on service name
Date Tue, 29 Nov 2005 03:57:53 GMT
Hi Dong;

I will tell you what actually happen inside

  1. If the service archive file contains a services.xml with its root tag 
being  <serviceGroup></serviceGroup> , then the name    of the service group 
will be the name of the archive file name (if the archive name foo.aar then 
the group name will be foo).

  2. If the services.xml is for a service group , then all the children 
service elements must have a  name , simply  in <service name="someName"> 
tag  the name attribute can not be null , as well as that should be unique 
across the system

  3. If the service archive file contains a service.xml with root element 
being <service> </service> then the name of the service will be the name of 
the archive file , even if there is a name attribute that will be ignored.

 4. IF you have a WSDL file for a service then that wsdl file should contain 
a <service> element and then name of the service element should equal to the 
name of the service that refers , as an example if you have a <service 
name="fooService"> in services.xml then there should be service element in 
wsdl file as follow
  <wsdl:service name="fooService">
      <wsdl:port binding="impl:fooServiceBinding" name="fooService">
       <wsdlsoap:address 
location="http://localhost:8080/axis/services/fooService" />
  </wsdl:port>
</wsdl:service>

5. It should note that the name of the wsdl file really does not matter if 
you have the right service element in the wsdl file , if your archive file 
is for a service group you can put any number of wsdl files in META-INF 
directory with right references.



Thanks,
 Deepal
................................................................
~Future is Open~

----- Original Message ----- 
From: "Dong Liu" <edongliu@gmail.com>
To: <axis-dev@ws.apache.org>
Sent: Tuesday, November 29, 2005 6:17 AM
Subject: [axis2]Questions on service name


Hi, developers,

On axis 2, three files are related to a service: the services.xml, the
.wsdl file, and the deployment package .aar file. I found there would
be multiple services appearing on the listServices page if the name of
the .aar package, the service name in wsdl file and that in
services.xml are different. And there would be conflicting endpoint
references for the same service. Is naming the service names in the
three places the only way to avoid such conflict?

Cheers,

Don



Mime
View raw message