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 Sevin Roland <up...@club-internet.fr> on 2004/05/11 01:09:11 UTC

How to add custom HTTP header (laborious English)

Hi,

I have developped à Medical
application in C++ (French medical CCAM assistant) 
which runs under Linux and Window (under QT).
All works fine and is OK from long time.
recently fore several reasons this application
must exchange data with an another application with
web service protocol (on Axis web serveur ).

So i try to install Axis C++ to create
Axis Web service client on my computer:
    Kernel 2.4.22, expat-1.95.7 , libc-2.3.2 , gcc version 3.3.1
Results:
    binary distribution: Axis 1.1       works well
    src    distribution  Axis 1.0       compile without PB
    
 --- First PB:    
    
    axis-c-1-1 don't         compile with always this error:
    ws-axis_20040509223016   same error
    
 /bin/sh ../../../libtool --mode=link g++ -g -O2 -s -L/lib -lexpat -lstdc++ -o 
simple_axis_server ServerHelper.o SimpleAxisServer.o -s -L/lib -lexpat 
-lstdc++ -L/home/UserXXX/axis-c-1-1-linux/src/engine/server -lserver_engine 
-lltdl  
* g++ -g -O2 -s -o .libs/simple_axis_server ServerHelper.o SimpleAxisServer.o 
-s -L/lib -L/home/UserXXX/axis-c-1-1-linux/src/engine/server 
/home/UserXXX/axis-c-1-1-linux/src/engine/server/.libs/libserver_engine.so 
/usr/lib/libexpat.so -lstdc++ /usr/lib/libltdl.so -ldl -Wl,--rpath 
-Wl,/usr/local/lib 
* SimpleAxisServer.o(.text+0x21b): In function `executeWork(Ax_soapstream*)': 
* 
/home/UserXXX/axis-c-1-1-linux/src/server/simple_axis_server/SimpleAxisServer.cpp:195: 
undefined reference to `process_request' 
* SimpleAxisServer.o(.text+0xe8f): In function `main': 
* 
/home/UserXXX/axis-c-1-1-linux/src/server/simple_axis_server/SimpleAxisServer.cpp:553: 
undefined reference to `initialize_module' 
* /home/UserXXX/axis-c-1-1-linux/src/engine/server/.libs/libserver_engine.so: 
undefined reference to `g_pHandlerPool' 
* /home/UserXXX/axis-c-1-1-linux/src/engine/server/.libs/libserver_engine.so: 
undefined reference to `g_pConfig'
           .
           .
           .
           etc
           
 I don't understand, 
 
     process_request and initialize_module seems corectly defined in include 
file: Packet.h .
     
  any idea about this should be cool for me.
  
 ---  Second PB:
  
  How to add a basic authentification header in http header ??
  The web service which whom the application must exchange data
  require  a base64 encoded identification as: 
  
  http header required:  'Authorization: Basic VXNlck5hbWU6UGFzc3dvcmQ='
   
  where 'VXNlck5hbWU6UGFzc3dvcmQ=' is 'UserName:Password' 
  base64 encoded.
  
  thanks for reading this laborious English.
  
  Sevin Roland
  badway@club-internet.fr
  upsis(arobace)club(tiret)internet(dot)fr