Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 14196 invoked from network); 25 Mar 2009 12:01:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2009 12:01:02 -0000 Received: (qmail 9618 invoked by uid 500); 25 Mar 2009 12:01:02 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 9587 invoked by uid 500); 25 Mar 2009 12:01:02 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 9578 invoked by uid 99); 25 Mar 2009 12:01:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 12:01:02 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [202.43.219.18] (HELO n1a.bullet.in.yahoo.com) (202.43.219.18) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 25 Mar 2009 12:00:52 +0000 Received: from [202.43.219.99] by n1.bullet.in.yahoo.com with NNFMP; 25 Mar 2009 12:00:29 -0000 Received: from [203.104.18.50] by t3.bullet.in.yahoo.com with NNFMP; 25 Mar 2009 12:00:29 -0000 Received: from [127.0.0.1] by omp111.mail.in2.yahoo.com with NNFMP; 25 Mar 2009 12:00:29 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 543617.72811.bm@omp111.mail.in2.yahoo.com Received: (qmail 59096 invoked by uid 60001); 25 Mar 2009 12:00:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1237982429; bh=PKWp0QZTfRjAPeWcmZ/XlfoGs/depB8KtuDeGadt9AA=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KGPIfeV8bgbEVbyoB2c1lUqPB3ltM5AxqlRGXurNfFVqB/ejwKFMxZqRKZjDMad7NjN0qzyipK/jVwFeO1NtzRSJ05yfbHkTJOLS+kkUkBi5wvpiz790HRP2mPQIRiNq1ytrpIYz2FEAq2sxfEHFRYllCwDhQRZkHTGhH83FP88= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=1HAwNS6NNlYwFrkPXoNVqRCKt4/tENr6o/G7ehW5CFIk3dFy+LHLvmcfp3fWpjz5Tip1NXJEig76nsS+ocllhWtTpWEYtOrsSLU9upWnEoS6ruQBWRNmG8DMHQw0JFd7Cz4mHtZ2JxxY7Dm7KC+D1fDAVUsWeUmy16KduVwGYTQ=; Message-ID: <201793.56564.qm@web94702.mail.in2.yahoo.com> X-YMail-OSG: lGIqbzsVM1kd8qMBLNFsVLxL_armpQSVJzOpO0W5OVrCrq.USXKoecVkcKdHste8YaVH_VIM_34F0mvy1.rujSNChHxmLYEQueD7xm6em8ickKnRL1GjJbZsKpYgGsi4dV8_edgXHkvvuMJVuPCi.j85CieZJ3yUSXjCGb1NxZrgB09tUoCEefepho3APnUUw7tofHWSY_4gYbABVLzD.TnfWN1t8XGyH5uTzRaLgsVeM9VU7Es- Received: from [61.95.167.91] by web94702.mail.in2.yahoo.com via HTTP; Wed, 25 Mar 2009 17:30:29 IST X-Mailer: YahooMailClassic/5.1.20 YahooMailWebService/0.7.289.1 Date: Wed, 25 Mar 2009 17:30:29 +0530 (IST) From: ramesh Gopal Subject: How do I embed code to add soap:Envelope and soap:Body within a C client ??? To: Apache AXIS C User List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am wanting to consume a web service (GetPrimeNumbers). In order to do this, I have written a sample C code, which generates the xm= l request. However, while sending the request, I get an error=20 "System.Web.Services.Protocols.SoapException: Server was unable to process = request. ---> System.ArgumentOutOfRangeException: Length cannot be less = than zero" What could be the reason for this error ? My request node looks like: 23 However, I think it should look like : 10 How do I modify the source code to send the soap:body and soap:envelope Code listing : -------------- tns =3D axiom_namespace_create(env, "http://microsoft.com/webservices", "tn= s"); echo_om_ele =3D axiom_element_create(env, NULL, "GetPrimeNumbers", tns,= &echo_om_node); text_om_ele =3D axiom_element_create(env, echo_om_node, "max", tns, &te= xt_om_node); axiom_element_set_text(text_om_ele, env, "10", text_om_node); return echo_om_node; Rgds, Ramesh. =0A=0A=0A Add more friends to your messenger and enjoy! Go to http://m= essenger.yahoo.com/invite/