Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 40031 invoked from network); 30 Jul 2007 11:44:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2007 11:44:27 -0000 Received: (qmail 78225 invoked by uid 500); 30 Jul 2007 11:44:27 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 78006 invoked by uid 500); 30 Jul 2007 11:44:26 -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 77995 invoked by uid 99); 30 Jul 2007 11:44:26 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 04:44:26 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [65.116.131.35] (HELO postal.aylus.com) (65.116.131.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Jul 2007 11:44:17 +0000 Received: from postal.aylus.com (localhost.localdomain [127.0.0.1]) by postal.aylus.com (8.13.1/8.13.1) with ESMTP id l6UBnVHU010967 for ; Mon, 30 Jul 2007 07:49:31 -0400 Date: Mon, 30 Jul 2007 17:30:28 +0530 From: "Manoj Rao" To: axis-c-user@ws.apache.org Message-ID: In-Reply-To: <46AD7955.7020309@wso2.com> Subject: RE: Services.xml x-scalix-Hops: 2 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org > Hi Samisa, > The situation here is that the server receives the request from client=20 > processes it and calls the correct functions and when the server=20 > responds to=20 > the client with a complextype xml, this XML doesn't reach the client.=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Q)What does the client log say? A)I am using non-axis clients (php clients right now) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > In=20 > fact=20 > the XML we have formed is syntactically correct but the client doesn't=20 > receive xml. After calling this API=20 > axiom_xml_writer_get_xml() the buffer obtained shows the correct=20 > response xml=20 > formed by the server.=20 > the sample response xml is > Name>/namespace1"> > =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Is this the exact XML or a sample? If this is exact XML, then=20 having=20 "" in XML is incorrect. A) "My Service Name" was just an example I gave, in the response we=20 are sending the correct Service name. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Samisa... > > 0 > SUCCESS > > Default > 15 > home.net > office.net > 1 > 1024 > 1024 > 15 > -1 > -1 > 1 > > > om > 5 > google.com:0 > yahoo.com:0 > 2 > 2400 > 2400 > 15 > 3 =20 > -1 > 1 > > > omnew123344 > 5 > domain1.com:0 > domain2.com:0 > 2 > 2400 > 2400 > 15 > 511 > 255 > 1 > > > > > The client doesn't receive any XML at all in this case. The rest of=20 the=20 > framework, if you can call it, for writing clients has been done and=20 is=20 > being used for some time now. > > Thanks, > Manoj R > > > On Saturday 28 Jul 2007 11:34 am, Samisa Abeysinghe wrote: > =20 >> Raghavendra SM wrote: >> =20 >>> Oh Sorry, "acc_invoke" was a typo error, and it actually is=20 >>> =20 > "my_invoke". > =20 >>> Even then I face the same problem. Please take another look & let us >>> know if you need more information of any sort. >>> =20 >> Well, I fixed this typo, removed the func_array add statements form=20 >> =20 > init > =20 >> method and also fixed a typo on line 105 where the trailing double=20 >> =20 > quote > =20 >> of the string was missing and replaced echo with this service and >> everything worked fine. Of course, I also commented out your custom >> logging statements. >> >> How did you compile the service lib? What is the exact compiler=20 >> =20 > options > =20 >> used? I used the makefile form echo service. If you used command line=20 >> =20 > to > =20 >> compile, make sure you used "-lpthread -ldl" options when linking. >> >> Thanks, >> Samisa... >> >> =20 >>> Regards, >>> ~raghav >>> >>> >>> -----Original Message----- >>> From: Samisa Abeysinghe [mailto:samisa@wso2.com] >>> Sent: Friday, July 27, 2007 6:53 AM >>> To: Apache AXIS C User List >>> Subject: Re: Services.xml >>> >>> Raghavendra SM wrote: >>> =20 >>>> Hi Samisa, >>>> >>>> Please find the server code below, which is causing the problems as >>>> described by Manoj Rao. Please let me know if need more information >>>> =20 >>> than >>> >>> =20 >>>> this. >>>> >>>> These are the skeleton functions of the server. >>>> =20 >>> I think I found the problem. In your my_svc_skeleton_ops_var=20 >>> =20 > variable, > =20 >>> you have provided my_invoke as the invoke function. However, in your >>> source, there is no such function, rather a function named=20 >>> =20 > acc_invoke. I > =20 >>> think you have to rename acc_invoke to my_invoke and try. >>> >>> Also in the my_init function, you do not need to initialize >>> svc_skeleton->func_array. You can safely comment whole of my_init >>> function, leaving only the return AXIS2_SUCCESS; line in there. >>> >>> HTH. >>> >>> Thanks, >>> Samisa... >>> =20 > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > =20 --=20 Samisa Abeysinghe : http://www.wso2.org/ (WSO2 Oxygen Tank - Web=20 Services Developers' Portal) --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org