Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 47423 invoked from network); 3 Apr 2007 20:12:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Apr 2007 20:12:42 -0000 Received: (qmail 12287 invoked by uid 500); 3 Apr 2007 20:12:49 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 12278 invoked by uid 500); 3 Apr 2007 20:12:48 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 12267 invoked by uid 99); 3 Apr 2007 20:12:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 13:12:48 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of alphonso.desselle@ngc.com designates 155.104.240.104 as permitted sender) Received: from [155.104.240.104] (HELO xmrm0101.northgrum.com) (155.104.240.104) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Apr 2007 13:12:40 -0700 Received: from xbhm0001.northgrum.com ([155.104.118.90]) by xmrm0101.northgrum.com with InterScan Message Security Suite; Tue, 03 Apr 2007 13:03:58 -0700 Received: from xbhmd101.northgrum.com ([155.104.117.143]) by xbhm0001.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2499); Tue, 3 Apr 2007 16:12:19 -0400 Received: from XMBMD105.northgrum.com ([155.104.117.120]) by xbhmd101.northgrum.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.2499); Tue, 3 Apr 2007 16:12:19 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C7762C.61B5D6F0" Subject: Problems in trying to instantiate client stub object Date: Tue, 3 Apr 2007 16:12:19 -0400 Message-ID: <951BACE07A2C044691BD24E65EE631FE01502F64@XMBMD105.northgrum.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Problems in trying to instantiate client stub object Thread-Index: Acd2LGGZbc4tJkRvToCvDgfrKmOh/g== From: "Desselle, Alphonso J. \(Contr\)" To: X-OriginalArrivalTime: 03 Apr 2007 20:12:19.0257 (UTC) FILETIME=[61AACA90:01C7762C] X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C7762C.61B5D6F0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I am trying to get Apace Axis for C++ (ver. 1.6b) working. My main goal, for now, is to get the simple calculator example working with my web service I deployed on Tomcat. To accomplish this, I wrote a simple java object Calculator.java, which looks as follows. public class Calculator { public int add(int i1, int i2) { return i1 + i2;=20 } public int subtract(int i1, int i2) { return i1 - i2; } } >From there I compiled and copied this class to my under my tomcat server. I then renamed this file To Calculator.jws. =20 >From there I generated the wsdl using the following link from a web browser http://localhost:8080/axis/Calculator.jws?wsdl I then copied and pasted the wsdl displayed in the browser to a file and named it Calculator.wsdl Okay all fine and dandy. Now, for the c++ client I use the following to generate the proxy classes. java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws Calculator.wsdl -lc++ -sclient Okay this generates fine and it compiles, once I put everything in the library path. From there I wrote the following client to call the calculator service. =20 #include "Calculator.hpp" #include int main() { printf("Instantiating Web Service"); Calculator ws( "http://localhost:8080/axis/Calculator.jws"); return 0; }=20 Actually, I stripped down the client to just to the point where I am getting the error, for I am not getting past the construction of the the Calculator object. Which was one of the objects generated by WSDL2Ws. I'm crashing at the following spot Calculator::Calculator(const char* pchEndpointUri, AXIS_PROTOCOL_TYPE eProtocol) --> :Stub(pchEndpointUri, eProtocol) { } Any clues?? ------_=_NextPart_001_01C7762C.61B5D6F0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Problems in trying to instantiate client stub object

I am trying to get Apace Axis for C++ = (ver. 1.6b) working.  My main goal, for now, is to get the simple = calculator example

working with my web service I deployed = on Tomcat.  To accomplish this, I wrote a simple java object = Calculator.java, which looks as follows.

public class Calculator {
  public int add(int i1, = int i2)
  {
    return i1 + = i2;
  }


  public int subtract(int = i1, int i2)
  {
    return i1 - = i2;
  }
}

From there I compiled and copied this = class to my <axis homedir> under my tomcat server.  I then = renamed this file
To Calculator.jws. 

From there I generated the wsdl using = the following link from a web browser
http://localhost:8080/axis/Calculator.jws?wsdl<= /A>

I then copied and pasted the wsdl = displayed in the browser to a file and named it Calculator.wsdl

Okay all fine and dandy.  Now, for = the c++ client I use the following to generate the proxy classes.

java org.apache.axis.wsdl.wsdl2ws.WSDL2Ws = Calculator.wsdl -lc++ -sclient

Okay this generates fine and it = compiles, once I put everything in the library path. From there I wrote = the following
client to call the calculator = service. 

#include = "Calculator.hpp"
#include<stdio.h>
int main()
 {
         printf("Instantiating Web Service");
         Calculator  ws( "
http://localhost:8080/axis/Calculator.jws");
         return 0;
 }


Actually, I stripped down the client to = just to the point where I am getting the error, for I am not getting = past the construction of the the Calculator object.  Which was one = of the objects generated by WSDL2Ws.

I'm crashing at the following = spot

Calculator::Calculator(const = char* pchEndpointUri, = AXIS_PROTOCOL_TYPE eProtocol)
-->   = :Stub(pchEndpointUri, eProtocol)
{
}

Any clues??


------_=_NextPart_001_01C7762C.61B5D6F0--