wood burning stoves 2.0*
The moose likes Web Services and the fly likes Soap method missing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Soap method missing" Watch "Soap method missing" New topic
Author

Soap method missing

Jerry Davidson
Greenhorn

Joined: Feb 22, 2008
Posts: 7
My project can't find "extractContentAsDocument()", but it looks like "javax.xml.soap.SOAPBody" is being imported. Any ideas?

TIA
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
Just glancing at the javax.xml.soap JavaDocs, it appears that the method you want was only added in SAAJ 1.3 - What version of Java are you using to compile.

Bill

Java Resources at www.wbrogden.com
Jerry Davidson
Greenhorn

Joined: Feb 22, 2008
Posts: 7
1.5. I'm using RAD with the Flex plug-in for this Flex/Java project. I'm assuming their is a jar missing, but I don't know which one.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
Since that class is part of the standard library, you are not "missing a jar" you are using a grossly out-dated version of Java from before that method became part of the standard library.

There really is no excuse for using Java 1.5 - see this Java version history.

You are two generations out of support.

Bill
Jerry Davidson
Greenhorn

Joined: Feb 22, 2008
Posts: 7
This is an existing application that worked so I'm not sure why this error is coming up now. I've imported it into RAD 7 on a Window 7 machine from an XP machine.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12671
    
    5
I would bet real money that the version of Java on the machine where it worked was more modern than 1.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Soap method missing