You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by al...@ebi.ac.uk on 2006/01/13 18:22:34 UTC
[Axis2-0.94]
Hi,
I just downloaded Axis2 0.94, and tried to follow the userguide, but I
have got stuck, I think there are some issues that have been modified in
the latest release,
1) the link to the IDEA plugin in the Documentation is broken, correct
one is
http://ws.apache.org/axis2/0_94/tools/idea/Idae_plug-in_userguide.html
2) using the WSDL2Java tool with he following wsdl
http://www.ebi.ac.uk/~alabarga/webservices/wsdl/WUBlast.wsdl
does not generate any schema directory, and a services.xml is under
resources directory,
3) after modifying the corresponding code, and creating the aar file, I
deployed the service.
4) when trying to generate a client using an Axis 1.2 WSDL2Java from the
automatically generated WSDL
http://localhost:8080/axis2/services/wublast2?wsdl
which has renamed some of the elements from the original WSDL
I got an java.io.Exception, Erro: missing type of ref attribute for node
'unknown'. WSDL2Java works fine if I use the original WSDL
5) but trying to access it through an aplication using the generated stub
with Axis 1.2 WSDL2Java
I got this error
[java] Operation Not found
EPR is http://localhost:8080/axis2/services/wublast2 and WSA Action =
it should be trying to access the blast operation
but I suppose is becouse of the modifications in the namespaces between
both wsdl files
trying to use this in the browser
http://localhost:8080/axis2/services/wublast2 I got an Oh! this
place seems to be empty!!! message, maybe it is a related problem
so, after this, some questions,
a) can I call Axis2 services using previous Axis version clients or
WSDL2Java?
b) where should I place jars needed by my service, in a lib directory in
the aar file?
c) is there any chance of this service to work, or should I be using
Axis2 clients instead?
thank you very much
Alberto
Re: [Axis2-0.94]
Posted by Srinath Perera <he...@gmail.com>.
> 4) when trying to generate a client using an Axis 1.2 WSDL2Java from the
> automatically generated WSDL
>
> http://localhost:8080/axis2/services/wublast2?wsdl
>
> which has renamed some of the elements from the original WSDL
> I got an java.io.Exception, Erro: missing type of ref attribute for node
> 'unknown'. WSDL2Java works fine if I use the original WSDL
May be this is a bug .. if nobody answers back file a bug report at
jira (https://issues.apache.org/jira/browse/AXIS2). I think our wsdl
generation need to be fixed
>
> 5) but trying to access it through an aplication using the generated stub
> with Axis 1.2 WSDL2Java
>
> I got this error
>
> [java] Operation Not found
> EPR is http://localhost:8080/axis2/services/wublast2 and WSA Action =
>
> it should be trying to access the blast operation
>
> but I suppose is becouse of the modifications in the namespaces between
> both wsdl files
>
> trying to use this in the browser
> http://localhost:8080/axis2/services/wublast2 I got an Oh! this
> place seems to be empty!!! message, maybe it is a related problem
>
> so, after this, some questions,
>
> a) can I call Axis2 services using previous Axis version clients or
> WSDL2Java?
Yes .. that is idea of using Web Services ..
I think problem is Axis2 do not have information to find the
operation. You should do ONE of the follwoing to make sure Axis2
server can find the operation
1) change the EPR to
http://localhost:8080/axis2/services/wublast2/<operation-name>
2) put SOAP action as <operation-name>
3) Use WS-Addressing with wsa:action
> b) where should I place jars needed by my service, in a lib directory in
> the aar file?
Yes AFAIK it works
> c) is there any chance of this service to work, or should I be using
> Axis2 clients instead?
You can test with Axis2 client .. but as I say in #a .. this should
work .. if we can not it is a bug in Axis2 .. we should fix it.
Thanks
Srinath
Re: Axis2-0.94 deployment and client usage
Posted by Davanum Srinivas <da...@gmail.com>.
Deepal,
Please take a quick look at the bug report i just created:
https://issues.apache.org/jira/browse/AXIS2-397
thanks,
dims
On 1/17/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
> its implemented . So if the service impl class is implement in Java then it
> is not require to have any operation tag in services.xml unless user want to
> override something.
>
> But I think we need to improve that , meaning user should be able to control
> the operation that he need to expose , currently user dose not have any
> control over that and all the public methods in service impl class will be
> exposed.
>
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
> ----- Original Message -----
> From: "Davanum Srinivas" <da...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Wednesday, January 18, 2006 9:51 AM
> Subject: Re: Axis2-0.94 deployment and client usage
>
>
> Deepal,
>
> Is the "Service Operations" behavior already implemented in SVN? do we
> need to track it via a JIRA issue?
>
> thanks,
> dims
>
> On 1/17/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
> > Hi all;
> >
> > sorry for late reply :(
> >
> > Service name :
> > well , if the services.xml (irrespective of archive file or directory)
> > contains <service> </service> as its root element in that case the name of
> > the service will be the name of the aar (or name of the directory) , if
> > there is name attribute then that will be ignored.
> > if the services.xml contains
> > <serviceGroup>
> > <service name="foo">
> > </service>
> > <service name="baa">
> > </service>
> > </serviceGroup>
> > in this case name of the service group will be the name of the archive
> > file
> > , and name of the services will be the name attribute of each service.
> >
> > Service Operations
> > There was a mail thread in the mailing list about that topic and we came
> > to
> > conclusion that , we are going to display all the public method in the
> > service impl class. And using services.xml user can override or add
> > parameters to those operation. IF there is a wsdl in META-INF then all the
> > operations in the portType will be published and user can override them
> > using services.xml.
> >
> >
> > Thanks,
> > Deepal
> > ................................................................
> > ~Future is Open~
> >
> > ----- Original Message -----
> > From: "Davanum Srinivas" <da...@gmail.com>
> > To: <ax...@ws.apache.org>
> > Sent: Saturday, January 14, 2006 8:53 PM
> > Subject: Re: Axis2-0.94 deployment and client usage
> >
> >
> > Ajith,
> >
> > i think IF the name is NOT present then we should use the directory
> > name...what do you think?
> >
> > Actually i think it is the %USERPROFILE%\.axis2. i could be wrong.
> >
> > -- dims
> >
> > On 1/14/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> > > Hi steve,
> > > Here's an attempt to anwer your issues :)
> > >
> > >
> > > > 1) service name
> > > > - if the .aar file has not the same name as the attribute 'name' of
> > > > the
> > > > 'service' element in the 'services.xml', the name of the .aar
> > > > file
> > > will
> > > > be the service name the service is deployed with, e.g.:
> > >
> > > For the single service case the serviceName attribute is ignored
> > >>>>>>>
> > >>>>>>>>>>>>>
> > >
> > > > 2) service operations
> > > >
> > > > independet of the operations i "mount" in the ' services.xml', ALL
> > > opeations
> > > > of the service class will be shown on the service list
> > >
> > > Hmm.. This could be a bug :(. the default behavior is to expose all the
> > > public methods but if the user specifies any then only those methods
> > > need
> > > to
> > > be exposed. We'll check it out further.
> > >
> > > > another point ..
> > > >
> > > > i want to use the 'EchoBlockingDualClient' from the userguide, but i
> > > > get
> > > an
> > > > exception: 'module.xml not found for the module : addressing;'
> > > >
> > > > on the axis2 homepage users are advised to remove the .axis2 dir and
> > > create a
> > > > new one. my question:
> > > > where do i have to place this dir using windows? i tried several
> > > > places
> > > (root of
> > > > my hdd, dir the client runs in, ..) and it didn't worked out.
> > > > what about the 'module.xml'?
> > >
> > > The .axis directory is created in the users home. it's usually
> > > something
> > > like C:\Documents and Settings\${user} but if you've set a custom home
> > > check
> > > the values of the HOMEPATH and HOMEDRIVE environmental variables just to
> > > make sure
> > >
> > > > thanks in advance,
> > > > steven
> > > >
> > >
> > >
> > >
> > > --
> > > Ajith Ranabahu
> >
> >
> > --
> > Davanum Srinivas : http://wso2.com/blogs/
> >
> >
> >
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: Axis2-0.94 deployment and client usage
Posted by Deepal Jayasinghe <de...@opensource.lk>.
its implemented . So if the service impl class is implement in Java then it
is not require to have any operation tag in services.xml unless user want to
override something.
But I think we need to improve that , meaning user should be able to control
the operation that he need to expose , currently user dose not have any
control over that and all the public methods in service impl class will be
exposed.
Thanks,
Deepal
................................................................
~Future is Open~
----- Original Message -----
From: "Davanum Srinivas" <da...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Wednesday, January 18, 2006 9:51 AM
Subject: Re: Axis2-0.94 deployment and client usage
Deepal,
Is the "Service Operations" behavior already implemented in SVN? do we
need to track it via a JIRA issue?
thanks,
dims
On 1/17/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
> Hi all;
>
> sorry for late reply :(
>
> Service name :
> well , if the services.xml (irrespective of archive file or directory)
> contains <service> </service> as its root element in that case the name of
> the service will be the name of the aar (or name of the directory) , if
> there is name attribute then that will be ignored.
> if the services.xml contains
> <serviceGroup>
> <service name="foo">
> </service>
> <service name="baa">
> </service>
> </serviceGroup>
> in this case name of the service group will be the name of the archive
> file
> , and name of the services will be the name attribute of each service.
>
> Service Operations
> There was a mail thread in the mailing list about that topic and we came
> to
> conclusion that , we are going to display all the public method in the
> service impl class. And using services.xml user can override or add
> parameters to those operation. IF there is a wsdl in META-INF then all the
> operations in the portType will be published and user can override them
> using services.xml.
>
>
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
> ----- Original Message -----
> From: "Davanum Srinivas" <da...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Saturday, January 14, 2006 8:53 PM
> Subject: Re: Axis2-0.94 deployment and client usage
>
>
> Ajith,
>
> i think IF the name is NOT present then we should use the directory
> name...what do you think?
>
> Actually i think it is the %USERPROFILE%\.axis2. i could be wrong.
>
> -- dims
>
> On 1/14/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> > Hi steve,
> > Here's an attempt to anwer your issues :)
> >
> >
> > > 1) service name
> > > - if the .aar file has not the same name as the attribute 'name' of
> > > the
> > > 'service' element in the 'services.xml', the name of the .aar
> > > file
> > will
> > > be the service name the service is deployed with, e.g.:
> >
> > For the single service case the serviceName attribute is ignored
> >>>>>>>
> >>>>>>>>>>>>>
> >
> > > 2) service operations
> > >
> > > independet of the operations i "mount" in the ' services.xml', ALL
> > opeations
> > > of the service class will be shown on the service list
> >
> > Hmm.. This could be a bug :(. the default behavior is to expose all the
> > public methods but if the user specifies any then only those methods
> > need
> > to
> > be exposed. We'll check it out further.
> >
> > > another point ..
> > >
> > > i want to use the 'EchoBlockingDualClient' from the userguide, but i
> > > get
> > an
> > > exception: 'module.xml not found for the module : addressing;'
> > >
> > > on the axis2 homepage users are advised to remove the .axis2 dir and
> > create a
> > > new one. my question:
> > > where do i have to place this dir using windows? i tried several
> > > places
> > (root of
> > > my hdd, dir the client runs in, ..) and it didn't worked out.
> > > what about the 'module.xml'?
> >
> > The .axis directory is created in the users home. it's usually
> > something
> > like C:\Documents and Settings\${user} but if you've set a custom home
> > check
> > the values of the HOMEPATH and HOMEDRIVE environmental variables just to
> > make sure
> >
> > > thanks in advance,
> > > steven
> > >
> >
> >
> >
> > --
> > Ajith Ranabahu
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: Axis2-0.94 deployment and client usage
Posted by Davanum Srinivas <da...@gmail.com>.
Deepal,
Is the "Service Operations" behavior already implemented in SVN? do we
need to track it via a JIRA issue?
thanks,
dims
On 1/17/06, Deepal Jayasinghe <de...@opensource.lk> wrote:
> Hi all;
>
> sorry for late reply :(
>
> Service name :
> well , if the services.xml (irrespective of archive file or directory)
> contains <service> </service> as its root element in that case the name of
> the service will be the name of the aar (or name of the directory) , if
> there is name attribute then that will be ignored.
> if the services.xml contains
> <serviceGroup>
> <service name="foo">
> </service>
> <service name="baa">
> </service>
> </serviceGroup>
> in this case name of the service group will be the name of the archive file
> , and name of the services will be the name attribute of each service.
>
> Service Operations
> There was a mail thread in the mailing list about that topic and we came to
> conclusion that , we are going to display all the public method in the
> service impl class. And using services.xml user can override or add
> parameters to those operation. IF there is a wsdl in META-INF then all the
> operations in the portType will be published and user can override them
> using services.xml.
>
>
> Thanks,
> Deepal
> ................................................................
> ~Future is Open~
>
> ----- Original Message -----
> From: "Davanum Srinivas" <da...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Saturday, January 14, 2006 8:53 PM
> Subject: Re: Axis2-0.94 deployment and client usage
>
>
> Ajith,
>
> i think IF the name is NOT present then we should use the directory
> name...what do you think?
>
> Actually i think it is the %USERPROFILE%\.axis2. i could be wrong.
>
> -- dims
>
> On 1/14/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> > Hi steve,
> > Here's an attempt to anwer your issues :)
> >
> >
> > > 1) service name
> > > - if the .aar file has not the same name as the attribute 'name' of
> > > the
> > > 'service' element in the 'services.xml', the name of the .aar file
> > will
> > > be the service name the service is deployed with, e.g.:
> >
> > For the single service case the serviceName attribute is ignored
> >>>>>>>
> >>>>>>>>>>>>>
> >
> > > 2) service operations
> > >
> > > independet of the operations i "mount" in the ' services.xml', ALL
> > opeations
> > > of the service class will be shown on the service list
> >
> > Hmm.. This could be a bug :(. the default behavior is to expose all the
> > public methods but if the user specifies any then only those methods need
> > to
> > be exposed. We'll check it out further.
> >
> > > another point ..
> > >
> > > i want to use the 'EchoBlockingDualClient' from the userguide, but i get
> > an
> > > exception: 'module.xml not found for the module : addressing;'
> > >
> > > on the axis2 homepage users are advised to remove the .axis2 dir and
> > create a
> > > new one. my question:
> > > where do i have to place this dir using windows? i tried several places
> > (root of
> > > my hdd, dir the client runs in, ..) and it didn't worked out.
> > > what about the 'module.xml'?
> >
> > The .axis directory is created in the users home. it's usually something
> > like C:\Documents and Settings\${user} but if you've set a custom home
> > check
> > the values of the HOMEPATH and HOMEDRIVE environmental variables just to
> > make sure
> >
> > > thanks in advance,
> > > steven
> > >
> >
> >
> >
> > --
> > Ajith Ranabahu
>
>
> --
> Davanum Srinivas : http://wso2.com/blogs/
>
>
>
--
Davanum Srinivas : http://wso2.com/blogs/
Re: Axis2-0.94 deployment and client usage
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi all;
sorry for late reply :(
Service name :
well , if the services.xml (irrespective of archive file or directory)
contains <service> </service> as its root element in that case the name of
the service will be the name of the aar (or name of the directory) , if
there is name attribute then that will be ignored.
if the services.xml contains
<serviceGroup>
<service name="foo">
</service>
<service name="baa">
</service>
</serviceGroup>
in this case name of the service group will be the name of the archive file
, and name of the services will be the name attribute of each service.
Service Operations
There was a mail thread in the mailing list about that topic and we came to
conclusion that , we are going to display all the public method in the
service impl class. And using services.xml user can override or add
parameters to those operation. IF there is a wsdl in META-INF then all the
operations in the portType will be published and user can override them
using services.xml.
Thanks,
Deepal
................................................................
~Future is Open~
----- Original Message -----
From: "Davanum Srinivas" <da...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Saturday, January 14, 2006 8:53 PM
Subject: Re: Axis2-0.94 deployment and client usage
Ajith,
i think IF the name is NOT present then we should use the directory
name...what do you think?
Actually i think it is the %USERPROFILE%\.axis2. i could be wrong.
-- dims
On 1/14/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> Hi steve,
> Here's an attempt to anwer your issues :)
>
>
> > 1) service name
> > - if the .aar file has not the same name as the attribute 'name' of
> > the
> > 'service' element in the 'services.xml', the name of the .aar file
> will
> > be the service name the service is deployed with, e.g.:
>
> For the single service case the serviceName attribute is ignored
>>>>>>>
>>>>>>>>>>>>>
>
> > 2) service operations
> >
> > independet of the operations i "mount" in the ' services.xml', ALL
> opeations
> > of the service class will be shown on the service list
>
> Hmm.. This could be a bug :(. the default behavior is to expose all the
> public methods but if the user specifies any then only those methods need
> to
> be exposed. We'll check it out further.
>
> > another point ..
> >
> > i want to use the 'EchoBlockingDualClient' from the userguide, but i get
> an
> > exception: 'module.xml not found for the module : addressing;'
> >
> > on the axis2 homepage users are advised to remove the .axis2 dir and
> create a
> > new one. my question:
> > where do i have to place this dir using windows? i tried several places
> (root of
> > my hdd, dir the client runs in, ..) and it didn't worked out.
> > what about the 'module.xml'?
>
> The .axis directory is created in the users home. it's usually something
> like C:\Documents and Settings\${user} but if you've set a custom home
> check
> the values of the HOMEPATH and HOMEDRIVE environmental variables just to
> make sure
>
> > thanks in advance,
> > steven
> >
>
>
>
> --
> Ajith Ranabahu
--
Davanum Srinivas : http://wso2.com/blogs/
Re: Axis2-0.94 deployment and client usage
Posted by Davanum Srinivas <da...@gmail.com>.
Ajith,
i think IF the name is NOT present then we should use the directory
name...what do you think?
Actually i think it is the %USERPROFILE%\.axis2. i could be wrong.
-- dims
On 1/14/06, Ajith Ranabahu <aj...@gmail.com> wrote:
> Hi steve,
> Here's an attempt to anwer your issues :)
>
>
> > 1) service name
> > - if the .aar file has not the same name as the attribute 'name' of the
> > 'service' element in the 'services.xml', the name of the .aar file
> will
> > be the service name the service is deployed with, e.g.:
>
> For the single service case the serviceName attribute is ignored
>
> > 2) service operations
> >
> > independet of the operations i "mount" in the ' services.xml', ALL
> opeations
> > of the service class will be shown on the service list
>
> Hmm.. This could be a bug :(. the default behavior is to expose all the
> public methods but if the user specifies any then only those methods need to
> be exposed. We'll check it out further.
>
> > another point ..
> >
> > i want to use the 'EchoBlockingDualClient' from the userguide, but i get
> an
> > exception: 'module.xml not found for the module : addressing;'
> >
> > on the axis2 homepage users are advised to remove the .axis2 dir and
> create a
> > new one. my question:
> > where do i have to place this dir using windows? i tried several places
> (root of
> > my hdd, dir the client runs in, ..) and it didn't worked out.
> > what about the 'module.xml'?
>
> The .axis directory is created in the users home. it's usually something
> like C:\Documents and Settings\${user} but if you've set a custom home check
> the values of the HOMEPATH and HOMEDRIVE environmental variables just to
> make sure
>
> > thanks in advance,
> > steven
> >
>
>
>
> --
> Ajith Ranabahu
--
Davanum Srinivas : http://wso2.com/blogs/
Re: Axis2-0.94 deployment and client usage
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi steve,
Here's an attempt to anwer your issues :)
1) service name
> - if the .aar file has not the same name as the attribute 'name' of the
> 'service' element in the 'services.xml', the name of the .aar file
> will
> be the service name the service is deployed with, e.g.:
For the single service case the serviceName attribute is ignored
2) service operations
>
> independet of the operations i "mount" in the 'services.xml', ALL
> opeations
> of the service class will be shown on the service list
Hmm.. This could be a bug :(. the default behavior is to expose all the
public methods but if the user specifies any then only those methods need to
be exposed. We'll check it out further.
another point ..
>
> i want to use the 'EchoBlockingDualClient' from the userguide, but i get
> an
> exception: 'module.xml not found for the module : addressing;'
>
> on the axis2 homepage users are advised to remove the .axis2 dir and
> create a
> new one. my question:
> where do i have to place this dir using windows? i tried several places
> (root of
> my hdd, dir the client runs in, ..) and it didn't worked out.
> what about the 'module.xml'?
The .axis directory is created in the users home. it's usually something
like C:\Documents and Settings\${user} but if you've set a custom home check
the values of the HOMEPATH and HOMEDRIVE environmental variables just to
make sure
thanks in advance,
> steven
>
--
Ajith Ranabahu
Axis2-0.94 deployment and client usage
Posted by steven reinisch <st...@medien.uni-weimar.de>.
hi,
first some things i noticed about the deployment using axis2-0.94:
1) service name
- if the .aar file has not the same name as the attribute 'name' of the
'service' element in the 'services.xml', the name of the .aar file will
be the service name the service is deployed with, e.g.:
<service name="MyService">
...
</service>
headache.aar
=> service url: 'http://localhost/axis2/services/headache'
instead of 'http://localhost/axis2/services/MyService' as expected
2) service operations
independet of the operations i "mount" in the 'services.xml', ALL opeations
of the service class will be shown on the service list
another point ..
i want to use the 'EchoBlockingDualClient' from the userguide, but i get an
exception: 'module.xml not found for the module : addressing;'
on the axis2 homepage users are advised to remove the .axis2 dir and create a
new one. my question:
where do i have to place this dir using windows? i tried several places (root of
my hdd, dir the client runs in, ..) and it didn't worked out.
what about the 'module.xml'?
thanks in advance,
steven