[Axis2] Endpoint ref service URI truncated

2006-11-23 Thread Andrew Borley

Hi,

It looks like Axis2/C is truncating the query part of the URI I'm
setting in the endpoint ref of my client.
My code is something like:

char* address = "http://server:port/path/to/services?servicename=Name";;
axis2_endpoint_ref_t* endpoint_ref = axis2_endpoint_ref_create(env, address);

/* Set options */
AXIS2_OPTIONS_SET_TO(options, env, endpoint_ref);

...
axiom_node_t* ret_node = AXIS2_SVC_CLIENT_SEND_RECEIVE(svc_client,
env, payload);

But using a TCP monitor, the first line of the HTTP header looks like:
POST /path/to/services HTTP/1.0

Should this not be "/path/to/services?servicename=Name" ? I know this
is mixing the GET and POST syntax, but the service I'm working with
currently requires this query.

Can anyone help?

Thanks

Andy

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [Axis2] Calling one service from another

2006-07-13 Thread Andrew Borley
Hi Sahan,Thanks for your suggestion, but it doesn't seem to work I'm afraid - I get the same problem whether I do the DETACH before or after the AXIS2_SVC_CLIENT_FREE.CheersAndrew
On 7/11/06, Sahan Gamage <[EMAIL PROTECTED]> wrote:
Hi,The problem may be that the ret_node returned by the svc_client is apart of the om tree which attached svc_client. When you free thesvc_client the om_tree is also freed. To prevent that, try detaching the
ret_node from the internal tree. AXIOM_NODE_DETACH()- sahanAndrew Borley wrote:> Hi,>> I'm using Axis2C 0.92 and trying to call another service from within> my service. The call to my final service works correctly but then the
> intermediary service fails when Axis2 tries to return the response to> the original client. This happens after my skeleton invoke method> returns.> I can fix my problem by commenting out the call to
> AXIS2_SVC_CLIENT_FREE in my intermediary service, but then I have> memory leaks.> I have included my service & skeleton code.>> Does anyone know what's going on? Can anyone help?
>> Thanks>> Andrew>>>>->To unsubscribe, e-mail: 
[EMAIL PROTECTED]>For additional commands, e-mail: [EMAIL PROTECTED]
>-To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: 
[EMAIL PROTECTED]


[Axis2] Calling one service from another

2006-07-11 Thread Andrew Borley
Hi,I'm using Axis2C 0.92 and trying to call another service from within my service. The call to my final service works correctly but then the intermediary service fails when Axis2 tries to return the response to the original client. This happens after my skeleton invoke method returns. 
I can fix my problem by commenting out the call to AXIS2_SVC_CLIENT_FREE in my intermediary service, but then I have memory leaks.I have included my service & skeleton code. Does anyone know what's going on? Can anyone help? 
ThanksAndrew


echo.c
Description: Binary data


echo_skeleton.c
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Axis2] Deploying in Apache httpd

2006-05-31 Thread Andrew Borley
Hi Sahan,Yes, I have those 3 dlls in my D:\libs\axis2c-bin-0.91-win32\lib directory, which itself is on the PATH env variable. I have also added the D:\libs\iconv-1.9.2.win32\bin, D:\libs\libxml2-2.6.24.win32\bin and D:\libs\libxml2-
2.6.24.win32\bin directories onto my PATH, which also hasn't helped.I can happily run the axis2_http_server.exe with no problems.Running a syntax check on my httpd config file (E:/ApacheHTTPD2.2/bin/httpd.exe -t) gives the following error:
httpd.exe: Syntax error on line 117 of E:/ApacheHTTPD2.2/conf/httpd.conf: Cannot load E:/ApacheHTTPD2.2/modules/mod_axis2.so into server: The specified procedure could not be found.Doing a google, could it be that mod_axis.dll was compiled against 
Apache2.0.x? There a couple of reports about problems when going from 2.0.x to 2.2.x. If so, I'll pull down the Axis 0.91 src and compile against Apache 2.2CheersAndrew
On 5/31/06, Sahan Gamage <[EMAIL PROTECTED]> wrote:
Hi Andrew,Pls check whether you have done the following.- Do you have libxml2.dll, iconv.dll and zlib1.dll in you system. If notso download those files and put in the %PATH% (We use libxml2 as parser
and other dll's are required by libxml2 to work)- Did you set the %PATH% env variable to point to the libs directory inaxis2c distro (D:\libs\axis2c-bin-0.91-win32\lib)As a diagnostic try running the axis2_http_server.exe in the bin
directory and see whether it starts properly.- SahanAndrew Borley wrote:> Hi All,>> I'm trying to deploy Axis2c into apache web server, but something> isn't very happy - I'm on WinXP and have Apache HTTP Server 
2.2 which> works fine until I try to deploy Axis2C to it. I'm using the binary> 0.91 package and have copied the mod_axis2.dll to my apache2/modules> directory and renamed it from .dll to .so. I have also edited my
> apache2/conf/httpd.conf file with the following lines:>> LoadModule axis2_module   modules/mod_axis2.so>> and>> > SetHandler axis2_module
> RepoPath D:/libs/axis2c-bin-0.91-win32> LogFile D:/libs/axis2c-bin-0.91-win32/logs/axis2.httpd.log> Axis2LogLevel AXIS2_LOG_LEVEL_INFO> >> With these lines added in to 
httpd.conf Apache now refuses to start,> with the message: "The Apache2.2 service terminated with> service-specific error 1 (0x1).", remove them and the server starts up> happily.> I can't see anything in the axis or httpd logs. Anyone have any ideas?
> Is my RepoPath setting correct?>> Many thanks,>> Andrew---------To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- 
Cheers,Andrew Borley


[Axis2] Deploying in Apache httpd

2006-05-31 Thread Andrew Borley
Hi All,I'm trying to deploy Axis2c into apache web server, but something isn't very happy - I'm on WinXP and have Apache HTTP Server 2.2 which works fine until I try to deploy Axis2C to it. I'm using the binary 0.91
 package and have copied the mod_axis2.dll to my apache2/modules directory and renamed it from .dll to .so.  I have also edited my apache2/conf/httpd.conf file with the following lines:LoadModule axis2_module   modules/mod_axis2.so
andSetHandler axis2_moduleRepoPath D:/libs/axis2c-bin-0.91-win32LogFile D:/libs/axis2c-bin-0.91-win32/logs/axis2.httpd.logAxis2LogLevel AXIS2_LOG_LEVEL_INFO
With these lines added in to httpd.conf Apache now refuses to start, with the message: "The Apache2.2 service terminated with service-specific error 1 (0x1).", remove them and the server starts up happily.
I can't see anything in the axis or httpd logs. Anyone have any ideas? Is my RepoPath setting correct? Many thanks,Andrew


Re: [Axis2] Building samples in MS Visual Studio]

2006-05-22 Thread Andrew Borley
Hi Samisa,I've managed to get it running! My issue was that in MSVC++ the default build setting is to "Compile as C++ Code". Changing to "Compile as C code" makes it work.When I started looking at Axis2C I used the defaults ("Compile as C++ Code") and got  some conversion errors:
d:\cpp\EchoWebService\echo_skeleton.c(53) : error C2440: '=' : cannot convert from 'void *' to 'axis2_svc_skeleton_t *'    Conversion from 'void*' to pointer to non-'void' requires an explicit castd:\cpp\EchoWebService\echo_skeleton.c(56) : error C2440: '=' : cannot convert from 'void *' to 'axis2_svc_skeleton_ops_t *'
    Conversion from 'void*' to pointer to non-'void' requires an explicit castSo, (late on Friday afternoon) I took the advice and added some explicit casting to the failing lines.  This makes the build happy and I have a nice dll (built as C++) that doesn't work.
When you asked me if the code was the same as the sample I checked it over and discovered these extra casts. Removing them makes the "Compile as C++" fail again, but discovering and changing to the "Compile as C" setting and it's all working fine.
So the moral is: check what the default settings are!Thanks for the helpAndrewOn 5/22/06, Samisa Abeysinghe <
[EMAIL PROTECTED]> wrote:I tried this on Windows. It looks to me the kind of error that you are
getting is given when the DLL is corrupted or it does not implementthe expected format.Please double check the DLL.Have you used the same code as the sample or did you modify it? If youmodified, please send the code.
Thanks,Samisa...-- Forwarded message --From: "Andrew Borley" <[EMAIL PROTECTED]>To: "Apache AXIS C User List" <
axis-c-user@ws.apache.org>Date: Mon, 22 May 2006 14:27:46 +0100Subject: Re: [Axis2] Building samples in MS Visual StudioHi Sahan,Thanks for the reply. I've been putting my built dll into a directory
called $AXIS2_HOME/services/EchoWebService with the dll name asEchoWebService.dll and the services.xml file containing the following:EchoWebService
   This is a testing service , to test the system is working or not   
http://ws.apache.org/axis2/c/samples/echoString
I removed the original echo sample (in case there was some clashhappening) and the code itself is exactly the same as the sample, butI'm still getting this error. I attach the full axis2.log
 trace file.ThanksAndrewOn 5/22/06, Sahan Gamage <[EMAIL PROTECTED]> wrote:> Hi Andrew,>> Where did you put the built dll ? The location should be
> $AXIS2_HOME/services/echo/  If you haven't put the dll in there try> putting it there. If that doesn't solve the problem let us have the> complete log file so that we might be able to locate what went wrong.
> IIRC there are no special options (or compiler flags) other than> standard MSVC stuff when building services.> - Sahan>> Andrew Borley wrote:>> > Hi All,> >
> > I'm trying to get going with Axis2C (0.91) and have started by> > attempting to build and run the echo sample in MS Visual C++ .NET> > v7.1. I can build a dll, deploy it into the sample http server, and
> > see the service in the list at http://localhost:9090/axis2/services> > but I can't invoke the service. I get an "out of memory" error in the
> > axis2.log file, shown below. On other occasions I've received the> > message "dll description has invalid state of not having valid dll> > create function, of valid delete function or valid dll_handler" at the
> > same point (which may mean more). I'm guessing there is some issue> > with how I'm building my dll, but I've tried various options and> > haven't yet had any success.> >> > Can anyone help?
> >> > Many thanks> >> > Andrew Borley> >-To unsubscribe, e-mail: 
[EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]-- 
Cheers,Andrew Borley


Re: [Axis2] Building samples in MS Visual Studio

2006-05-22 Thread Andrew Borley
Hi Sahan,Thanks for the reply. I've been putting my built dll into a directory called $AXIS2_HOME/services/EchoWebService with the dll name as EchoWebService.dll and the services.xml file containing the following:
    EchoWebService       This is a testing service , to test the system is working or not
               
http://ws.apache.org/axis2/c/samples/echoString    I removed the original echo sample (in case there was some clash happening) and the code itself is exactly the same as the sample, but I'm still getting this error. I attach the full 
axis2.log trace file.ThanksAndrewOn 5/22/06, Sahan Gamage <[EMAIL PROTECTED]> wrote:
Hi Andrew,Where did you put the built dll ? The location should be$AXIS2_HOME/services/echo/  If you haven't put the dll in there try
putting it there. If that doesn't solve the problem let us have thecomplete log file so that we might be able to locate what went wrong.IIRC there are no special options (or compiler flags) other thanstandard MSVC stuff when building services.
- SahanAndrew Borley wrote:> Hi All,>> I'm trying to get going with Axis2C (0.91) and have started by> attempting to build and run the echo sample in MS Visual C++ .NET> 
v7.1. I can build a dll, deploy it into the sample http server, and> see the service in the list at http://localhost:9090/axis2/services> but I can't invoke the service. I get an "out of memory" error in the
> axis2.log file, shown below. On other occasions I've received the> message "dll description has invalid state of not having valid dll> create function, of valid delete function or valid dll_handler" at the
> same point (which may mean more). I'm guessing there is some issue> with how I'm building my dll, but I've tried various options and> haven't yet had any success.>> Can anyone help?
>> Many thanks>> Andrew Borley>>> [Mon May 22 11:45:37 2006] [info]  Starting HTTP server thread> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\transport\http\http_worker.c(191) Client HTTP
> version HTTP/1.1> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\xml\soap\soap_builder.c(840) identified soap version is> soap12> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\engine.c(881) Invoking phase TransportIn
> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\engine.c(881) Invoking phase PreDispatch> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\phase.c(338) Invoke the handler
> AddressingInHandler within the phase PreDispatch> [Mon May 22 11:45:54 2006] [info]  Starting addressing in handler> .> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\engine.c(881) Invoking phase Dispatch
> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\phase.c(338) Invoke the handler> addressing_based_dispatcher within the phase Dispatch> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\addr_disp.c(110) Checking for service using
> WSA enpoint address :> http://localhost:9090/axis2/services/EchoWebService> <
http://localhost:9090/axis2/services/EchoWebService>> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\addr_disp.c(140) Service found using WSA> enpoint address> [Mon May 22 11:45:54 2006] [debug]
> ..\..\modules\core\engine\addr_disp.c(182) Checking for operation> using WSA Action : http://ws.apache.org/axis2/c/samples/echoString> [Mon May 22 11:45:54 2006] [debug]
> ..\..\modules\core\engine\addr_disp.c(188) Operation found using WSA> Action> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\phase.c(338) Invoke the handler> request_uri_based_dispatcher within the phase Dispatch
> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\phase.c(338) Invoke the handler> soap_action_based_dispatcher within the phase Dispatch> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\phase.c(338) Invoke the handler
> soap_message_body_based_dispatcher within the phase Dispatch> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\engine.c(881) Invoking phase PostDispatch> [Mon May 22 11:45:54 2006] [debug]
> ..\..\modules\core\engine\phase.c(338) Invoke the handler> dispatch_post_conditions_evaluator within the phase PostDispatch> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\phase.c(338) Invoke the handler
> context_handler within the phase PostDispatch> [Mon May 22 11:45:54 2006] [debug]> ..\..\modules\core\engine\engine.c(881) Invoking phase PolicyDetermination> [Mon May 22 11:45:54 2006] [error]
> ..\..\modules\core\receivers\raw_xml_in_out_msg_recv.c(99) Impl object> for service not set in message receiver 1 :: Out of memory> [Mon May 22 11:45:54 2006] [debug]&g

[Axis2] Building samples in MS Visual Studio

2006-05-22 Thread Andrew Borley
Hi All,I'm trying to get going with Axis2C (0.91) and have started by attempting to build and run the echo sample in MS Visual C++ .NET v7.1. I can build a dll, deploy it into the sample http server, and see the service in the list at 
http://localhost:9090/axis2/services but I can't invoke the service. I get an "out of memory" error in the axis2.log file, shown below. On other occasions I've received the message "dll description has invalid state of not having valid dll create function, of valid delete function or valid dll_handler" at the same point (which may mean more). I'm guessing there is some issue with how I'm building my dll, but I've tried various options and haven't yet had any success.
Can anyone help?Many thanksAndrew Borley[Mon May 22 11:45:37 2006] [info]  Starting HTTP server thread[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\transport\http\http_worker.c(191) Client HTTP version HTTP/1.1
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\xml\soap\soap_builder.c(840) identified soap version is soap12[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase TransportIn
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase PreDispatch[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler AddressingInHandler within the phase PreDispatch
[Mon May 22 11:45:54 2006] [info]  Starting addressing in handler .[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase Dispatch[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler addressing_based_dispatcher within the phase Dispatch
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\addr_disp.c(110) Checking for service using WSA enpoint address : http://localhost:9090/axis2/services/EchoWebService
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\addr_disp.c(140) Service found using WSA enpoint address[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\addr_disp.c(182) Checking for operation using WSA Action : 
http://ws.apache.org/axis2/c/samples/echoString[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\addr_disp.c(188) Operation found using WSA Action
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler request_uri_based_dispatcher within the phase Dispatch[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler soap_action_based_dispatcher within the phase Dispatch
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler soap_message_body_based_dispatcher within the phase Dispatch[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase PostDispatch
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler dispatch_post_conditions_evaluator within the phase PostDispatch[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler context_handler within the phase PostDispatch
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase PolicyDetermination[Mon May 22 11:45:54 2006] [error] ..\..\modules\core\receivers\raw_xml_in_out_msg_recv.c(99) Impl object for service not set in message receiver 1 :: Out of memory
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(440) Axis2 engine receive successful[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase PolicyDetermination
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase MessageOut[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler AddressingOutHandler within the phase MessageOut
[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\engine.c(881) Invoking phase MessageOut[Mon May 22 11:45:54 2006] [debug] ..\..\modules\core\engine\phase.c(338) Invoke the handler AddressingOutHandler within the phase MessageOut
[Mon May 22 11:45:54 2006] [info]  Request served successfully