Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

deprecated method

Posted on 2014-01-12
5
Medium Priority
?
402 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
This video teaches viewers about errors in exception handling.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

609 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