Kevin Tang | 14 May 11:38
Favicon

Apache with AXIS2/C configuration problem

Question about configuring Apache Server.

I have a question about Apache + AXIS2/C web service configuration.

==============
= scenario : =
==============
I have two server (Serv-A & Serv-B), and one client PC, configuration as bellow:

Serv-A:
- OS: ubuntu server 10.04 LTS version (64-bit).
- Apache 2 web server (come with ubuntu server installation).
- "Staff (wsf-staff-stable)" AXIS2/C web service library. (Download under ubuntu from PPA).
- IP: 192.168.0.5
- submask: 255.255.255.0
- Gateway: 192.168.0.1
- DNS: 8.8.8.8
- Setup Staff with Apache refer to http://code.google.com/p/staff/wiki/InstallationManualUbuntuPpa
- Staff library is setup and intergrate into Apache.

Serv-B:
- OS: Windows Server 2003 R2 Std (32-bit).
- Apache2 for window (install as windows service mode)
- AXIS2/C library & Sfaff library (download source code version of vs2005).
- IP: is 192.169.0.10
- submask: 255.255.255.0
- Gateway: 192.168.0.1
- DNS: 8.8.8.8
- Setup Staff with Apache refer to http://code.google.com/p/staff/wiki/InstallationManualWindows
- Staff library is setup and intergrate into Apache.

Client-PC:
- OS: Windows 7 home prem.
- Browser: IE9 & Firefox 11.
- IP: 192.169.0.100
- Submask: 255.255.255.0
- Gateway: 192.168.0.1
- DNS: 8.8.8.8

============
= Testing : =
============
If, in Client-PC, browse to these two server, it can list which web service is provided. i.e.:
browse http://192.168.0.5/axis2/services , it can list all web service provide in Serv-A.
browse http://192.168.0.10/axis2/services , it can list all web service provide in Serv-B.


===================
= My question is: =
===================
How to configure Apache Server in Serv-A (ubuntu linux) to make it show all web service provided in Serv-B?
i.e. browse http://192.168.0.5/axis2/services , it can list all web service provide in Serv-B.

Thank you very much.
Kevin Tang

--
Natural Language Processing & Portuguese-Chinese Machine Translation Laboratory (NLP2CT)
自然語言處理與中葡機器翻譯實驗室
Website: http://nlp2ct.sftw.umac.mo/
Location: Macau, Taipa, University of Macau, Research and Development Building, room R108.
Tel: (+853) 8397-8051
Rene Serral-Gracia | 12 May 23:12
Favicon

Threading issues

Hi, I have some doubts regarding Axis2C I hope someone is able to answer.

 

We are developing a REST web service which requires to share information among several threads. That is, during the service initialization we create a new thread that holds some status and spans more threads as necessary by the system.

 

Our issue is that when using our module with the standalone server, everything works fine for low loads, but as already mentioned in other threads in this mailing list that server does not scale for high loads.

 

On the other hand when using the module through mod_axis2 (with apache configured with the mpm-worker) we have quite strange behavior:

- When not using the keyword Axis2GlobalPoolSize our service gets initialized several times, and we are not able to share information among threads, which is weird since we should be able to share info among threads. Just in case we configured apache to span only one process with threads.

- When using global pools the module is initialized just once but once again the information is not shared among the different threads. We tried using the axutil_allocator_switch_to_global_pool and its local counterpart to no avail.

 

Is there any way of making the information in several threads globally available?, the most strange behavior is that using the standalone server the code works properly...

 

Thanks in advance,

René

 

--

---------------------------------------------------------------------------

René Serral Universitat Politècnica de Catalunya

rserral-FRAfvv93itk3uPMLIKxrzw@public.gmane.org

UPC Campus Nord, Ed. D6-111 Tel: +34 934 054 061 Fax: +34 934 017 055

Barcelona 08034

 

Advanced Network Architectures Lab (CRAAX)

http://www.craax.upc.edu/

2nd floor, NEAPOLIS building, Rambla Exposicio, 61-69,

08800 Vilanova i la Geltru

Tel: +34 938 967 292

---------------------------------------------------------------------------

 

Attachment (smime.p7s): application/pkcs7-signature, 1757 bytes
Jose M Medina V | 2 May 22:04

Problem Compiling Axis2x 1.7 in Ubuntu 12.04

Hello.

I try to install axis2c 1.7 RC-5 on a Ubuntu Server 12.04 and a use the following configure command:

  ./configure --prefix=/opt/axis2c-1.7 --with-apache2=/usr/local/httpd-2.2.22/include \
  --enable-libxml2=no --enable-guththila=yes --enable-openssl=yes --enable-trace=yes \
  --enable-tests=no

When I try to make the software I get the following error:

Making all in transport/http/util
make[4]: Entering directory `/home/banklot/axis2c-src-1.7.0/src/core/transport/http/util'
make[4]: *** No rule to make target `../../../../../axiom/src/parser//libaxis2_parser.la', needed
by `libaxis2_http_util.la'.  Stop.
make[4]: Leaving directory `/home/banklot/axis2c-src-1.7.0/src/core/transport/http/util'

Any idea of what could be happening?

Thanks in advance. 

------------------------------------------------------------
José M. Medina V.
Wesam Consulting
jose.medina@...
Mobile: +58(416)613-3302 +58(414)019-0580
Ofc:     +58(212)959-4155 Ext. 204
BB pin: 21EEDDB5
Caracas - Venezuela
Favicon

Problem in adb_xxx_deserialize Function

Hi,

unfortunately I have a problem with a deserialize function in my Webservice named SparePartForecastService.

I am using axis2c 1.6.0 on a Linux Server. A special department in our company delivers a WSDL which covers (hopefully) my needs.

With this WSDL I generate a skeleton and a stub using adb. I append here the WSDL (hope one can read it)

<<SparePartForecastService_V1.1.2.wsdl>>

All files were generated without any error. And with the help of Dimuthu’s Blog I was able

to develop a working client and a working Server.

The client then constructs and sends the following SOAP message:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body>

        <n:ProcessForecastCalculation xmlns:n="http://xmldefs.vvvvv.com/CSP/Applications/IDIS/SparePartForecastService/V1"

        xmlns:xsi="http://xmldefs.vvvvv.com/DD/SparePart/Ref/V1"

                xsi:type="SparePartIdentifierType"

                xsi:type="CodeType"

                xsi:type="MaterialType"

                xmlns:n0="http://xmldefs.vvvvv.com/DD/SparePart/Ref/V1">

                <n:ForecastParameters xsi:type="ForecastParametersType">

                        <n:LogisticPartyIdentifier>1469990</n:LogisticPartyIdentifier>

                        <n:BusinessLevel listID="CL01089" listVersionID="1" name="LogisticLevel" languageID="DE" xsi:type="CodeType">D</n:BusinessLevel>

                        <n:Material xsi:type="MaterialType">

                                <n0:SparePartRef xsi:type="SparePartIdentifierType">

                                        <n0:PartNumber>000010006</n0:PartNumber>

                                </n0:SparePartRef>

                        </n:Material>

                        <n:SimulationID schemeID="IDIS" schemeVersionID="1" xsi:type="IdentifierType">15</n:SimulationID>

                        <n:CalculationMode listID="CL01090" listVersionID="1" name="CalculationMode" languageID="DE" xsi:type="CodeType">S</n:CalculationMode>

                        <n:SimulationUser>turbine</n:SimulationUser>

                </n:ForecastParameters>

        </n:ProcessForecastCalculation>

</soapenv:Body></soapenv:Envelope>

Seems to be a correct SOAP message. But the Server has a problem with it:

[Thu Apr 26 13:59:52 2012] [info]  Starting addressing out handler

[Thu Apr 26 13:59:52 2012] [info]  Request served in 0.007 seconds

[Thu Apr 26 15:38:34 2012] [info]  Starting addressing in handler

[Thu Apr 26 15:38:34 2012] [error] ../adb_MaterialType.c(289) non nillable or minOuccrs != 0 element SparePartRef missing

[Thu Apr 26 15:38:34 2012] [error] ../adb_ProcessForecastCalculation.c(290) failed in building adb object for element ProcessForecastCalculation

[Thu Apr 26 15:38:34 2012] [error] ../adb_ProcessForecastCalculation.c(300) failed in setting the value for ProcessForecastCalculation

[Thu Apr 26 15:38:34 2012] [error] ../axis2_svc_skel_SparePartForecastService.c(209) NULL returnted from the adb_ProcessForecastCalculation_deserialize: This should be due to an invalid XML

The deserialize function did not find the element SparePartRef although it is there.

Can anybody give me a hint where to find and solve the problem? A colleague of the above mentioned department mentions that

the xsi:type parameters are wrong and not needed. Is there any switch in axis2c/adb to throw these parameters out?

Thanks

Dieter Johannsmeier

Attachment (SparePartForecastService_V1.1.2.wsdl): application/octet-stream, 80 KiB

---------------------------------------------------------------------
To unsubscribe, e-mail: c-user-unsubscribe@...
For additional commands, e-mail: c-user-help@...
Yateen V. Joshi | 20 Apr 11:47
Picon
Favicon

Integrating libxml2 parser in axis and making it work

Hi,

With kind help from Graham Holden, I did following to parse multilingual
characters using apache-axis2c-libxml2 parser.

Platform  - Red Hat Linux
- I had an apache that uses axis2c with below 'inclusion'
LoadModule axis2_module modules/mod_axis2.so
Axis2RepoPath ${AXIS2C_HOME}
Axis2LogFile  /localhome/stab4/log/axis.log
Axis2LogLevel trace
<Location /axis2>
SetHandler axis2_module
</Location>

- The axis2c version is 1.6.0
- This was originally compiled using Guththila parser. Some threads indicated
that I need to compile axis2c using libxml2 parser for it to process 
multilingual characters.
- So, I saw that my axis had below files under /axiom/src/parser/libxml2/
libxml2_reader_wrapper.c  Makefile     Makefile.in
libxml2_writer_wrapper.c  Makefile.am  SCCS

- I recompiled axis using libxml2 parser (./configure --enable-libxml2).
- Without doing any changes to apache configuration, I replace my axis libs and
bins.
- I did not change my earlier parser code as it was using axiom APIs.
- I ran my test case where I sent Chinese characters in an XML, however, my
parser could not parse it. I was thinking that it would be possible using 
libxml2.
- The parser is running fine with normal ascii characters.
- The call that is not returning a valid value is - 
param1_text_node = axiom_node_get_first_child(node_it, env);
if (!param1_text_node) <<<<<<<<< this becomes true, that means, 
invalid_xml_format.

Can someone please help me? Do I need to do something differently here?
Tim Stowell | 14 Apr 17:51
Picon

How to use application-defined thread pool

Hi All,


I'm currently using Axis2C with wsdl-generated stubs. At the moment I create a single stub/environment, then use that to make multiple synchronous requests one after another, while I recreate the ADB objects for each request but I reuse the stub. This seems to work fine (is it ok to reuse the same stub?)

However to make the app more responsive, I'd like to have one or more threads spawned to send the syncrounous requests. If I create multiple stubs/environments, can I reuse each one in it's own thread to perform the calls, or is there a better way to do this? Thanks!

Trying to get the username in the web service

Folks,
 
What I am trying to do is build a way to track which user calls which operation within the service. 
 
I am attempting to determine what the username was that was setup in the rampart structure from within the web service.
 
From within the service_invoke function I am doing this:
 
                        conf_ctx = axis2_msg_ctx_get_conf_ctx( msg_ctx, env );
 
                        if( conf_ctx == NULL )
                        {
                                Log( "Failed to find configuration context" );
                        }
                        else
                        {
                                Log( "about to get axis2_conf_ctx_get_conf" );
 
                                conf = axis2_conf_ctx_get_conf( conf_ctx, env );
 
                                if( conf == NULL )
                                {
                                        Log( "Failed to get axis2_conf_ctx_get_conf" );
                                }
                                else
                                {
                                        Log( "about to get axis2_conf_get_security_context" );
 
                                        rampart_context =
                                                ( rampart_context_t * )axis2_conf_get_security_context(
                                                conf
                                                , env
                                        );
 
                                        if( rampart_context  == NULL )
                                        {
                                                Log( "Failed to find security param" );
                                        }
 
The rampart_context is NULL;
 
I have found this in axis2c/src/core/engine/conf.c
 
/* This is a hack to keep rampart_context at client side */
    void *security_context;
 
Is this possible?  Does anyone have an example?  Is this a security issue?
 
 
L. Michael Tyler, II
System Analyst - ISD Aps Dev Store Systems Services
Phone 479.277.2811
BlackBerry 479.420.3798
 
 
 

This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential ***

Matan Cohen | 28 Mar 12:29
Picon

SOAP Message


Hi , 
I using Axis2C sucessfully when I'm building the elements .
I now need to wrrite a C program which is getting the URI and SOAP message , for example this message located in a string:
- <soapenv:Body>
- <q0:>
  <q0:entity>001</q0:entity> 
- <q0:inputData>
  <q1:_LimitOutputRespons_lmrptReportData /> 
  <q1:limitInputParameters_limitCustId>CUST1</q1:limitInputParameters_limitCustId> 
  <q1:limitInputParameters_limitEntity>001</q1:limitInputParameters_limitEntity> 
  <q1:limitOutputRespons_lmrptReturnCode /> 
  </q0:inputData>
  </q0:executeGetLexecuteGetLimitInquiryimitInquiry>
  </soapenv:Body>
  </soapenv:Envelope>

How can I send the this Messages forward to the service provider ?
I tried searching for a written function to do so , but without any success .

Any help will be highly appriciate .
--
______________________
best regards,
matan cohen
MF System Administrator.

Stadelmann Josef | 26 Mar 09:41
Picon

[AXIS2C-1.6.1] Axis2/C manual represents badly under IE 7.0

I may be not the only one in the world still using Internet Explorer

7.0 But when I look with IE 7.0 at this manual, and as further I

move toward the end of the manual, as more narrow does the 

content represent. In example: I am absolut unable to read about

the usage of the WSDL2C Tool.

http://axis.apache.org/axis2/c/core/docs/axis2c_manual.html#wsdl2c

Josef

S. Dee | 25 Mar 17:38

Connecting to a webservice with only username, password, and .cer file


First a little background:

I have already managed to successfully connect to a Microsoft web service using C#. To use this web service,
I have to supply a username and a password in the C# code. I also have to install a certificate (in .cer
format) into the "Root Certificate Authorities" section of the system's certificates.

(By the way, the C# class I use to connect to the service was automatically generated for me with the command
line tool "svcutil.exe https://address.of.service")

Here is my question:

How can I connect to such a web service using Axis2/C? The example in the documentation is of a completely
different nature -- it asks for a certificate, key file, and a passphrase. In my case, it is username,
password, and a .cer file.

So I'm not sure where to even begin. I'm not sure where my .cer file should go, and where my username and
password should go. Any ideas?

Thanks,S. Dee 		 	   		  
S. Dee | 25 Mar 17:35

Connecting to a webservice with only username, password, and .cer file


First a little background:
I have already managed to successfully connect to a Microsoft web service using C#. To use this web service,
I have to supply a username and a password in the C# code. I also have to install a certificate (in .cer
format) into the "Root Certificate Authorities" section of the system's certificates.
(By the way, the C# class I use to connect to the service was automatically generated for me with the command
line tool "svcutil.exe https://address.of.service")
Here is my question:
How can I connect to such a web service using Axis2/C? The example in the documentation is of a completely
different nature -- it asks for a certificate, key file, and a passphrase. In my case, it is username,
password, and a .cer file.
So I'm not sure where to even begin. I'm not sure where my .cer file should go, and where my username and
password should go. Any ideas?
Thanks,S. Dee 		 	   		  

Gmane