Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6801095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:03:28+00:00 2026-05-26T19:03:28+00:00

I want to import data from java web application to sugarCRM. I created client

  • 0

I want to import data from java web application to sugarCRM. I created client stub using AXIS and then I am trying to connect, it seems it is getting connected, since I can get server information. But after login, it gives me error while getting sessionID:

Error is: “faultString: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it.”

Here is my code:

private static final String ENDPOINT_URL = " http://localhost/sugarcrm/service/v3/soap.php";

java.net.URL url = null;
        try {
            url = new URL(ENDPOINT_URL);
        } catch (MalformedURLException e1) {
            System.out.println("URL endpoing creation failed. Message: "+e1.getMessage());
            e1.printStackTrace();   
        }

> System.out.println("URL endpoint created successfully!");
        Sugarsoap service = new SugarsoapLocator();
        SugarsoapPortType port = service.getsugarsoapPort(url);

        Get_server_info_result result = port.get_server_info();
        System.out.println(result.getGmt_time());
        System.out.println(result.getVersion());
        //I am getting right answers

        User_auth userAuth=new User_auth();
        userAuth.setUser_name(USER_NAME);
        MessageDigest md =MessageDigest.getInstance("MD5");
        String password=convertToHex(md.digest(USER_PASSWORD.getBytes()));
        userAuth.setPassword(password);

        Name_value nameValueListLogin[] = null;

        Entry_value loginResponse = null;
        loginResponse=port.login (userAuth, "sugarcrm",nameValueListLogin);

        String sessionID = loginResponse.getId(); // <--- Get error on this one
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T19:03:28+00:00Added an answer on May 26, 2026 at 7:03 pm

    The nameValueListLogin could be be from a different document context (coming from a different source). See if this link helps.

    You may need to get more debugging/logging information so we can see what nameValueListLogin consists of and where it is coming from.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to import data from excel file using PHP and then if possible,
I come from Java, and I want to do some data transfer objects (DTOs)
If I have data rows in database and want to import data from data
i want to import in my iphone application, but i know this framework is
I have a method I want to import from a DLL and it has
I need an Android application which should be able to fetch data from the
I want to do syslogging from Java. There is a log4j appender, but it
Here, i have coded to get data from DB. I want to store the
I'm trying to write a Java app that imports a data file. The process
I want to create native Mac OS X application using Cocoa + Objective C

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.