Re: Axis2/C - USERNAME and PASSWORD

2007-10-03 Thread Samisa Abeysinghe

Dumindu Pallewela wrote:

Hi Mole,

Currently the auth header is sent only if the server requests for
it. So if your server sends a WWW-Authenticate: header when
authentication failed at the first request, Axis2 will send another
with the required header.

However, I think we should have allowed the user to send the auth
header without waiting for a failed response in the first place,
because it is only an additional overhead, if the user already
*knows* that the server requires basic auth, Somehow we missed it
from 1.1 release :(
  
Sounds like it is a good feature to have. Lets raise a Jira on this and 
fix it.


Samisa...

--
Samisa Abeysinghe : WSO2 WSF/PHP
http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


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



Re: axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL

2007-10-03 Thread Samisa Abeysinghe

Have you set AXIS2C_HOME environment to point to the repo location?

Samisa...

topcoder1 wrote:

hi folks, I am new to axis2/c, I try to get the following simple c
client to work, but for some reason
axis2_stub_create_with_endpoint_ref_and_client_home always returns
NULL.  The env and endpoint_ref I pass to the function both seem to be
valid.  Any idea what the problem might be?
thanks!

 axis2_stub_t *stub = NULL;
axis2_endpoint_ref_t *endpoint_ref = NULL;
const axutil_env_t *env = NULL;
const axis2_char_t *endpoint_uri = NULL;
   const axis2_char_t *client_home = NULL;
   AXIS2_FUNC_PARAM_CHECK ( client_home, env, NULL)

   address = http://localhost:8080/test/services/test;;

client_home = AXIS2_GETENV(AXIS2C_HOME);
   if (!client_home || !strcmp (client_home, ))

   client_home = ./;

   env = axutil_env_create_all(test_client.log, AXIS2_LOG_LEVEL_TRACE);

if (NULL == endpoint_uri)
{
   endpoint_uri =
axis2_stub_ReportGenerate_get_endpoint_uri_from_wsdl( env );
}

endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri);

stub = axis2_stub_create_with_endpoint_ref_and_client_home (
env, endpoint_ref, client_home );//stub is null

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


  



--
Samisa Abeysinghe : WSO2 WSF/PHP
http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


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



Re: Write an output file in server side code (Axis 1.6b C++)

2007-10-03 Thread Samisa Abeysinghe



string log = mc-getUserName(); //is it correct? Anyway it
compiles correctly...

ofstream out;
out.open(/root/Desktop/fileLoginUtente.txt, ios::app);
out   Test:   log;
  
The problem could be that the server may not have the write permission 
to write to the location /root/Desktop.


Try:  out.open(/tmp/fileLoginUtente.txt, ios::app);

and see if the file gets written.

Samisa...

--
Samisa Abeysinghe : WSO2 WSF/PHP
http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


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



Write a log file using logaxis() method in Axis 1.6b c++ (server side)

2007-10-03 Thread Luciana Trubian
Hi all!
I want to use in my server side code (in c++) the logaxis() method
from AxisTrace.h to write a log file.

int EuroConvertitoreWrapper::invoke(void *pMsg)
{
IMessageData* mc = (IMessageData*)pMsg;
const AxisChar *method = mc-getOperationName();
int isTrace = AxisTrace::logaxis(-- logaxis() method: first message
-- , -- logaxis() method: second message -- , what i have to put
here???, /tmp/fileLoginUtente.txt,1);

...
}

Now it compiles and execute correctly, but it does'n write in the output file...
The question is: what I have to expect from this code?
Maybe it writes in fileLoginUtente.txt the first message and second message?

Thanks in advance...
Luciana

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



Re: Axis2/C - USERNAME and PASSWORD

2007-10-03 Thread Dumindu Pallewela
Michael Mole wrote:
 
 Yes, that would be much appreciated.  Also, is it possible for me to
 submit these directly?  I was looking at the issue tracker, but couldn't
 find a way to do it.

You need to create an account in order to report issues in jira.

HTH,
Dumindu.

-- 
Dumindu Pallewela
http://blog.dumindu.com
GPG ID: 0x9E131672

WSO2 | http://wso2.com | Oxygenating the Web Service Platform



signature.asc
Description: OpenPGP digital signature


Re: axis2_stub_create_with_endpoint_ref_and_client_home always returns NULL

2007-10-03 Thread topcoder1
thanks guys, both of you for the pointer, yes that was my problem,
AXIS2C_HOME needs to point to the repo location.

On 10/2/07, Samisa Abeysinghe [EMAIL PROTECTED] wrote:
 Have you set AXIS2C_HOME environment to point to the repo location?

 Samisa...

 topcoder1 wrote:
  hi folks, I am new to axis2/c, I try to get the following simple c
  client to work, but for some reason
  axis2_stub_create_with_endpoint_ref_and_client_home always returns
  NULL.  The env and endpoint_ref I pass to the function both seem to be
  valid.  Any idea what the problem might be?
  thanks!
 
   axis2_stub_t *stub = NULL;
  axis2_endpoint_ref_t *endpoint_ref = NULL;
  const axutil_env_t *env = NULL;
  const axis2_char_t *endpoint_uri = NULL;
 const axis2_char_t *client_home = NULL;
 AXIS2_FUNC_PARAM_CHECK ( client_home, env, NULL)
 
 address = http://localhost:8080/test/services/test;;
 
  client_home = AXIS2_GETENV(AXIS2C_HOME);
 if (!client_home || !strcmp (client_home, ))
 
 client_home = ./;
 
 env = axutil_env_create_all(test_client.log, 
  AXIS2_LOG_LEVEL_TRACE);
 
  if (NULL == endpoint_uri)
  {
 endpoint_uri =
  axis2_stub_ReportGenerate_get_endpoint_uri_from_wsdl( env );
  }
 
  endpoint_ref = axis2_endpoint_ref_create(env, endpoint_uri);
 
  stub = axis2_stub_create_with_endpoint_ref_and_client_home (
  env, endpoint_ref, client_home );//stub is null
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 


 --
 Samisa Abeysinghe : WSO2 WSF/PHP
 http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


 -
 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]



config.h

2007-10-03 Thread topcoder1
when compiling the client stub code generated from axis2c tool I got this error:
L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
fatal error C1083: Cannot open include file: 'config.h': No such file
or directory
i can't find config.h anywhere within the axis2c installation, any idea?
thanks
#ifndef AXUTIL_CONFIG_H
#define AXUTIL_CONFIG_H

/* undef unwated cnfig macros to avoid conflicts with APR macros */
#undef PACKAGE
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef VERSION

#include config.h

/* undef unwated cnfig macros to avoid conflicts with APR macros */
#undef PACKAGE
#undef PACKAGE_BUGREPORT
#undef PACKAGE_NAME
#undef PACKAGE_STRING
#undef PACKAGE_TARNAME
#undef PACKAGE_VERSION
#undef VERSION

#endif  /* AXIS2_UTILS_H */

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



Axis2C: how to check for SOAP fault

2007-10-03 Thread Michael Mole
How can I check for a SOAP fault using my ret_node in the following 
statement:
axiom_node_t *ret_node = NULL;
ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, env, 
op_qname, payload);

Should I check the node type?

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710

Re: config.h

2007-10-03 Thread topcoder1
I added WIN32 in preprocessor definitions, now I am getting tons of
errors like this:
 error C2440: '=' : cannot convert from 'void *' to 'axiom_element_t *'
Conversion from 'void*' to pointer to non-'void' requires an
explicit cast

current_element = axiom_node_get_data_element( parent, env);
please help, thanks!

On 10/3/07, topcoder1 [EMAIL PROTECTED] wrote:
 when compiling the client stub code generated from axis2c tool I got this 
 error:
 L:\bin\axis2c-bin-1.1.0-win32\axis2c-bin-1.1.0-win32\include\axutil_config.h(30):
 fatal error C1083: Cannot open include file: 'config.h': No such file
 or directory
 i can't find config.h anywhere within the axis2c installation, any idea?
 thanks
 #ifndef AXUTIL_CONFIG_H
 #define AXUTIL_CONFIG_H

 /* undef unwated cnfig macros to avoid conflicts with APR macros */
 #undef PACKAGE
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE_NAME
 #undef PACKAGE_STRING
 #undef PACKAGE_TARNAME
 #undef PACKAGE_VERSION
 #undef VERSION

 #include config.h

 /* undef unwated cnfig macros to avoid conflicts with APR macros */
 #undef PACKAGE
 #undef PACKAGE_BUGREPORT
 #undef PACKAGE_NAME
 #undef PACKAGE_STRING
 #undef PACKAGE_TARNAME
 #undef PACKAGE_VERSION
 #undef VERSION

 #endif  /* AXIS2_UTILS_H */


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



Re: Axis2/C - USERNAME and PASSWORD

2007-10-03 Thread Samisa Abeysinghe

Michael Mole wrote:


Yes, that would be much appreciated.  Also, is it possible for me to 
submit these directly? 
Yes you can. Go to http://issues.apache.org/jira/browse/AXIS2C. You need 
to create an account for you there. Once you login, you can create the 
issues.


Samisa...

--
Samisa Abeysinghe : WSO2 WSF/PHP
http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


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



Re: Axis2C: how to check for SOAP fault

2007-10-03 Thread Samisa Abeysinghe

Michael Mole wrote:


How can I check for a SOAP fault using my ret_node in the following 
statement:

axiom_node_t *ret_node = NULL;
ret_node =  axis2_svc_client_send_receive_with_op_qname( svc_client, 
env, op_qname, payload);


Should I check the node type?

You can use the function:
axis2_svc_client_get_last_response_has_fault(svc_client, env)

It returns true if there is a fault.

Samisa...

--
Samisa Abeysinghe : WSO2 WSF/PHP
http://wso2.org/projects/wsf/php?WSO2nbsp;Webnbsp;Servicesnbsp;Framework%2FPHPnbsp;-nbsp;Opennbsp;sourcenbsp;PHPnbsp;extentionnbsp;fornbsp;providingnbsp;andnbsp;consumingnbsp;Webnbsp;servicesnbsp;innbsp;PHP;


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