Solved

deprecated method

Posted on 2014-01-12
5
390 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 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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

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…
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 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:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

724 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