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 9008625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:59:06+00:00 2026-06-16T01:59:06+00:00

I am getting the following error when requesting and retrieving with complex types from

  • 0

I am getting the following error when requesting and retrieving with complex types from Android client:

Server was unable to process request. —> Object reference not set to an instance of an object.’ faultactor: ‘null’ detail: org.kxml2.kdom.Node

The wsdl:

<s:complexType name="AlFi_Rsp">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="RspResult" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="RspReason" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="RspExplain" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="RspInstruc" type="s:string"/>
</s:sequence>
</s:complexType>

<s:element name="wsVale">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="UserId" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="Service" type="s:string"/>
<s:element minOccurs="0" maxOccurs="1" name="FiTerminal" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>

<s:element name="wsValeResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="wsValeResult" type="tns:AlFi_Rsp"/>
</s:sequence>
</s:complexType>
</s:element>

The client:

    PropertyInfo pi1 = new PropertyInfo();PropertyInfo pi2 = new PropertyInfo();
    PropertyInfo pi3 = new PropertyInfo();


    pi1.setName(KEY_USERID);
    pi2.setName(KEY_SERVICE);
    pi3.setName(KEY_FITERMINAL);

    pi1.setValue(VAR_USERID);
    pi2.setValue(VAR_SERVICE);
    pi3.setValue(VAR_FITERMINAL);

    pi1.setType(PropertyInfo.STRING_CLASS);
    pi2.setType(PropertyInfo.STRING_CLASS);
    pi3.setType(PropertyInfo.STRING_CLASS);

    request.addProperty(pi1);
    request.addProperty(pi2);
    request.addProperty(pi3);

    SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
            SoapEnvelope.VER11); // put all required data into a soap
                                    // envelope
    envelope.dotNet = true;
    envelope.setOutputSoapObject(request); // prepare request
    envelope.implicitTypes = true;
    envelope.addMapping(XNAMESPACE, "AlFi_Rsp", OutValeResponse.class);

    HttpTransportSE httpTransport = new HttpTransportSE(XURL);
    httpTransport.debug = true;
    httpTransport.call(XSOAP_ACTION, envelope); // send request

envelope.bodyIn retrieves the above mentioned error.

Request dump:

<?xml version="1.0" encoding="UTF-8"?>
<v:Envelope xmlns:v="http://schemas.xmlsoap.org/soap/envelope/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:d="http://www.w3.org/2001/XMLSchema" xmlns:c="http://schemas.xmlsoap.org/soap/encoding/">
   <v:Header />
   <v:Body>
      <wsVale xmlns="https://.../AlCheq/">
         <UserId i:type="d:string">0</UserId>
         <Service i:type="d:string">0</Service>
         <FiTerminal i:type="d:string">0</FiTerminal>
      </wsVale>
   </v:Body>
</v:Envelope>

Response dump:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <soap:Fault>
         <faultcode>soap:Server</faultcode>
         <faultstring>Server was unable to process request. ---> Object reference not set to an instance of an object.' faultactor: 'null' detail: org.kxml2.kdom.Node</faultstring>
         <detail />
      </soap:Fault>
   </soap:Body>
</soap:Envelope>

Both InVale and OutValeResponse classes implement KvmSerializable methods.

I am using last ksoap2-android-assembly-3.0.0-RC.4-jar-with-dependencies and Android 2.2. Any suggestions?, I ve searched for this for days and do not get to the point.

Thanks for any help

  • 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-06-16T01:59:07+00:00Added an answer on June 16, 2026 at 1:59 am

    Problem solved.

    Weird but finally it was an issue in the construction of NAMESPACE and SOAP action. I changed this

    String METHOD_NAME = "method";
    String NAMESPACE = "https://url/.../AlCheq/";
    String SOAP_ACTION = NAMESPACE + METHOD_NAME;
    

    for this

    String METHOD_NAME = "method";
    String SOAP_ACTION = "https://url/.../AlCheq/method";
    

    This means, it was something about the “/” in the NAMESPACE

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

Sidebar

Related Questions

I am getting following error: COM object that has been separated from its underlying
I'm getting following error when my client tries to connect to my server socket:
i am getting following error while getting data from dictionary -[__NSCFString objectForKey:]: unrecognized selector
I am getting following error: error: calling a host function(strcpy) from a __device__/__global__ function(doDecompression)
After a while and requesting multiple pages I am getting the following error. How
getting following error: SMTP -> ERROR: Failed to connect to server: php_network_getaddresses: getaddrinfo failed:
I am getting following error. Restore failed for Server I have recently upgraded SQL
I am getting following error while i deployed the website.. Server Error in '/domain/website'
I am getting following error while trying to connect to a sftp server:- ncftpput:
I am getting following error while building android source, where i have added my

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.