You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Titus Jakob <ti...@fh-aargau.ch> on 2004/07/01 14:41:57 UTC
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"))
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
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
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
> >
> >
> >
> >
> >
> >
>
RE: client problem with C++-Client
Posted by Susantha Kumara <su...@opensource.lk>.
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
> >
> >
> >
> >
> >
> >
>
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
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
>
>
>
>
>
>
RE: client problem with C++-Client
Posted by ra...@opensource.lk.
> 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
>
>
>
>
>
>
e.getExceptionCode() returns 51
Posted by Titus Jakob <ti...@fh-aargau.ch>.
hi everybody
running the stub I run into a value of 51
int iExceptionCode = e.getExceptionCode();
sombody who could help me.
Thanks
-----Original Message-----
From: axis-c-user-return-627-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-627-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Roshan Weerasuriya
Sent: Dienstag, 6. Juli 2004 15:38
To: Apache AXIS C User List
Subject: RE: client problem with C++-Client
hi Titus,
Actualy what I requested was not the generated files.What I requestd was
the WSDL fiel. Can you attach the WSDL file which you are using to
generate your Stubs/Skelitons?
Roshan
On Tue, 2004-07-06 at 14:19, Titus Jakob wrote:
> Hi Roshan
> Since I can not send a *.zip I send you all the *.h and *.cpp files of
> my vc-project. I can not link the whole stuff.
> Tiuts
>
> -----Original Message-----
> From: axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org
> [mailto:axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org]
> On Behalf Of Roshan Weerasuriya
> Sent: Dienstag, 6. Juli 2004 09:31
> To: Apache AXIS C User List
> Subject: RE: client problem with C++-Client
>
>
> hi Titus,
>
> Can you send the wsdl which you are using?
>
> Roshan
>
> On Mon, 2004-07-05 at 12:09, Titus Jakob wrote:
> > 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"))
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> >
>
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
Hi Roshan
thanks for your help. This problem is solved ... yesterday night, very
late...> shame on me: I had just missed to include a file in the
vc-project.
Not everthing is working now, but I am a step further.
Titus
-----Original Message-----
From: axis-c-user-return-627-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-627-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Roshan Weerasuriya
Sent: Dienstag, 6. Juli 2004 15:38
To: Apache AXIS C User List
Subject: RE: client problem with C++-Client
hi Titus,
Actualy what I requested was not the generated files.What I requestd was
the WSDL fiel. Can you attach the WSDL file which you are using to
generate your Stubs/Skelitons?
Roshan
On Tue, 2004-07-06 at 14:19, Titus Jakob wrote:
> Hi Roshan
> Since I can not send a *.zip I send you all the *.h and *.cpp files of
> my vc-project. I can not link the whole stuff.
> Tiuts
>
> -----Original Message-----
> From: axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org
> [mailto:axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org]
> On Behalf Of Roshan Weerasuriya
> Sent: Dienstag, 6. Juli 2004 09:31
> To: Apache AXIS C User List
> Subject: RE: client problem with C++-Client
>
>
> hi Titus,
>
> Can you send the wsdl which you are using?
>
> Roshan
>
> On Mon, 2004-07-05 at 12:09, Titus Jakob wrote:
> > 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"))
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> >
>
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
thanks I will read and try
Titus
-----Original Message-----
From: axis-c-user-return-637-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-637-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Ashish Rangole
Sent: Mittwoch, 7. Juli 2004 20:53
To: Apache AXIS C User List; titus.jakob@fh-aargau.ch
Subject: Re: client problem with C++-Client
Titus,
You need to declare the deserializer for class Point3
in your wsdd file for the service. Read Axis java documentation (User's
manual) for details.
Ashish
Titus Jakob wrote:
> Hi Everybody
> has somebody experience with the error stated below? I have a
> WS-Server in Java, and a client in C++. When calling the operation the
> error is visible in the java-answer. Would highly appreciate any
> hints. Titus
>
> <faultstring>org.xml.sax.SAXException: Deserializing parameter
> 'Point3': could not find deserializer for type
> {http://DefaultNamespace}Point3</faultstring>
>
>
>
--
--------------------------------------------------
Ashish Rangole
Vexcel Corporation - Image Information Engineering
1690 38th Street, Boulder CO 80301, USA
phone: 303-583-0286 fax: 303-583-0246
Vexcel's home page: http://www.vexcel.com
--------------------------------------------------
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
HI Ashish
Complex elements:
I read the docu and tried quite a lot, without success. Do you have an
example for me?
Whould highly appreciate
Titus
-----Original Message-----
From: axis-c-user-return-637-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-637-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Ashish Rangole
Sent: Mittwoch, 7. Juli 2004 20:53
To: Apache AXIS C User List; titus.jakob@fh-aargau.ch
Subject: Re: client problem with C++-Client
Titus,
You need to declare the deserializer for class Point3
in your wsdd file for the service. Read Axis java documentation (User's
manual) for details.
Ashish
Titus Jakob wrote:
> Hi Everybody
> has somebody experience with the error stated below? I have a
> WS-Server in Java, and a client in C++. When calling the operation the
> error is visible in the java-answer. Would highly appreciate any
> hints. Titus
>
> <faultstring>org.xml.sax.SAXException: Deserializing parameter
> 'Point3': could not find deserializer for type
> {http://DefaultNamespace}Point3</faultstring>
>
>
>
--
--------------------------------------------------
Ashish Rangole
Vexcel Corporation - Image Information Engineering
1690 38th Street, Boulder CO 80301, USA
phone: 303-583-0286 fax: 303-583-0246
Vexcel's home page: http://www.vexcel.com
--------------------------------------------------
Re: client problem with C++-Client
Posted by Ashish Rangole <as...@vexcel.com>.
Titus,
You need to declare the deserializer for class Point3
in your wsdd file for the service. Read Axis java documentation
(User's manual) for details.
Ashish
Titus Jakob wrote:
> Hi Everybody
> has somebody experience with the error stated below? I have a WS-Server
> in Java, and a client in C++. When calling the operation the error is
> visible in the java-answer.
> Would highly appreciate any hints.
> Titus
>
> <faultstring>org.xml.sax.SAXException: Deserializing parameter
> 'Point3': could not find deserializer for type
> {http://DefaultNamespace}Point3</faultstring>
>
>
>
--
--------------------------------------------------
Ashish Rangole
Vexcel Corporation - Image Information Engineering
1690 38th Street, Boulder CO 80301, USA
phone: 303-583-0286 fax: 303-583-0246
Vexcel's home page: http://www.vexcel.com
--------------------------------------------------
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
Hi Everybody
has somebody experience with the error stated below? I have a WS-Server
in Java, and a client in C++. When calling the operation the error is
visible in the java-answer.
Would highly appreciate any hints.
Titus
<faultstring>org.xml.sax.SAXException: Deserializing parameter
'Point3': could not find deserializer for type
{http://DefaultNamespace}Point3</faultstring>
RE: client problem with C++-Client
Posted by Roshan Weerasuriya <ro...@opensource.lk>.
hi Titus,
Actualy what I requested was not the generated files.What I requestd was
the WSDL fiel. Can you attach the WSDL file which you are using to
generate your Stubs/Skelitons?
Roshan
On Tue, 2004-07-06 at 14:19, Titus Jakob wrote:
> Hi Roshan
> Since I can not send a *.zip I send you all the *.h and *.cpp files of
> my vc-project.
> I can not link the whole stuff.
> Tiuts
>
> -----Original Message-----
> From: axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org
> [mailto:axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org]
> On Behalf Of Roshan Weerasuriya
> Sent: Dienstag, 6. Juli 2004 09:31
> To: Apache AXIS C User List
> Subject: RE: client problem with C++-Client
>
>
> hi Titus,
>
> Can you send the wsdl which you are using?
>
> Roshan
>
> On Mon, 2004-07-05 at 12:09, Titus Jakob wrote:
> > 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"))
> >
> >
> >
> > 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
> >
> >
> >
> >
> >
> >
>
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
Hi Roshan
Since I can not send a *.zip I send you all the *.h and *.cpp files of
my vc-project.
I can not link the whole stuff.
Tiuts
-----Original Message-----
From: axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org
[mailto:axis-c-user-return-623-titus.jakob=fh-aargau.ch@ws.apache.org]
On Behalf Of Roshan Weerasuriya
Sent: Dienstag, 6. Juli 2004 09:31
To: Apache AXIS C User List
Subject: RE: client problem with C++-Client
hi Titus,
Can you send the wsdl which you are using?
Roshan
On Mon, 2004-07-05 at 12:09, Titus Jakob wrote:
> 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"))
>
>
>
> 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
>
>
>
>
>
>
RE: client problem with C++-Client
Posted by Roshan Weerasuriya <ro...@opensource.lk>.
hi Titus,
Can you send the wsdl which you are using?
Roshan
On Mon, 2004-07-05 at 12:09, Titus Jakob wrote:
> 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"))
>
>
>
> 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
>
>
>
>
>
>
RE: client problem with C++-Client
Posted by Titus Jakob <ti...@fh-aargau.ch>.
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
RE: client problem with C++-Client
Posted by Susantha Kumara <su...@opensource.lk>.
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