Want to post very large amout of data to server

Dear All,

I want to post very large data to server. For this I am following the below steps:

1). First read local database and convert into XML string.
2). Then pass variable to WCF service using post method

Previously I was doing this using  get method and bind the XML string to URL as query-sting. But as my data was very large , I was getting Long URL Issue. Thats why changed my procedure to post.

By post method is not working..

Please find below the basic demo I am using to make the WCF service and calling it using post method. Kindly do modification if required.

WCF Service:  
 [OperationContract]
        [WebInvoke(Method = "POST",
            ResponseFormat = WebMessageFormat.Json,
            RequestFormat = WebMessageFormat.Json,
            BodyStyle = WebMessageBodyStyle.Wrapped,
            UriTemplate = "LTSCheck")]
        Checklts[] LTSCheck(string p1, string p2);






 [DataContract]
    public class Checklts
    {
        [DataMember(Name = "msg")]
        public string msg
        {
            get;
            set;
        }
        [DataMember(Name = "exception")]
        public string exception
        {
            get;
            set;
        }
    }





        public Checklts[] LTSCheck(string p1, string p2)
        {
            List<Checklts> objpqs = new List<Checklts>();
            Checklts checklttds = new Checklts();

            try
            {
                checklttds.msg = "Valus of P1 is :" + p1 + " and Values of P2 is " + p2;
            }
            catch (Exception ex)
            {
                checklttds.msg = "0";
                checklttds.exception = ex.Message;

            }
            finally
            {
                objpqs.Add(checklttds);
            }

            return objpqs.ToArray();

        }

Open in new window





Javascript
$.ajax({
                    url: 'http://bytechdemo.com/mimob/miservice/Service1.svc/LTSCheck',
                    type: 'POST',
                    contentType: "application/json; charset=utf-8",
                    data: JSON.stringify(input),
                    dataType: 'jsonp',
                    crossDomain: true,
                    processData: true,                    
                    async: true,
                    success: function (data, success, jqXHR) {
                        alert("successs");
                    },
                    error: function (e) {
                        //alert(e.statusText);
                        alert("Poor internet");
                    }
                });

Open in new window





Please help me and suggest me if there is any other option to achieve my goal.
Bytech IndiaAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rainer JeschorCommented:
Hi,
how big (number of bytes) is the input?

Thanks.
Rainer
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bytech IndiaAuthor Commented:
Rainer Jeschor Sir , Originally I am saving data in local database where I have approx. 50 columns and any number of rows (depeds user input). I want to copy all rows / Local database and save/ Syncornize it to Server Database.
0
Bytech IndiaAuthor Commented:
Aikimark Sir, Can you please explain in brief.
0
Bytech IndiaAuthor Commented:
Aikimark Sir,  sure . From next time i'll follow that.
0
Bytech IndiaAuthor Commented:
I've requested that this question be closed as follows:

Accepted answer: 0 points for BYTECHINDIA's comment #a40678574

for the following reason:

Got no answer
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WCF

From novice to tech pro — start learning today.