Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 67050 invoked from network); 9 Jan 2008 00:12:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2008 00:12:23 -0000 Received: (qmail 53516 invoked by uid 500); 9 Jan 2008 00:12:11 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 53506 invoked by uid 500); 9 Jan 2008 00:12:11 -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 53495 invoked by uid 99); 9 Jan 2008 00:12:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2008 16:12:11 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dimuthuc@gmail.com designates 72.14.202.182 as permitted sender) Received: from [72.14.202.182] (HELO ro-out-1112.google.com) (72.14.202.182) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jan 2008 00:11:58 +0000 Received: by ro-out-1112.google.com with SMTP id a14so24307rof.8 for ; Tue, 08 Jan 2008 16:11:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DZ0TlMLQKKSavgdkmoWq4eLHfT3Zz628H1UULm2iCd0=; b=i1NbAxbBEWhYwIodz4J1oE4GEOkR2Gm80U6a2HxkCiArv19zrAl4SbzXeMxVNdsDEMd91zrtZFSaUEuWNMlgVoduL4ADGMPmZASKXo23XXe9vXdNtEvOAvGgq/NeNWFCscHyd085QMe3VhFpHM5svWBk5HGgL1N00vL3GPWuRnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UrRofp/DH0sO5xy2mX9ubx5E1z1u4WslvhdHq0+QG9sfR+wTSycwiMUNAl76nVsLQbqwvx0UuBsG7TmOyxpDn1eTaXTRb5haUo0fNNoIBbehiWw3rhky3Qc/XACPjhZDx8z0yi8mUdWMcI1tir9qoQ8AVUHIF0AtN7+Ek9eMV1U= Received: by 10.142.158.17 with SMTP id g17mr3422wfe.157.1199837509532; Tue, 08 Jan 2008 16:11:49 -0800 (PST) Received: by 10.142.125.21 with HTTP; Tue, 8 Jan 2008 16:11:49 -0800 (PST) Message-ID: Date: Wed, 9 Jan 2008 05:41:49 +0530 From: "Dimuthu Gamage" To: "Apache AXIS C User List" Subject: Re: Axis2C generated code Documentation In-Reply-To: <53076.89265.qm@web33409.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <53076.89265.qm@web33409.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi Virgil, Actually I dont think there are some other documentation are there for the tool except the samples. In fact I'm working on some which to be published on at least in two weeks hopefully. For now, I 've uploaded my test cases to this url[1]. Hope you can get some idea, how different cases (specially in XML-schema) are handled. [1] http://people.apache.org/~dimuthu/leisure/9_jan_08/wsdl2ctests.zip Thanks Dimuthu On Jan 9, 2008 1:40 AM, Trasca Virgil wrote: > Hi, > > Is there some kind of documentation/tutorial on how to use the code ge= nerated by wsdl2c? I am trying for couple of days to use such code without = much luck. Axis2C samples are simple and are not with code generated by wsd= l2C. Using such a sample I was able to call a very simple service but when = I come to more realistic services generated with wsld2c I was not able to h= andle. > > Thank you, > Virgil > > ----- Original Message ---- > From: Trasca Virgil > To: Apache AXIS C User List > Sent: Tuesday, January 8, 2008 9:05:12 PM > Subject: Re: Axis2C generated client issue (please see atached code for d= etails) > > > Hi Dimuthu, > > I tried what you said but without success. Result is NULL again. > But I tried also something else. Please check the attached pictures. > First picture is the list of services exposed, second is a very simple > service which I am able to call it also from C client , and third one > should returns some values from an XML config files but is returning NUL= L > from c. Please see my atached picture. > > Thank you, > Virgil > > > > ----- Original Message ---- > From: Trasca Virgil > To: Apache AXIS C User List > Sent: Tuesday, January 8, 2008 9:20:36 AM > Subject: Re: Axis2C generated client issue (please see atached code for > details) > > > Hi, > > I will try that. BTW this is how I generated my c client code > > depends=3D"generate.service.wsdl"> > > > file=3D"${resources.dir}/wsdl/BursterPublic.wsdl"/> > > > > > > > > > > > Thank you, > Virgil > > ----- Original Message ---- > From: Dimuthu Gamage > To: Apache AXIS C User List > Sent: Tuesday, January 8, 2008 8:45:46 AM > Subject: Re: Axis2C generated client issue (please see atached code for > details) > > > Actually Payload can be null, in a case of an empty request (If the > WSDL says your request message is empty). There have been places where > users meet simmilar situations[1]. There the user could solved his > problem using the changed endpoint. That should be the solution for > this case as well. > > > [1] > > > http://www.nabble.com/codegeneration-and-service-with-no-parameters-td14= 338901.html#a14374273 > > Thanks > Dimuthu > > On Jan 8, 2008 11:57 AM, Trasca Virgil wrote: > > Hi, > > > > Thank you for helping. > > I attached also the wsdl file. Regarding compiling you can > easily remove 1 wxWidgets stuff and it will compile. What I observed > debugging and is strange is that generated line code > > > > ret_node =3D axis2_svc_client_send_receive_with_op_qname( > > svc_client, env, op_qname, payload); > > > > comes to execute with payload =3D NULL and I think this is incorrect. > But this is generated code so because of that I don't know what to do. > > > > I am calling my webservice which is up from Settings.cpp. > > > > Thank you, > > Virgil > > > > > > ----- Original Message ---- > > From: Dimuthu Gamage > > To: Apache AXIS C User List > > Sent: Tuesday, January 8, 2008 3:52:40 AM > > Subject: Re: Axis2C generated client issue (please see atached code > for details) > > > > > > On Jan 8, 2008 7:18 AM, Dimuthu Gamage wrote: > > > Yea, It s better we have the WSDL file to figure out what has > > > happened. I cant compile the code since I dont have installed > > > wxWidget. :( > > > > > > I assume this is a problem of dispatching the request with empty > > body. > > > ( I noticed that your soap action is not the way Axis2 expected to > > > dispatch). > > > > > > > > > So can you try out setting the endpoint uri to. > > > > > > > "http://your_actual_endpoint/axis2/services/BursterPublic/getStting" > > > > Correction: this should be > > "http://your_actual_endpoint/axis2/services/BursterPublic/getSetting" > > > (notice the end it is the operation name) > > > > > > > > > Thanks > > > Dimuthu > > > > > > > > > > > > On Jan 8, 2008 4:01 AM, Mark N=FC=DFler > > wrote: > > > > Hello Trasca, > > > > > > > > [sry last mail i said Virgil not Trasca] > > > > > > > > can you please send the wsdl-file and the command > > > > you use to generate you code ? > > > > > > > > i think you have to you tcpmon, otherwise > > > > you wouldn't see what was transmitted - if > > > > something was really transmitted. > > > > > > > > mfg derMark > > > > > > > > > > > > Trasca Virgil schrieb: > > > > > > > > > Hi, > > > > > > > > > > I am a newbie to Axis2C client and I have an issue. My > server > > is Axis2 Java 1.3 and is up with a service getSettings() which is > > correct (I am 100% about that). > > > > > > > > > > The client is C and is generated with wsdl2c codegent. The > issue > > is than when I call getSettings from C I got NULL all the time even > is > > the service is working. > > > > > I tried to use tcpmon but with not success. > > > > > > > > > > in Settings.cpp > > > > > I have function getSettings() which is returning all the time > > NULL even if I consider that I did all the pre-requites correctly. > This > > function should not return NULL but a corect value. > > > > > > > > > > > > > > > adb_getSettingsResponse_t* Settings::getSettings() > > > > > { > > > > > return axis2_stub_BursterPublic_getSettings(stub,env); > > > > > } > > > > > > > > > > > > > > > What I observed by debugging and is strange is that in > generated > > code > > > > > > > > > > axis2_stub_BursterPublic_getSettings > > > > > > > > > > there is a call to > > > > > > > > > > ret_node =3D axis2_svc_client_send_receive_with_op_qname( > > svc_client, env, op_qname, payload); and here payload comes all the > time NULL > > as it is initialized > > > > > > > > > > earlier in the function with NULL and is not changed before > > calling axis2_svc_client_send_receive_with_op_qname. > > > > > > > > > > I thing payload should not be null at this point . Please > assist > > me. > > > > > > > > > > Thank you, > > > > > Virgil. > > > > > > > > > > > > > > > > > > > > > > > > > -----------------------------------------------------------------------= - > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > > > > > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > > > > > > > > > > > > > > > > > > > -----------------------------------------------------------------------= - > > > > > > > > > > No virus found in this incoming message. > > > > > Checked by AVG Free Edition. > > > > > Version: 7.5.516 / Virus Database: 269.17.13/1213 - Release > Date: > > 07.01.2008 09:14 > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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 > > > > > > > > > > --------------------------------------------------------------------- > > 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 > > > > > > --------------------------------------------------------------------- > 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 > > > > --------------------------------------------------------------------- > 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