Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 16461 invoked from network); 6 May 2005 14:41:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 May 2005 14:41:27 -0000 Received: (qmail 80249 invoked by uid 500); 6 May 2005 14:40:51 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 80224 invoked by uid 500); 6 May 2005 14:40:51 -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 80198 invoked by uid 99); 6 May 2005 14:40:51 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mlbe2k1.cs.myharris.net (HELO mlbe2k1.cs.myharris.net) (137.237.90.88) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 06 May 2005 07:40:50 -0700 Received: from mlbe2k7.cs.myharris.net ([192.107.153.230]) by mlbe2k1.cs.myharris.net with Microsoft SMTPSVC(5.0.2195.6713); Fri, 6 May 2005 10:36:33 -0400 Received: from nyce2k1.cs.myharris.net ([172.16.32.162]) by mlbe2k7.cs.myharris.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 6 May 2005 10:36:31 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Newbie questions and some weird behavior Date: Fri, 6 May 2005 10:36:29 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Newbie questions and some weird behavior Thread-Index: AcVR6ymZH8LfSWQSQCGJLJbD7cvuRgAXVJ/Q From: "Yampolsky, Robert" To: "Apache AXIS C User List" X-OriginalArrivalTime: 06 May 2005 14:36:31.0763 (UTC) FILETIME=[FEE76E30:01C55248] X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >One thing to figure out is to know whether the error is in generated >code or in the user written code. Will have to generate the code and >see. Okay. There's not much code, though. This is a trivial test of the service, and all it does is print out the input to a log file, copy back the input params as outputs and log them. The logged stuff looks ok: Here's the code: void HUB_TO_HUB::Hub_Request(xsd__string Value0, xsd__string Value1, xsd__string Value2, xsd__string Value3, xsd__string Value4, xsd__string Value5, xsd__string Value6, xsd__string Value7, AXIS_OUT_PARAM xsd__string *OutValue0, AXIS_OUT_PARAM xsd__string *OutValue1, AXIS_OUT_PARAM xsd__string *OutValue2, AXIS_OUT_PARAM xsd__string *OutValue3, AXIS_OUT_PARAM xsd__string *OutValue4, AXIS_OUT_PARAM xsd__string *OutValue5) { char timestamp[100]; time_t clock; struct tm *tm; FILE *file; file =3D fopen("/home/rob/hub2hub/server/log", "w+"); fprintf(file, "Input:\n" " TO_TP=3D%s\n" " FROM_TP=3D%s\n" " TO_HUB=3D%s\n" " FROM_HUB=3D%s\n" " UID=3D%s\n" " APIKEY=3D%s\n" " ROUTING=3D%s\n" " MESSAGE=3D%s\n", Value0, Value1, Value2, Value3, Value4, Value5, Value6, Value7); // Pass back caller's UID. *OutValue0 =3D Value4; // Pass back caller's FROM_TP as TO_TP. *OutValue1 =3D Value0; // Pass our hub ID as FROM_TP *OutValue2 =3D "ABCD-EFGH-IJKL-MNOP"; // Force status code of 0 (SUCCESS) for now *OutValue3 =3D "0"; *OutValue4 =3D "SUCCESS"; // Send timestamp. clock =3D time((time_t *) 0); tm =3D localtime(&clock); sprintf(timestamp, "%04d-%02d-%02d %02d-%02d-%02d", tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec); *OutValue5 =3D timestamp; fprintf(file, "Output:\n" " UID=3D%s\n" " TO_TP=3D%s\n" " FROM_TP=3D%s\n" " STATUS=3D%s\n" " STATUS_MSG=3D%s\n" " TIMESTAMP=3D%s\n", *OutValue0, *OutValue1, *OutValue2, *OutValue3, *OutValue4, *OutValue5); fclose(file); } =20