Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 60256 invoked from network); 1 Jul 2004 12:42:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 1 Jul 2004 12:42:14 -0000 Received: (qmail 97114 invoked by uid 500); 1 Jul 2004 12:42:13 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 97051 invoked by uid 500); 1 Jul 2004 12:42: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 96859 invoked by uid 99); 1 Jul 2004 12:42:09 -0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=HTML_60_70,HTML_MESSAGE X-Spam-Check-By: apache.org Received: from [147.86.128.21] (HELO magellan.fh-aargau.ch) (147.86.128.21) by apache.org (qpsmtpd/0.27.1) with ESMTP; Thu, 01 Jul 2004 05:42:08 -0700 Received: from mcjakob (mc-jakob.cs.fh-aargau.ch [147.86.135.241]) by magellan.fh-aargau.ch (Postfix) with ESMTP id 514AA3001 for ; Thu, 1 Jul 2004 14:42:02 +0200 (MET DST) From: "Titus Jakob" To: Subject: client problem with C++-Client Date: Thu, 1 Jul 2004 14:41:57 +0200 Message-ID: <000601c45f68$cc48d820$f1875693@cs.fhaargau.ch> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C45F79.8FD1A820" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.3416 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0007_01C45F79.8FD1A820 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi May be you can help me. 1) I have a running web-service, handeled by Java-Axis. 2) If the client is a java-client everything works well. 3) I downloaded axis-c-1-2-alpha-win32, and created the client stubs ( see below, AAAA) 4) the client programm (BBBB) compiles well. 5) during run time, it successfully starts the server-side but fails with the return value at CCCC with an "access violation"...(?) precise error message: "unhandeled exception in CClient.exe( AXISCLIENT.DLL ): 0X0000005: Access Violation Do you have me a hint, what to do? Thanks in advance Titus CCCC (Currency2.cpp) if(AXIS_SUCCESS == m_pCall->checkMessage("multiplyResponse", "http://localhost:8080/axis/Currency2.jws")) BBBB #include "Currency2.h" int main() { Currency2 c; int result = -22; result = c.multiply(46); printf("result = %d", result); return 0; } AAAA java -classpath %classpath%;.\wsdl2ws.jar org.apache.axis.wsdl.wsdl2ws.WSDL2Ws http://localhost:8080/axis/Currency2.jws?WSDL -o./CurrencyCClient -lc++ -sclient ------=_NextPart_000_0007_01C45F79.8FD1A820 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable client problem with C++-Client

Hi
May be you can help me.
1)  I have a running = web-service, handeled by Java-Axis.
2)  If the client is a = java-client everything works well.
3)  I downloaded = axis-c-1-2-alpha-win32,  and created the client stubs ( see below, = AAAA)
4)  the client programm = (BBBB) compiles well.
5)  during run time, it = successfully starts the server-side but fails with the return = value  at CCCC with an "access = violation"...(?)

precise error message: = "unhandeled exception in CClient.exe( AXISCLIENT.DLL ): 0X0000005: = Access Violation


Do you have me a hint, what to = do?
Thanks in advance
Titus

CCCC (Currency2.cpp)
if(AXIS_SUCCESS =3D=3D = m_pCall->checkMessage("multiplyResponse",
"http://localhost:8080/axis/Currency2.jws"))


BBBB
#include = "Currency2.h"
int main()
{
        Currency2 c;
        =         int result =3D -22;
        =         result =3D c.multiply(46);
        printf("result =3D = %d", result);
        return 0;
}


AAAA
java -classpath = %classpath%;.\wsdl2ws.jar org.apache.axis.wsdl.wsdl2ws.WSDL2Ws
http://localhost:8080/axis/Currency2.jws?WSDL -o./CurrencyCClient -lc++ -sclient






------=_NextPart_000_0007_01C45F79.8FD1A820--