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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:46:05+00:00 2026-06-08T11:46:05+00:00

I am using SOAP Webservice in my App. The problem I am facing is,there

  • 0

I am using SOAP Webservice in my App. The problem I am facing is,there is one extra tag in SOAP request body. Because of that I am getting SOAP Fault error “SoapFault – faultcode: ‘soap:Server’ faultstring: ‘Server was unable to process request. —> Object reference not set to an instance of an object.’ faultactor: ‘null’ detail: org.kxml2.kdom.Node@40516ce8”.

Here is the SOAP request….

POST /appws.asmx HTTP/1.1
Host: www.xxxxxx.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://xxxxxxx.com/saveCustomerProfile"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<saveCustomerProfile xmlns="http://xxxxxx.com/">
  <customerProfile>
    <id>long</id>
    <name>string</name>
    <lastName>string</lastName>
    <phoneNumber>string</phoneNumber>
    <zipCode>string</zipCode>
    <email>string</email>
    <birthday>string</birthday>
    <gender>string</gender>
    <emailExclusiveSavings>boolean</emailExclusiveSavings>
    <textExclusiveSavings>boolean</textExclusiveSavings>
  </customerProfile>
</saveCustomerProfile>
</soap:Body>
</soap:Envelope>

Here is the code I am using to call this webservice

   SoapObject request = new SoapObject(NAMESPACE, "saveCustomerProfile");
    request.addProperty("id", 0);
            request.addProperty("name","aaaaa");
            request.addProperty("lastName","bbbbbb");
            request.addProperty("phoneNumber", "1234567890");
            request.addProperty("zipCode", "1234");
            request.addProperty("email", "123@gmail.com");
            request.addProperty("birthday", "02/02/2011");
            request.addProperty("gender", "male");


      request.addProperty("emailExclusiveSavings","true");
  request.addProperty("textExclusiveSavings", "false");

      SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
            SoapEnvelope.VER11);
    envelope.dotNet = true;
    envelope.setOutputSoapObject(request);

    HttpTransportSE httpTransport = new HttpTransportSE(URL);
            httpTransport.call(SOAP_ACTION, envelope);
            System.out.println("response "+envelope.getResponse());

I found where the problem is happening.

  <saveCustomerProfile xmlns="http://xxxxxx.com/">
     <customerProfile>

Normally only one main tag will be there inside SOAP body, here I have two and . I do not know how to handle it. I have checked with some other SOAP Webservices all are working on the same code. Please help me.

  • 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-08T11:46:09+00:00Added an answer on June 8, 2026 at 11:46 am

    See this Tutorial..Might help you:

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

Sidebar

Related Questions

I'm using JaxWsPortProxyFactoryBean in Spring to connect a SOAP webservice. The problem is that
In my app i am using soap webservice call , based on the webservice
I’ve been developing a vb.net client that connects to a Webservice using SOAP. This
I am using JMeter to load test a SOAP webservice. The webservice exists in
I’m trying to implement a SOAP webservice in Python 2.6 using the suds library.
I have written a webservice using the PHP SOAP classes. It has functions to
I'm interfacing to a WCF web service that exposes its method using SOAP, using
I'm trying to consume a webservice that ONLY runs on HTTPS but using the
my iphone app is using soap web-services. I want to know how it would
I have a web app, that also has an iPhone and Android app using

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.