?
Solved

deprecated method

Posted on 2014-01-12
5
Medium Priority
?
394 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 1600 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

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

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

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

771 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