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 "Peter A. Kirk" <pk...@alpha-solutions.dk> on 2007/10/25 20:46:25 UTC
[Axis2] Upload .aar
Hi
How do I upload a .aar file (webservice) to Axis2 under Tomcat?
I have a webservice which I want to deploy. I can manually copy the .aar
file to the Axis2 directory under Tomcat, but that only works if I have
access to the filesystem of the machine Tomcat is running on. Otherwise
I think there is some sort of upload mechanism which Tomcat or Axis2
supports, but I'm not sure...
Thanks,
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: SV: [Axis2] Upload .aar
Posted by Charitha Kankanamge <ch...@wso2.com>.
Peter,
Please have a look at the "Deploying the Service Programmatically"
section of http://wso2.org/library/2546
regards
Charitha
Peter A. Kirk wrote:
>Yes, sorry, I meant programmatically. I want to have a program which
>automatically uploads .aar files for me. Is that possible?
>
>Thanks,
>Peter
>
>-----Oprindelig meddelelse-----
>Fra: Deepal Jayasinghe [mailto:deepal@opensource.lk]
>Sendt: 25. oktober 2007 20:53
>Til: axis-user@ws.apache.org
>Emne: Re: [Axis2] Upload .aar
>
>Hi Peter ,
>Go to
>localhost:8080/axis2
>then you will see link call "Administrator" click on that, then it will
>ask for user name and password give "admin" as user name and "axis2" as
>the pass word. Once you login to it in the left hand side you will see a
>link call upload a service . Click on that and from that you can browse
>your service aar file and upload.
>
>Thanks
>Deepal
>
>
>
>>Hi
>>
>>How do I upload a .aar file (webservice) to Axis2 under Tomcat?
>>
>>I have a webservice which I want to deploy. I can manually copy the
>>
>>
>.aar
>
>
>>file to the Axis2 directory under Tomcat, but that only works if I
>>
>>
>have
>
>
>>access to the filesystem of the machine Tomcat is running on.
>>
>>
>Otherwise
>
>
>>I think there is some sort of upload mechanism which Tomcat or Axis2
>>supports, but I'm not sure...
>>
>>Thanks,
>>Peter
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
>
--
Charitha Kankanamge
WSO2 inc.
Flower Road, Colombo 07
+94 714268070
A bug in the hand is better than one as yet undetected
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: Axis stub response to JSP.
Posted by Ajay Joshi <aj...@modeldriven.com>.
Thanks for this info..
My stub do not publish the objects like getEmployees() since I am using
Axis Messaging Elements.
I am not sure if I need to use stub.getPullParser(QName) and read the
XML output.
________________________________
From: Raghu Upadhyayula [mailto:rupadhyayula@responsys.com]
Sent: Thursday, October 25, 2007 5:09 PM
To: axis-user@ws.apache.org
Subject: RE: Axis stub response to JSP.
I guess, you can directly invoke your webservice from JSP using the stub
(I haven't tried it though).
For Ex:
<%
String endPointURL =
http://localhost/webservices/services/MyService;
MyServiceStub stub = new MyServiceStub(endPointURL);
Employee[] employees = stub.getEmployees(); // getEmployees
is a method in your service
// Use this employees array to display the data in the jsp.
%>
________________________________
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: Thursday, October 26, 2000 1:33 PM
To: axis-user@ws.apache.org
Subject: Re: Axis stub response to JSP.
JSP -> Servlet(packages WSDLToJava StubClient) including encoding SOAP
Request into XML-> AxisServlet
AxisServlet-> XML response back to Servlet -> Servlet parses the XML
/populates beans/sends textResponse back
->JSP (AJAX Div Tag or create ResultsJsp)
Im sure there is a simpler solution..Anyone else?
M--
----- Original Message -----
From: Ajay Joshi <ma...@modeldriven.com>
To: axis-user@ws.apache.org
Sent: Thursday, October 25, 2007 3:32 PM
Subject: Axis stub response to JSP.
Hi,
How Axis stub (generated thru WSDL2Java) can return response to
JSP?
I can see response in XML format.. response can be print to
browser using servlet in text/html format.
.
But I am not sure how to convert response to Java object than be
displayed to JSP.
Regards
Ajay
RE: Axis stub response to JSP.
Posted by Raghu Upadhyayula <ru...@responsys.com>.
I guess, you can directly invoke your webservice from JSP using the stub
(I haven't tried it though).
For Ex:
<%
String endPointURL =
http://localhost/webservices/services/MyService;
MyServiceStub stub = new MyServiceStub(endPointURL);
Employee[] employees = stub.getEmployees(); // getEmployees
is a method in your service
// Use this employees array to display the data in the jsp.
%>
________________________________
From: Martin Gainty [mailto:mgainty@hotmail.com]
Sent: Thursday, October 26, 2000 1:33 PM
To: axis-user@ws.apache.org
Subject: Re: Axis stub response to JSP.
JSP -> Servlet(packages WSDLToJava StubClient) including encoding SOAP
Request into XML-> AxisServlet
AxisServlet-> XML response back to Servlet -> Servlet parses the XML
/populates beans/sends textResponse back
->JSP (AJAX Div Tag or create ResultsJsp)
Im sure there is a simpler solution..Anyone else?
M--
----- Original Message -----
From: Ajay Joshi <ma...@modeldriven.com>
To: axis-user@ws.apache.org
Sent: Thursday, October 25, 2007 3:32 PM
Subject: Axis stub response to JSP.
Hi,
How Axis stub (generated thru WSDL2Java) can return response to
JSP?
I can see response in XML format.. response can be print to
browser using servlet in text/html format.
.
But I am not sure how to convert response to Java object than be
displayed to JSP.
Regards
Ajay
Re: Axis stub response to JSP.
Posted by Giao <gq...@yahoo.com>.
Ajay ,
The HappyAxis.jsp contains a call to the version.aar
service. However, that's using Axiom OM to
send/receive the request. You use Axiom to manually
construct the xml request (as opposed to generating a
stub with wsdl2java). Then you have to manually
iterate through the response to get at the data you
need.
HTH,
Giao
--- Ajay Joshi <aj...@modeldriven.com> wrote:
> Hi,
>
>
>
> How Axis stub (generated thru WSDL2Java) can return
> response to JSP?
>
>
>
> I can see response in XML format.. response can be
> print to browser
> using servlet in text/html format.
>
> .
>
> But I am not sure how to convert response to Java
> object than be
> displayed to JSP.
>
> Regards
>
> Ajay
>
>
>
>
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Axis stub response to JSP.
Posted by Ajay Joshi <aj...@modeldriven.com>.
Hi,
How Axis stub (generated thru WSDL2Java) can return response to JSP?
I can see response in XML format.. response can be print to browser
using servlet in text/html format.
.
But I am not sure how to convert response to Java object than be
displayed to JSP.
Regards
Ajay
Re: [Axis2] Upload .aar
Posted by Anas Mughal <an...@gmail.com>.
Do you mean something like FTP or mput?
-
Anas
On 10/25/07, Peter A. Kirk <pk...@alpha-solutions.dk> wrote:
>
> Yes, sorry, I meant programmatically. I want to have a program which
> automatically uploads .aar files for me. Is that possible?
>
> Thanks,
> Peter
>
> -----Oprindelig meddelelse-----
> Fra: Deepal Jayasinghe [mailto:deepal@opensource.lk]
> Sendt: 25. oktober 2007 20:53
> Til: axis-user@ws.apache.org
> Emne: Re: [Axis2] Upload .aar
>
> Hi Peter ,
> Go to
> localhost:8080/axis2
> then you will see link call "Administrator" click on that, then it will
> ask for user name and password give "admin" as user name and "axis2" as
> the pass word. Once you login to it in the left hand side you will see a
> link call upload a service . Click on that and from that you can browse
> your service aar file and upload.
>
> Thanks
> Deepal
>
> > Hi
> >
> > How do I upload a .aar file (webservice) to Axis2 under Tomcat?
> >
> > I have a webservice which I want to deploy. I can manually copy the
> .aar
> > file to the Axis2 directory under Tomcat, but that only works if I
> have
> > access to the filesystem of the machine Tomcat is running on.
> Otherwise
> > I think there is some sort of upload mechanism which Tomcat or Axis2
> > supports, but I'm not sure...
> >
> > Thanks,
> > Peter
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Anas Mughal
SV: [Axis2] Upload .aar
Posted by "Peter A. Kirk" <pk...@alpha-solutions.dk>.
Yes, sorry, I meant programmatically. I want to have a program which
automatically uploads .aar files for me. Is that possible?
Thanks,
Peter
-----Oprindelig meddelelse-----
Fra: Deepal Jayasinghe [mailto:deepal@opensource.lk]
Sendt: 25. oktober 2007 20:53
Til: axis-user@ws.apache.org
Emne: Re: [Axis2] Upload .aar
Hi Peter ,
Go to
localhost:8080/axis2
then you will see link call "Administrator" click on that, then it will
ask for user name and password give "admin" as user name and "axis2" as
the pass word. Once you login to it in the left hand side you will see a
link call upload a service . Click on that and from that you can browse
your service aar file and upload.
Thanks
Deepal
> Hi
>
> How do I upload a .aar file (webservice) to Axis2 under Tomcat?
>
> I have a webservice which I want to deploy. I can manually copy the
.aar
> file to the Axis2 directory under Tomcat, but that only works if I
have
> access to the filesystem of the machine Tomcat is running on.
Otherwise
> I think there is some sort of upload mechanism which Tomcat or Axis2
> supports, but I'm not sure...
>
> Thanks,
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Upload .aar
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi Peter ,
Go to
localhost:8080/axis2
then you will see link call "Administrator" click on that, then it will
ask for user name and password give "admin" as user name and "axis2" as
the pass word. Once you login to it in the left hand side you will see a
link call upload a service . Click on that and from that you can browse
your service aar file and upload.
Thanks
Deepal
> Hi
>
> How do I upload a .aar file (webservice) to Axis2 under Tomcat?
>
> I have a webservice which I want to deploy. I can manually copy the .aar
> file to the Axis2 directory under Tomcat, but that only works if I have
> access to the filesystem of the machine Tomcat is running on. Otherwise
> I think there is some sort of upload mechanism which Tomcat or Axis2
> supports, but I'm not sure...
>
> Thanks,
> Peter
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org