Convert Node to Document ?

Hi All,
I am using xmlbeans for in my webservice client. i am calling the webservice usgin SOAP APIs. I am facing a problem :
I created the jar file out of my wsdl then instantiated one of the classes. Now i need to add the object in the SOAPMessage object, for which I did this:
        Node nd = myInstance.getDomNode();
       // Here I am getting error. I am not able to cast Node nd to a Document.
     SOAPBodyElement ele = soapBodyInstance.addDocument((Document) nd);Is there any other way to convert a node into document?

You can only perform casting in the reverse order ((Node)Document) because the Document interface is subclassed from the Node interface. Instead, you should do something like this:Node nd = myInstance.getDomNode();
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder parser = factory.newDocumentBuilder();
DOMImplementation domImpl = parser.getDOMImplementation();
Document doc = domImpl.createDocument(null, nd, null);
SOAPBodyElement ele = soapBodyInstance.addDocument(doc);

Similar Messages

  • Need to convert pictures and documents to PDF

    need to convert pictures and documents to PDF

    Hi BodyWhys,
    Please do below if you are using Adobe Reader:
    1. Launch Reader
    2. Select "Tool" at right pane
    3. Sign in with your Adobe ID and password after clicking "Sign in" under "Tools"
    4. Select "Create PDF" tab
    5. Click "Select File" button
    6. Select your picture or document (please see more information on supported file at http://helpx.adobe.com/acrobat-com/kb/using-createpdf.html#main_Convert_a_file_to_PDF)
    7. Click "Convert" button
    8. Click "View PDF File in Reader" after converting the file
    Please do below if you are using online service
    1. Login to https://createpdf.acrobat.com/signin.html with your Adobe ID and password
    2. Select "Convert to PDF"
    3. Click "Select Files" button
    4. Click "Download" button in progress bar after convert is complete.
    Please let me know if you have more quetions.
    thank you.
    hisami

  • Trying to converting fillable word documents to fillable pdf-when opening in Reader, no longer fillable

    I am converting fillable word documents (set up as tables with protection activated) into fillable pdf forms using LiveCycle but am having problems once I try to open them in Adobe Reader 9.2. I am unable to save the pdf as dynamic (the only option is static). They are no longer fillable and show "You are viewing this document in PDF/A mode".  Any advise...what am I doing wrong?

    Hi,
    I have the same problem.
    I check my settings and I don't ask a PDF/A files. It's a PDF standard.
    Have someone a solution ?
    Thanks a lot for your help
    Arnaud

  • I just purchased the ExportPDF. When I try to convert a pdf document to word online, it gives me an error. What is the problem?

    I just purchased the ExportPDF. When I try to convert a pdf document to word online, it gives me an error. What is the problem?

    Hi sampa1,
    Can you please let us know the error message you are getting while converting PDF to Word. Also, please let us know the steps you are following.

  • How can I convert an Applework document to .doc (Windows)?

    Does anyone know how can I convert an Applework document to .doc (Windows)?

    You can save an AppleWorks word processing document as Word using File > Save As… You will need to add the .doc extension as AppleWorks won't do it for you.
    If you don't see Word as an option in the file type drop-down menu you likely have moved the AppleWorks application from the AppleWorks 6 folder and/or deleted the support folders, especially the AppleWorks Essentials folder where the translators reside.

  • How can I convert a Word document to an ePub document?

    I would like to convert a Word document of a book I've written to an ePub version that my son can load it into his iPad to read.  Anyone know if there's a way to do that on my Mac mini computer, or if there is a program I can download that will do it?

    Try
    http://www.2epub.com/
    or
    http://ebook.online-convert.com/convert-to-epub

  • Is it possible for automator to convert all word documents in my dropbox folder to apple's "pages" on iCloud and keep the same folder organization?

    Is it possible for automator to convert all word documents in my dropbox folder to apple's "pages" on iCloud and keep the same folder organization?  I am a teacher and want to switch from using microsoft office on my macbook pro to using pages/number/keynote.  I am hoping to get an iPad next year and go "paperless" with lesson plans and gradebooks and I heard that pages/numbers/keynote are great on the ipad.  I'd like to write an automator script (workflow?) to convert all my documents in dropbox to pages and have them stored on iCloud, then be able to access the files on my macbook pro and ipad.  Thanks!

    Create an AppleID under different email addresses for each family member at http://appleid.apple.com
    If they don't already have their own email address just setup a free one with Gmail, Yahoo, Hotmail or whoever you prefer.
    Then on each device sign into iMessage with the users own AppleID in:
    Settings > Messages > Send & Receive > Tap AppleID at top > Sign Out, then sign back in again with the correct AppleID.

  • I have upgraded to Pages 5.0.1 and now I cannot print or pass along "comments" in the text of a document. I previously was able to convert the Pages document, with comments, to a "Word" document so that others could view the edited text. How do I do that?

    I have upgraded to Pages 5.0.1 and now I cannot print or pass along "comments" in the text of a document. I previously was able to convert the Pages document, with comments, to a "Word" document so that others could view the edited text. How do I do that?

    When you installed Pages v5, it automatically moved the older Pages ’09 v4.3 into /Applications/iWork '09 folder. If you want normal comment interoperability, you are advised to resume using the older version of Pages. Newer, is certainly not better with Pages v5.

  • How do I convert a word document into a pdf and then upload it to a web site

    How do I convert a word document into a pdf and then upload it to a web site so people can read it from my
    site with Dreamweaver 4?. How can I do this? Can anyone please help? I'm only a newbie. Thanking you in anticipation.

    First you need to install a means of printing to pdf from word.  I like cutepdf writer ( http://cutepdf.com/Products/CutePDF/writer.asp ).  Once installed you will print the doc in word and under the printer selection you choose pdf.
    Once you have the file you put it in your local site folders and upload it using Dreamweaver.  Be sure to link to it from a page so users can get to it and I would recommend giving the link a target of _black so it will open in a new window (see the properties inspector in DW).

  • Converting a paper document to ADOBE Page

    hi guys,
            I have a task like this To convert a paper document to ADOBE page and i should edit that page also.
    I have converted a doc to ADOBE page and when i open that doc in ADOBE Life cycle designer, it opens as an image (so we cant edit that).
    Is there any idea to convert that document as an editable one.
    with Regards,
    sriram

    Please refer to my post in the following links.
    how to edit a PDF document in Netweaver Development Studio?
    Edited by: Satyabrata Panda on Jan 23, 2008 12:53 PM

  • Converting a publisher document to pdf

    I have been trying to convert a publisher document to pdf.  I keeping getting a message stating cannot save file.

    David K's questions are key.
    Your Publisher version must be compatible with your installed Acrobat's PDFMaker.
    See:
    http://helpx.adobe.com/acrobat/kb/compatible-web-browsers-pdfmaker-applications.html
    Be well...

  • Converting a pdf-document in a tiff-formatted document

    Hello,
    I have created an interactive form in web-dynpro.
    Now I want to convert the pdf document with the  user filled-in data into a document with tiff-format.
    But I´don´t know how.
    Can you help me?
    Best regards
    Oliver

    You can potentially use the Adobe bean library with the Batik.jar file to convert the PDF to TIFF or any other image format.
    The Adobe bean library is available from
    <a href="http://www.adobe.com/products/acrviewer/acrvdnld.html?name=Accept">Adobe</a>
    Batik is avaiable from <a href="http://xmlgraphics.apache.org/batik/">Batik</a>

  • When converting a PDF document to word, the word count feature is not giving me the number of words

    I have been using Acrobat for converting PDF documents to Word.  It had been working just fine, but lately, when I convert a PDF document to Word, it is not giving me the word count, which is why I subscribed in the first place. Someone has any idea of why?

    Hi Robin,
    I would recommend you to use Acrobat software to convert this pdf file, Acrobat software enable you to customize the conversion settings.
    You can download a free 30-day trial from this Link : https://helpx.adobe.com/acrobat/kb/acrobat-downloads.html
    After downloading and installing acrobat, Open pdf file in Acrobat, go to File menu -> Click 'save as other' -> Microsoft Word -> Word Document.
    A pop-up window will appear that would prompt you to choose the file to be converted, after you select the file, click on the settings button on the bottom left of the pop-up window and choose 'Retain Page layout' under layout settings, click ok and then save.
    Hope that helps with your query.
    Regards,
    Rahul

  • Converting a pdf document to a jpeg image C#

    HI There,
    How can I convert a pdf document to a jpeg image using c sharp? I need to do this on a web application. If someone can help me out with some code that would be great.
    Sean - thanks in advance

    The information provided by Aandi is unfortunately out of date. The Adobe PDF Library is obtained through Datalogics and has a JNI, Java, and .NET interface available. Additionally while the Adobe PDF Library with the .NET interface would provide the functionality you seek it is overkill.
    PDF2IMG from Datalogics has a COM component available that can be accessed via C# to convert PDF to most image formats.
    Michael Lee
    www.datalogics.com
    blog.worldofpdf.com

  • Please assist in converting a pdf document to word

    I bought the adobe acrobat x standard software. When I try to convert a pdf document to ms word I am advised taht I have no free trial left and am requested to upgrade. Please assist.

    Hi,
    if you have purchased Acrobat then there is no need to use export PDF service
    Please try the below mentioned steps:
    Open Acrobat
    Click File menu
    Click Save As> Microsoft Word> Word Document,
    ~Pranav

Maybe you are looking for

  • How do i Sync the outlines with other databases

    Hi, I have got two databases and there is a transparent partition between both these databases with MYACT being the source database and MY06W being the target databse. whenever there is any addition of members to my source database how do i sync my t

  • BADIs for MB11, MB1A, MIGO?!?!?

    Hi friends, I've make an implementation for BADI definition "MB_DOCUMENT_BADI". This implementation will be called by MB11(MB1A, MIGO). I need to <b>cancel</b> a line item  from input data (importing 2 itabs mseg & mkpf) before updating to system.  M

  • Dd unix util producing corrupt ISO images

    This is the first time I've ever had reason to post to Apple Support. I'm going insane with this issue. I am writing an ISO-ripping util that is really just GUI slapped on top of dd, and I can't coax the thing to produce non-corrupt ISOs on Snow Leop

  • Metric DIF in SAP F&R

    Metric DIF : We need to check how this metric DIFs manage the number of locations supplied by a DC. It seems there is a DIF that considers if any variation in the number of stores supplied by a DC when calculating the forecast. Can anyone please help

  • Have to sign in every time

    I have a Creative Cloud account. Every time I restart my Mac, I have to sign in in my CC-desktop app. I have the same problem on my MacBookPro as my iMac. Does anybody have a solution for this problem?