Re: unsubscribe

2006-10-24 Thread Kees de Kooter

unsubscribe

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



[Axis2] Writing soap message to stdout or file

2006-09-08 Thread Kees de Kooter

I would like to write the message that Axis generates
(serviceClient.sendReceive(payload)) to stdout of a file for testing
purposes. How can this be done?

--
Cheers,
Kees de Kooter
http://www.boplicity.net

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



Re: [Axis2] Writing soap message to stdout or file

2006-09-08 Thread Kees de Kooter

On 9/8/06, Jha, Satyajit [EMAIL PROTECTED] wrote:


OMElement result = serviceClient.sendReceive(payload);
StringWriter writer = new StringWriter();
result.serialize(XMLOutputFactory.newInstance().createXMLStreamWriter(wr
iter));
writer.flush();
String value = writer.toString();
System.out.println(value); // You can write value to some file also..




Thanks Satyajit,

Would it also be possible to do a dry run. I mean, inspect the
message that Axis is going to send, but without actually sending it?

I am trying to build a unit test that verifies the validity of the
message produced.

Kees

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



Re: [Axis2] specifying username and password

2006-05-22 Thread Kees de Kooter

This is an Axis 1 solution. There is no such object as Call in Axis2.

So I repeat my question: how can you specify username and password with Axis2??


On 5/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

On 5/3/06, Kees de Kooter [EMAIL PROTECTED] wrote:
 In Axis 1 I specified username/password like this:

 call.setUserName();
 call.setPassword();

 What is the equivalent in Axis 2?


 --
 Cheers,
 Kees de Kooter
 http://www.boplicity.net


I have used the following successfully:

call.setProperty(Call.USERNAME_PROPERTY, user);
call.setProperty(Call.PASSWORD_PROPERTY , pass);

--
//--
//  Computer Science is no more about computers than astronomy
//  is about telescopes.
//
//  - E. Dijkstra
//--



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



Re: [Axis2] Server did not recognize the value of HTTP Header SOAPAction

2006-05-22 Thread Kees de Kooter

Thanks Anne!

On 5/22/06, Anne Thomas Manes [EMAIL PROTECTED] wrote:

The SOAPAction value is a URI. The WSDL should specify the required
SOAPAction value.

Anne




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



Re: [Axis2] specifying username and password

2006-05-22 Thread Kees de Kooter

Found it:

   HttpTransportProperties.BasicAuthentication
   basicAuthentication = new HttpTransportProperties().
   new BasicAuthentication();
   basicAuthentication.setUsername(userName);
   basicAuthentication.setPassword(password);

   options.setProperty(HTTPConstants.BASIC_AUTHENTICATION,
   basicAuthentication);

It is available in the snapshots.

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