axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Titus Jakob" <titus.ja...@fh-aargau.ch>
Subject RE: client problem with C++-Client
Date Tue, 06 Jul 2004 08:05:47 GMT
Hi Susantha
thanks for  your mail > you are exactly right: WSDL2Ws created
Point3.cpp (which I include afterwords in the driver.cpp). 
I can errorless compile Point3, but I can NOT link it, as if the lib for

#include <axis/server/AxisWrapperAPI.h> was not available.
Titus

-----Original Message-----
From: axis-c-user-return-622-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-622-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Susantha Kumara
Sent: Dienstag, 6. Juli 2004 09:20
To: 'Apache AXIS C User List'
Subject: RE: client problem with C++-Client


It Seems that your WSDL has a complex type called Point3. The tool
should have created its serializer/deserialiser functions in a file
called Point3.cpp. You have not added this Point3.cpp to the Makefile or
vc project etc.

---
Susantha Kumara
Virtusa (pvt) Ltd.
Office : +94112714385
Mobile : +94777420453

> -----Original Message-----
> From: Titus Jakob [mailto:titus.jakob@fh-aargau.ch]
> Sent: Tuesday, July 06, 2004 12:14 PM
> To: 'Apache AXIS C User List'
> Subject: RE: client problem with C++-Client
> 
> Hi everybody
> I can now generate stubs in C++ containing complex data types
perfectly
> well. But when I want
> to compile them I run into the linker-errors mentioned below. Anybody 
> knows, what has to be done or what lib has to be included. I tried 
> with a special path to libexpat.lib, but without success. Titus
> 
> 
> 
>  Currency3.obj : error LNK2001: unresolved external symbol "int
__cdecl
> Axis_Serialize_Point3(class Point3 *,class IWrapperSoapSerializer 
> *,bool)"
> 
>
(?Axis_Serialize_Point3@@YAHPAVPoint3@@PAVIWrapperSoapSerializer@@_N@Z)
> Currency3.obj : error LNK2001: unresolved external symbol "void
__cdecl
> Axis_Delete_Point3(class Point3 *,bool,int)"
> (?Axis_Delete_Point3@@YAXPAVPoint3@@_NH@Z)
> Debug/CClient.exe : fatal error LNK1120: 2 unresolved externals Error 
> executing link.exe.
> 
> -----Original Message-----
> From: axis-c-user-return-619-titus.jakob=fh-aargau.ch@ws.apache.org
> [mailto:axis-c-user-return-619-titus.jakob=fh-aargau.ch@ws.apache.org]
> On Behalf Of rangika@opensource.lk
> Sent: Dienstag, 6. Juli 2004 06:37
> To: Apache AXIS C User List
> Subject: RE: client problem with C++-Client
> 
> 
> > Hi Susantha,
> 
> Thank you for finding the mistake in the Windows User Guide where 
> AxisXMLParser.dll has been typed as AxisXMLParse.dll.So sorry about
the
> typographical error.I was going through the Windows User Guide to
check
> whether there are any more typographical errors.Corrected that mistake

> and it will take some time for the change to be reflected in the site.
> 
> Rangika
> 
> 
> Hi Susantha
> > - Problem solved! The XML-Parser-dll should be renamed to 
> > AxisXMLParser.dll  (with 'r' )  and not AxisXMLParse.dll  as stated
in
> 
> > the manual.
> >
> > - other question: Have you expierience handling complex data types (

> > not only int, double, char etc)?
> >     - I tried method :  void RegisterPoint( Point p ) , where Point 
> > constist of two protected data-members of type int.
> >     - When I try to creat the stubs with WSDL2Ws I run in troubles.
> >     - Do you I have to serialize the whole stuff?...
> >
> > Thanks
> > Titus
> >
> >
> > Transport Library and Parser Library
> >
> > AxisTransport.dll (Which can be found at AXIS_EXTRACT/bin) should be

> > placed in the path, and be specified as the value to the key 
> > "Transport_http" in axiscpp.conf (AXIS_FOLDER/axiscpp.conf) Or in
the
> > same place as the client.exe. AxisXMLParser.dll ( Either one of 
> > AxisXMLParser_Expat.dll or AxisXMLParser_Xerces.dll should be
renamed
> > to AxisXMLParse.dll depending .....
> >
> >
> >
> >
> >
> > Could you send me the SOAP message if possible ?. Then I can see
what
> > is going wrong.
> >
> > Susantha
> > ---
> > -----Original Message-----
> > From: Titus Jakob [mailto:titus.jakob@fh-aargau.ch]
> > Sent: Thursday, July 01, 2004 6:42 PM
> > To: axis-c-user@ws.apache.org
> > Subject: 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 == m_pCall->checkMessage("multiplyResponse",
> > " <http://localhost:8080/axis/Currency2.jws>
> > 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>
> > http://localhost:8080/axis/Currency2.jws?WSDL -o./CurrencyCClient
> > -lc++ -sclient
> >
> >
> >
> >
> >
> >
> 




Mime
View raw message