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 Mike Marchywka <ma...@hotmail.com> on 2008/06/04 16:26:49 UTC
TRACE related defines in AxisTrace.h
Hi,
I downloaded the linux source the other day and am trying to build this under cygwin.
I don't have ant which AFAIK is your suggested build tool. However, most of the
stuff "just compiles" with a few minor issues in some things like time include files.
However, I encountered this thing and I'm not sure what to make of it.
I just want to write some simple test programs to exchange SOAP messages
with a remote server and would prefer to have any trace/debug tools enabled
but at this point a reference to doc's describing these defines would help. Thanks.
#ifdef AXISTRACE_LIBRARY
extern AxisTraceEntrypoints *g_traceEntrypoints;
#elif !defined(AXIS_CLIENTC_LIB)
extern AxisTraceEntrypoints g_traceEntrypoints;
#endif
#ifdef AXISTRACE_LIBRARY_MAINENTRYPOINT
AxisTraceEntrypoints *g_traceEntrypoints = NULL;
#endif
$ for f in `ls *.cpp`; do g=`echo $f| sed -e 's/\.cpp/.o/'` ; if [ ! -e $g ] ;
then echo $f; g++ -D__CYGWIN__ -I../../../include -c $f ; fi ; done
ChannelFactory.cpp
HTTPTransport.cpp
HTTPTransportException.cpp
HTTPTransportInstantiator.cpp
In file included from HTTPTransportInstantiator.cpp:27:
../../common/AxisTrace.h:126: error: conflicting declaration 'axiscpp::AxisTrace
Entrypoints*axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:122: error: 'axiscpp::g_traceEntrypoints' has a previou
s declaration as `axiscpp::AxisTraceEntrypoints axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:126: error: type mismatch with previous external decl o
f `axiscpp::AxisTraceEntrypoints*axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:122: error: previous external decl of `axiscpp::AxisTra
ceEntrypoints axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:126: error: declaration of `axiscpp::AxisTraceEntrypoin
ts*axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:122: error: conflicts with previous declaration `axiscp
p::AxisTraceEntrypoints axiscpp::g_traceEntrypoints'
URL.cpp
AxisConfig.h has this little comment at top,
#ifdef ENABLE_AXISTRACE
/* TRACE ADDED BY THE TRACE INSTRUMENTOR TOOL */
#include "../common/AxisTrace.h"
#endif
Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka@hotmail.com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try me on marchywka@yahoo.com if no reply
here. Thanks.
_________________________________________________________________
Enjoy 5 GB of free, password-protected online storage.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
RE: TRACE related defines in AxisTrace.h
Posted by Mike Marchywka <ma...@hotmail.com>.
> Mike, if you did not download the source from subversion I would really
Thanks, but I just took the two most recent tarballs for c++ and java.
In any case, if it is just a generator bug I'm happy for now. I can't believe I hand
generated ( no ant or build tool ) 3 dll's under cygwin and got a program that seems to run- the calculator
example hit my echo program with credible xml ( I didn't try to build the mock server,
I have listeners for basic stuff).
As long as I know that these are just little items I think I will push through to
a proof of concept app and then go back and repeat everything more cleanly.
I can fix the generated code as long as I have some idea what I'm doing.
Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka@hotmail.com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try me on marchywka@yahoo.com if no reply
here. Thanks.
> Subject: RE: TRACE related defines in AxisTrace.h
> Date: Thu, 5 Jun 2008 09:54:21 -0600
> From: rmccullough@rightnow.com
> To: axis-c-user@ws.apache.org
>
> Mike, if you did not download the source from subversion I would really
> recommend you do so. The distributions available for download on the site
> are very old. The newer subversion files have several bugs fixed from the
> distributions and the WSDL2Ws tool generates much better (read more correct)
> soap stubs.
>
> -Ryan
>
_________________________________________________________________
Instantly invite friends from Facebook and other social networks to join you on Windows Live⢠Messenger.
https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
RE: TRACE related defines in AxisTrace.h
Posted by "McCullough, Ryan" <rm...@rightnow.com>.
Mike, if you did not download the source from subversion I would really
recommend you do so. The distributions available for download on the site
are very old. The newer subversion files have several bugs fixed from the
distributions and the WSDL2Ws tool generates much better (read more correct)
soap stubs.
-Ryan
-----Original Message-----
From: Mike Marchywka [mailto:marchywka@hotmail.com]
Sent: Wednesday, June 04, 2008 8:27 AM
To: axis-c-user@ws.apache.org
Subject: TRACE related defines in AxisTrace.h
Hi,
I downloaded the linux source the other day and am trying to build this
under cygwin.
I don't have ant which AFAIK is your suggested build tool. However, most of
the
stuff "just compiles" with a few minor issues in some things like time
include files.
However, I encountered this thing and I'm not sure what to make of it.
I just want to write some simple test programs to exchange SOAP messages
with a remote server and would prefer to have any trace/debug tools enabled
but at this point a reference to doc's describing these defines would help.
Thanks.
#ifdef AXISTRACE_LIBRARY
extern AxisTraceEntrypoints *g_traceEntrypoints;
#elif !defined(AXIS_CLIENTC_LIB)
extern AxisTraceEntrypoints g_traceEntrypoints;
#endif
#ifdef AXISTRACE_LIBRARY_MAINENTRYPOINT
AxisTraceEntrypoints *g_traceEntrypoints = NULL;
#endif
$ for f in `ls *.cpp`; do g=`echo $f| sed -e 's/\.cpp/.o/'` ; if [ ! -e $g ]
;
then echo $f; g++ -D__CYGWIN__ -I../../../include -c $f ; fi ; done
ChannelFactory.cpp
HTTPTransport.cpp
HTTPTransportException.cpp
HTTPTransportInstantiator.cpp
In file included from HTTPTransportInstantiator.cpp:27:
../../common/AxisTrace.h:126: error: conflicting declaration
'axiscpp::AxisTrace
Entrypoints*axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:122: error: 'axiscpp::g_traceEntrypoints' has a
previou
s declaration as `axiscpp::AxisTraceEntrypoints axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:126: error: type mismatch with previous external
decl o
f `axiscpp::AxisTraceEntrypoints*axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:122: error: previous external decl of
`axiscpp::AxisTra
ceEntrypoints axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:126: error: declaration of
`axiscpp::AxisTraceEntrypoin
ts*axiscpp::g_traceEntrypoints'
../../common/AxisTrace.h:122: error: conflicts with previous declaration
`axiscp
p::AxisTraceEntrypoints axiscpp::g_traceEntrypoints'
URL.cpp
AxisConfig.h has this little comment at top,
#ifdef ENABLE_AXISTRACE
/* TRACE ADDED BY THE TRACE INSTRUMENTOR TOOL */
#include "../common/AxisTrace.h"
#endif
Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka@hotmail.com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try me on marchywka@yahoo.com if no reply
here. Thanks.
_________________________________________________________________
Enjoy 5 GB of free, password-protected online storage.
http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_
skydrive_062008
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
RE: xsd__string definition and geneated files.
Posted by Mike Marchywka <ma...@hotmail.com>.
> To: axis-c-user@ws.apache.org
> Subject: Re: xsd__string definition and geneated files.
> From: amra@us.ibm.com
> Date: Wed, 4 Jun 2008 18:41:23 -0500
>
> Mike,
>
> I assume your are using AXIS C++. If so, ensure you have built the
> binaries from the latest codbase in SVN by using ant to build the product.
Well, I thought there could be a versioning problem as I had, IIRC, 1.6 for the c++ code
and 1.4 was listed as the latest java release ( but this seems to be more recent than the c++ code).
I can't release the WSDL but it appears to be an issue with how to handle the char* return value.
It only depends on the java code generators and then the compile depends on the c++ include files,
not the results of the build ( AFAIK, unless there is a config script which modifies the include files,
but I checked for obvious issues with #ifdef's and conditional compilation and strings didn't appear
to be conditional ).
> Then see what is generated. If you have a problem would need to see wsdl
> and how you are generating the stubs.
AFAIK, the wsdl has been used with java but again I can't release it. A quick scan didn't show anything
obviously quirky about the string fields.
I also discovered that variables were on occasion redecelared in the same scope, but this is
easy to fix by hand. It would also suggest either a quirk of the wsdl file or a possible versioning
problem ( I had to manually collect jar files ).
>> but the related method is returning a thing, not a ptr,
>>
>> virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName,
>> const AxisChar* pNamespace)=0;
Should this return a ptr or a thing?
Thanks.
>
> Nadir Amra
> Integrated Web services for i5/OS
> IBM Rochester, MN, (Tel. 507-253-0645, t/l 553-0645)
> Internet: amra@us.ibm.com
>
> Mike Marchywka wrote on 06/04/2008 01:30:34 PM:
>
>>
>> Hi,
>> It looks like I was able to generate the needed files from my wsdl file
>> but ran into a problem with the string related code. I thought I
>> could figure this
>> out as some problem with typedefs but it isn't immediately obvious
>> how to fix this.
>>
>> The generated code seems to expect pointers to things,
>>
>> xsd__int* p_afImpressionReviewPeriod =
>> (pIWSDZ->getElementAsInt("afImpressionReviewPeriod",0));
>> param->afImpressionReviewPeriod = *p_afImpressionReviewPeriod;
>> delete p_afImpressionReviewPeriod;
>> xsd__string* p_bannerCustomFields =
>> (pIWSDZ->getElementAsString("bannerCustomFields",0));
>> param->bannerCustomFields = *p_bannerCustomFields;
>>
>> but the related method is returning a thing, not a ptr,
>>
>> virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName,
>> const AxisChar* pNamespace)=0;
>>
>>
>> Is there a simple reason for this? I can't find obvious conditionals
>> in the axis code or the WSDL2Ws
>> program to make this match.
>>
>> Thanks.
>>
>> Mike Marchywka
>> 586 Saint James Walk
>> Marietta GA 30067-7165
>> 404-788-1216 (C)<- leave message
>> 989-348-4796 (P)<- emergency only
>> marchywka@hotmail.com
>> Note: If I am asking for free stuff, I normally use for hobby/non-profit
>> information but may use in investment forums, public and private.
>> Please indicate any concerns if applicable.
>> Note: Hotmail is possibly blocking my mom's entire
>> ISP - try me on marchywka@yahoo.com if no reply
>> here. Thanks.
>>
>> _________________________________________________________________
>> Search that pays you back! Introducing Live Search cashback.
>> http://search.live.com/cashback/?
>> &pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
_________________________________________________________________
Search that pays you back! Introducing Live Search cashback.
http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
Re: xsd__string definition and geneated files.
Posted by Nadir Amra <am...@us.ibm.com>.
Mike,
I assume your are using AXIS C++. If so, ensure you have built the
binaries from the latest codbase in SVN by using ant to build the product.
Then see what is generated. If you have a problem would need to see wsdl
and how you are generating the stubs.
Nadir Amra
Integrated Web services for i5/OS
IBM Rochester, MN, (Tel. 507-253-0645, t/l 553-0645)
Internet: amra@us.ibm.com
Mike Marchywka <ma...@hotmail.com> wrote on 06/04/2008 01:30:34 PM:
>
> Hi,
> It looks like I was able to generate the needed files from my wsdl file
> but ran into a problem with the string related code. I thought I
> could figure this
> out as some problem with typedefs but it isn't immediately obvious
> how to fix this.
>
> The generated code seems to expect pointers to things,
>
> xsd__int* p_afImpressionReviewPeriod =
> (pIWSDZ->getElementAsInt("afImpressionReviewPeriod",0));
> param->afImpressionReviewPeriod = *p_afImpressionReviewPeriod;
> delete p_afImpressionReviewPeriod;
> xsd__string* p_bannerCustomFields =
> (pIWSDZ->getElementAsString("bannerCustomFields",0));
> param->bannerCustomFields = *p_bannerCustomFields;
>
> but the related method is returning a thing, not a ptr,
>
> virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName,
> const AxisChar* pNamespace)=0;
>
>
> Is there a simple reason for this? I can't find obvious conditionals
> in the axis code or the WSDL2Ws
> program to make this match.
>
> Thanks.
>
> Mike Marchywka
> 586 Saint James Walk
> Marietta GA 30067-7165
> 404-788-1216 (C)<- leave message
> 989-348-4796 (P)<- emergency only
> marchywka@hotmail.com
> Note: If I am asking for free stuff, I normally use for hobby/non-profit
> information but may use in investment forums, public and private.
> Please indicate any concerns if applicable.
> Note: Hotmail is possibly blocking my mom's entire
> ISP - try me on marchywka@yahoo.com if no reply
> here. Thanks.
>
> _________________________________________________________________
> Search that pays you back! Introducing Live Search cashback.
> http://search.live.com/cashback/?
> &pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-c-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org
xsd__string definition and geneated files.
Posted by Mike Marchywka <ma...@hotmail.com>.
Hi,
It looks like I was able to generate the needed files from my wsdl file
but ran into a problem with the string related code. I thought I could figure this
out as some problem with typedefs but it isn't immediately obvious how to fix this.
The generated code seems to expect pointers to things,
xsd__int* p_afImpressionReviewPeriod = (pIWSDZ->getElementAsInt("afImpressionReviewPeriod",0));
param->afImpressionReviewPeriod = *p_afImpressionReviewPeriod;
delete p_afImpressionReviewPeriod;
xsd__string* p_bannerCustomFields = (pIWSDZ->getElementAsString("bannerCustomFields",0));
param->bannerCustomFields = *p_bannerCustomFields;
but the related method is returning a thing, not a ptr,
virtual xsd__string AXISCALL getElementAsString(const AxisChar* pName,
const AxisChar* pNamespace)=0;
Is there a simple reason for this? I can't find obvious conditionals in the axis code or the WSDL2Ws
program to make this match.
Thanks.
Mike Marchywka
586 Saint James Walk
Marietta GA 30067-7165
404-788-1216 (C)<- leave message
989-348-4796 (P)<- emergency only
marchywka@hotmail.com
Note: If I am asking for free stuff, I normally use for hobby/non-profit
information but may use in investment forums, public and private.
Please indicate any concerns if applicable.
Note: Hotmail is possibly blocking my mom's entire
ISP - try me on marchywka@yahoo.com if no reply
here. Thanks.
_________________________________________________________________
Search that pays you back! Introducing Live Search cashback.
http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org