|
|
Subject: Re: How to update Axis web service? - msg#00366
List: axis-user-ws.apache.org
Hi,
Thanks for the reply.
I actually found that same info when I was searching, but what I'm asking is,
if hotupdate is false, then how do you update an Axis web service?
I tried uploading the updated AAR, which didn't do anything, and I tried
manually copying the AAR file into the service directory, which also didn't do
anything. In both cases, I unzipped the AAR file and decompiled the .class and
verified that the .class had my changes, but I can't figure out how to tell
Axis (or Tomcat) that there's a new AAR.
Thanks again,
Jim
---- charitha kankanamge <charitha@xxxxxxxx> wrote:
> Excerpt from http://www.developer.com/services/article.php/3557741
> <quote>
> Hotupdate is an important feature and is required in a testing
> environment. However, it is not advisable to use hot update in a
> real-time system because a hot update could result in the system leading
> to an unknown state. Additionally, there is the possibility of losing
> the existing service data of that service. To prevent this, Axis2 came
> with the hot update parameter set to FALSE by default.
> </quote>
>
> HTH,
> Charitha
>
> http://charithaka.blogspot.com
> ohaya@xxxxxxx wrote:
>
> >Hi,
> >
> >I was able to get the web service updated by changing the "hotupdate" to
> >"true" in axis2.xml, but I still am wondering, if the "hotupdate" parameter
> >is left at "false", what is the procedure to update an existing web service?
> >
> >Thanks,
> >Jim
> >
> >---- ohaya@xxxxxxx wrote:
> >
> >
> >>Hi,
> >>
> >>I just got Axis2 installed, with Tomcat.
> >>
> >>To get started, I built the quickstart sample by running ant, and then I
> >>used the Axis admin webapp to upload the StockQuoteService.aar, and that
> >>worked, i.e., I can access the web service operations.
> >>
> >>I wanted to modify the StockQuoteService update operation so that it would
> >>return something, so I modified the StockQuoteService.java, and then ran
> >>ant again.
> >>
> >>I didn't see something like "delete a service" in the Axis admin, so I
> >>tried uploading the update .aar file, but even after I bounced Tomcat, it
> >>looks like it's still using the original StockQuoteService. Also, the WSDL
> >>that I get when I got to the ?wsdl URL is still not showing any response
> >>for the update operation.
> >>
> >>So, I am wondering, how do I update a web service that has been uploaded?
> >>
> >>Thanks,
> >>Jim
> >>
> >>
> >
> >
> >
> >
> >
>
>
Was this page helpful?
Thread at a glance:
Previous Message by Date:
click to view message preview
Re: How to update Axis web service?
Excerpt from http://www.developer.com/services/article.php/3557741
<quote>
Hotupdate is an important feature and is required in a testing
environment. However, it is not advisable to use hot update in a
real-time system because a hot update could result in the system leading
to an unknown state. Additionally, there is the possibility of losing
the existing service data of that service. To prevent this, Axis2 came
with the hot update parameter set to FALSE by default.
</quote>
HTH,
Charitha
http://charithaka.blogspot.com
ohaya@xxxxxxx wrote:
Hi,
I was able to get the web service updated by changing the "hotupdate" to "true" in axis2.xml, but I
still am wondering, if the "hotupdate" parameter is left at "false", what is the procedure to
update an existing web service?
Thanks,
Jim
---- ohaya@xxxxxxx wrote:
Hi,
I just got Axis2 installed, with Tomcat.
To get started, I built the quickstart sample by running ant, and then I used
the Axis admin webapp to upload the StockQuoteService.aar, and that worked,
i.e., I can access the web service operations.
I wanted to modify the StockQuoteService update operation so that it would
return something, so I modified the StockQuoteService.java, and then ran ant
again.
I didn't see something like "delete a service" in the Axis admin, so I tried
uploading the update .aar file, but even after I bounced Tomcat, it looks like it's still
using the original StockQuoteService. Also, the WSDL that I get when I got to the ?wsdl
URL is still not showing any response for the update operation.
So, I am wondering, how do I update a web service that has been uploaded?
Thanks,
Jim
Next Message by Date:
click to view message preview
RE: configure client.axis2.xml programmically
Hi,
I tried to provide the userToken auth info in the following way, but did not
succeed, since the soap header is still missing in the request:
String serviceUrl = <myServiceEndpoint>;
String repository = <myRepositoryPath>;
ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem(repository,
null);
MyServiceStub stub = new MyServiceStub(ctx, serverUrl);
ServiceClient serviceClient = stub._getServiceClient();
serviceClient.engageModule("rampart");
Options options = serviceClient.getOptions();
options.setUserName("user");
options.setPassword("pass");
Any ideas or should this issue be posted on the rampart list?
best regards
Werner
----- Ursprüngliche Mail ----
Von: Werner Heinsohn <werner.heinsohn@xxxxxxxxx>
An: axis-user@xxxxxxxxxxxxx
Gesendet: Freitag, den 27. März 2009, 16:57:19 Uhr
Betreff: configure client.axis2.xml programmically
Hi,
I'm using a axis2 client using WS-Security/rampart for authenticating the user,
but right now it's done by generating a context with the "client.axis2.xml". Is
it possible (and how) to configure this programmically, aka not needing to use
the client.axis2.xml?
Important part of the "client.axis2.xml":
<module ref="rampart" />
<parameter name="OutflowSecurity">
<action>
<items>UsernameToken</items>
<user>user</user>
<password>pass</password>
<passwordType>PasswordText</passwordType>
</action>
</parameter>
thanks and best regards
Werner
Previous Message by Thread:
click to view message preview
Re: How to update Axis web service?
Excerpt from http://www.developer.com/services/article.php/3557741
<quote>
Hotupdate is an important feature and is required in a testing
environment. However, it is not advisable to use hot update in a
real-time system because a hot update could result in the system leading
to an unknown state. Additionally, there is the possibility of losing
the existing service data of that service. To prevent this, Axis2 came
with the hot update parameter set to FALSE by default.
</quote>
HTH,
Charitha
http://charithaka.blogspot.com
ohaya@xxxxxxx wrote:
Hi,
I was able to get the web service updated by changing the "hotupdate" to "true" in axis2.xml, but I
still am wondering, if the "hotupdate" parameter is left at "false", what is the procedure to
update an existing web service?
Thanks,
Jim
---- ohaya@xxxxxxx wrote:
Hi,
I just got Axis2 installed, with Tomcat.
To get started, I built the quickstart sample by running ant, and then I used
the Axis admin webapp to upload the StockQuoteService.aar, and that worked,
i.e., I can access the web service operations.
I wanted to modify the StockQuoteService update operation so that it would
return something, so I modified the StockQuoteService.java, and then ran ant
again.
I didn't see something like "delete a service" in the Axis admin, so I tried
uploading the update .aar file, but even after I bounced Tomcat, it looks like it's still
using the original StockQuoteService. Also, the WSDL that I get when I got to the ?wsdl
URL is still not showing any response for the update operation.
So, I am wondering, how do I update a web service that has been uploaded?
Thanks,
Jim
Next Message by Thread:
click to view message preview
wsdl2java issue in upgrading from axis 1.2 to 1.4
Hello,
In my project, we are planning to upgrade from axis 1.2 to axis 1.4. But
when we tested, we noticed that wsdl2java is not generating some java classes
which it used to generate in axis 1.2
For eg, with the wsdl structure as below,
<complexType name="ItemEntry">
<sequence>
<element name="one" type="abcd:DOW" minOccurs="1"
maxOccurs="1"/>
<element name="two" type="xsd:time" minOccurs="0" maxOccurs="1"
nillable="true"/>
</sequence>
</complexType>
<complexType name="ItemList">
<sequence>
<element name="ItemEntry" type="abcd:ItemEntry" minOccurs="0"
maxOccurs="49" nillable="true"/>
</sequence>
</complexType>
<complexType name="Item-loc">
<sequence>
<element name="ItemList" type="abcd:ItemList" minOccurs="0"
maxOccurs="1" nillable="true"/>
</sequence>
</complexType>
wsdl2java is not generating a class for ItemList in axis 1.4, but it used
to generate a class for ItemList in axis1.2.
Is wsdl2java in 1.4 backward compatible with 1.2 ?
Thanks,
Rishi
|
|