This week's book giveaway is in the Security forum.
We're giving away four copies of Securing DevOps and have Julien Vehent on-line!
See this thread for details.
Win a copy of Securing DevOps this week in the Security forum!

Pradeep Bommisetty

Greenhorn
+ Follow
since Apr 18, 2012
Pradeep likes ...
Java Tomcat Server Windows
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pradeep Bommisetty

I am trying to replace a string on line 2 based on a string value in line 1, is there any way to do that easily ?
Below is the sample file. If TOKEN value is -1, change the value in SYNCLOST to Y if not, ignore.
<REQUEST1>
<PAYEESYNCRS>
<TOKEN>-1</TOKEN>
<SYNCLOST>N</SYNCLOST>
</PAYEESYNCRS>
<PMTSYNCRS>
<TOKEN>0</TOKEN>
<SYNCLOST>N</SYNCLOST>
<BANKACCTFROM>
<BANKID>243374218</BANKID>
<ACCTID>1006000382</ACCTID>
<ACCTTYPE>CHECKING</ACCTTYPE></BANKACCTFROM></PMTSYNCRS>
<RECPMTSYNCRS>
<TOKEN>-1</TOKEN>
<SYNCLOST>N</SYNCLOST>
3 years ago
For Axis2 client programs, All you need to do is, use a different constructor

replace the standard
ServiceNameStub stub = new ServiceNameStub();
with
ServiceNameStub stub = new ServiceNameStub(null, "http://localhost:8080/axis2/services/ServiceName.endPoint");

6 years ago