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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:45:17+00:00 2026-06-05T04:45:17+00:00

how do call a web srvice using soap when my webservice is like this..

  • 0

how do call a web srvice using soap when my webservice is like this.. i need to fill up the cus details how can i do that .. can any one guide me on this

<registerCustomer xmlns="http://webservices.foodtruck.zsl.com/">
  <cusDetails>
    <FirstName>string</FirstName>
    <LastName>string</LastName>
    <EmailID>string</EmailID>
    <AddLine1>string</AddLine1>
    <AddLine2>string</AddLine2>
    <ZipCode>string</ZipCode>
    <City>string</City>
    <StateCode>string</StateCode>
    <PhoneNumber>string</PhoneNumber>
    <Username>string</Username>
    <Password>string</Password>
    <BrandID>int</BrandID>
    <DiscAgree>int</DiscAgree>
    <Latitude>string</Latitude>
    <Longitude>string</Longitude>
  </cusDetails>
       </registerCustomer>
       </soap:Body>
     </soap:Envelope>

The code which i use to call the service:
final String METHOD_NAME = ServiceStrings.registerMethod;
final String SOAP_ACTION = ServiceStrings.registerSoapAction;
try {

        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
        PropertyInfo pi = new PropertyInfo();

        pi.setName("cusDetails");
        pi.setValue(new SoapObject(NAMESPACE, "cusDetails")
        .addProperty("FirstName", fname)
        .addProperty("LastName", lname)
        .addProperty("EmailID", email)
        .addProperty("AddLine1", add1)
        .addProperty("AddLine2", add2)
        .addProperty("ZipCode", zip)
        .addProperty("City", city)
        .addProperty("StateCode", state)
        .addProperty("PhoneNumber", phoneno)
        .addProperty("Username", email)
        .addProperty("Password", pwd)
        .addProperty("BrandID", 1)
        .addProperty("DiscAgree", 1)
        .addProperty("Latitude", "11.2")
        .addProperty("Longitude", "11.2"));

        request.addProperty(pi);

But i get an error

Server was unable to read request. ---&gt; There is an error in XML document (1, 316). ---&gt; The specified type was not recognized: name='cusDetails', namespace='http://webservices.foodtruck.zsl.com/', at &lt;cusDetails xmlns='http://webservices.foodtruck.zsl.com/'&gt;
  • 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-05T04:45:19+00:00Added an answer on June 5, 2026 at 4:45 am
    SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME);
            PropertyInfo pi = new PropertyInfo();
            pi.setName("cusDetails");
            pi.setValue(new SoapObject(NAMESPACE, "Customer")
                    .addProperty("FirstName", fname)
                    .addProperty("LastName", lname)
                    .addProperty("EmailID", email)
                    .addProperty("AddLine1", add1)
                    .addProperty("AddLine2", add2).addProperty("ZipCode", zip)
                    .addProperty("City", city).addProperty("StateCode", state)
                    .addProperty("PhoneNumber", phoneno)
                    .addProperty("Username", email)
                    .addProperty("Password", pwd)
                    .addProperty("BrandID", brandid)
                    .addProperty("DiscAgree", flag)
                    .addProperty("Latitude", "11.2")
                    .addProperty("Longitude", "11.2"));
    
            request.addProperty(pi);
            Log.e("req", brandid);
            SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
                    SoapEnvelope.VER11);
            envelope.dotNet = true;
            envelope.setOutputSoapObject(request);
            AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport(
                    URL);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I call a web service directly without using soap? I basically want
I am using suds to consume SOAP web services like this way: from suds.client
I am using Soap WEb service but I am facing one problem like this
I using VB.NET 2.0. I am trying to call a web service. This web
I have a Silverlight client that I need to call a web service. The
I'm requesting stuff from the web using web services that return XML. This works
I have a simple web service operation like so: @WebService(endpointInterface = soap.service.sei.HelloWorldSei) public class
I am using Axis to call a SOAP-based web service. I'm then trying to
I have a perl script using soap::lite that calls a webservice written in Net.
I am trying to call a web service (using nusoap ), which work well

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.