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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:04:48+00:00 2026-05-23T11:04:48+00:00

I could not connect to WCF service , but it alsways i get Launch

  • 0

I could not connect to WCF service , but it alsways i get “Launch timeout has expired, giving up wake lock!”
This is service file :

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
 ......
</connectionStrings>
<appSettings>
  <add key="HO" value=""/>
  <add key="AutoUpdatePath" value="E:\AutoUpdate"/>
</appSettings>
<system.serviceModel>
<bindings>
  <basicHttpBinding>
    <binding name="NewBinding0" maxBufferSize="2000000" maxReceivedMessageSize="2000000">
      <readerQuotas maxStringContentLength="2000000" maxArrayLength="2000000" />
    </binding>
  </basicHttpBinding>
</bindings>
<behaviors>
  <serviceBehaviors>
    <behavior name="NewBehavior">
      <serviceMetadata httpGetEnabled="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<services>
  <service behaviorConfiguration="NewBehavior" name="XONT.Common.Data.PDAServiceBLL.MyPDAService">
    <endpoint address="http://192.168.1.11:7979/mytService" binding="basicHttpBinding"
        bindingConfiguration="NewBinding0" contract="My.Common.Data.PDAServiceBLL.MyPDAService"/>
      <host>
        <baseAddresses>
          <add baseAddress="http://192.168.1.11:7979/mytService"/>
        </baseAddresses>
      </host>
    </service>
  </services>
</system.serviceModel>

and my android calling method like this
EDIT:
Here is Android calling WCF usig KSOAP2

 public SoapObject soap(String METHOD_NAME, String SOAP_ACTION, String NAMESPACE, String URL) throws IOException, XmlPullParserException 
     {
        SoapObject request = new SoapObject(NAMESPACE, METHOD_NAME); //set up request
        request.addProperty("strExec", "WAT2"); //variable name, value. I got the variable name, from the wsdl file!
        SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11); //put all required data into a soap envelope
        envelope.setOutputSoapObject(request);  //prepare request
        AndroidHttpTransport httpTransport = new AndroidHttpTransport(URL);  
        httpTransport.debug = true;  //this is optional, use it if you don't want to use a packet sniffer to check what the sent 
                                     //message was (httpTransport.requestDump)
        httpTransport.call(SOAP_ACTION, envelope); //send request
        SoapObject result=(SoapObject)envelope.getResponse(); //get response
        return result;
     }

This is my C# method:

   namespace My.Common.Data.PDAServiceDAL
   {
    public class MyPDAServiceDAL
    {
     EcecutiveCode = "";
     sqlConnection = ConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString;
     }
       public List<string> loadPassword_Executive(string strExec)
        {
            EcecutiveCode = strExec;
            sqlCon = new SqlConnection(sqlConnection);
            List<string> list = new List<string>();
            SqlCommand com;
            SqlDataReader dr;
            try
            {
                string sql = "select Password,BusinessUnit,PrimaryTerritoryCode,DefaultSalesWarehouse,DefaultSalesLocation from RD.Executive where ExecutiveCode = '" + strExec + "'";
                com = new SqlCommand(sql, sqlCon);
                sqlCon.Open();
                dr = com.ExecuteReader();

                if (dr.Read())
                {
                    list.Add(dr[0].ToString());
                    list.Add(dr[1].ToString());
                    list.Add(dr[2].ToString());
                    list.Add(dr[3].ToString());
                    list.Add(dr[4].ToString());
                }
            }
            catch (Exception e)
            {
                WriteToLog(e);
                throw e;
            }
            finally
            {
                sqlCon.Close();
                //dr.Close();
                //dr.Dispose();
            }

            return list;
        }

and in Activity i called:

  try {
SoapObject result=soap(METHOD_NAME, SOAP_ACTION, NAMESPACE, APPURL);            
 Log.w("log_tag",result.getPropertyCount()+  "=====" + result.getProperty(0).toString());
  } catch (IOException e) {
e.printStackTrace();
  } catch (XmlPullParserException e) {
e.printStackTrace();
 }

Error is :
I got error message Like this **Launch timeout has expired, giving up wake lock!

**
Edited:
How we can increase the time? please help me

Thanks in advance;

  • 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-23T11:04:49+00:00Added an answer on May 23, 2026 at 11:04 am

    You are sending empty POST request without any HTTP header or body. Basic HTTP binding expects valid SOAP request with SOAP action which is used to determine called operation. Anyway I think that should give your some error instead of timeout. Can you at least open this from your android device: http://192.168.1.11:7979/mytService?wsdl ?

    Doing all SOAP communication manually is quite complex. You should use some library which will help you consuming SOAP services – check kSoap2.

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

Sidebar

Related Questions

I'm trying to connect to database asynchronously in WCF service. But despite of setting
I get the following error when i try to consume my wcf service Could
Possible Duplicate: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 25; I am
$con = mysql_connect(localhost,music123_sri,password); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db(music123_telugu,
I have this code $con = mysql_connect(localhost,root,); if (!$con) { die('Could not connect: '
Ok, I have this code. $con = mysql_connect(localhost,root,); if (!$con) { die('Could not connect:
Just could not get this one and googling did not help much either.. First
I've got a curious problem, where I'm trying to connect a WCF service to
That's a horrible title, sorry. Here's the scenario: WCF Service uses LINQ to get
I have a WCF Service running SOAP and allowing Flex / Flash to connect

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.