Solved

deprecated method

Posted on 2014-01-12
5
384 Views
Last Modified: 2014-01-12
I am writing a webservice client using axis 2-1.5.

client is working fine. however I have a depreciated method.  

How do I remove deprecated method ?

Please find the source code attached.
deprecation.zip
0
Comment
Question by:cofactor
  • 3
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 400 total points
ID: 39774385
" Deprecated. As of 1.4 release, replaced by #attachPolicy(Policy)"

No need to zip jpgs btw. Just attach them inline

http://axis.apache.org/axis2/java/core/api/org/apache/axis2/description/PolicyInclude.html
0
 

Author Comment

by:cofactor
ID: 39774599
when   I   remove  deprecated method  and replace  with this  ,....

client.getAxisService().getPolicySubject().attachPolicy(policy);


I get run time exception.
Exception in thread "main" org.apache.axis2.AxisFault: The input stream for an incoming message is null.
      at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:92)


It works fine  with deprecated methods!
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39774617
I can't think why that could be. If all else fails, just go back to deprecated with the annotation suggested by the error message
0
 

Author Comment

by:cofactor
ID: 39774763
@CHEJ,

sorry ..I  messed up  with something else probably that time.

clean build and ran again. ... This works fine now.

Thanks
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39775319
:)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
java 8 lambda expresssions exception handling 3 91
custom annotations 9 39
Spring Framework HTTPSession management 1 36
eclipse console opening separately 2 21
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question