AW: setting username/password in soap header programmatically

2009-01-27 Thread Mario-Leander Reimer
Hi Brain, I just realized that you are using Axis1. Sorry for the misunderstanding. The code you had sent will was for Axis2, I have this working under Axis2 1.4.1 with Rampart 1.4. Unfortunately I have no experience with Axis1 so I can't help you any further. Regards, Leander > -Ursprü

Re: How to get transport type during runtime

2009-01-27 Thread Amila Suriarachchi
try this, MessageContext.getCurrentMessageContext().getIncomingTransportName(); thanks, Amila. On Tue, Jan 27, 2009 at 7:01 PM, rahulsnh wrote: > > Hi all, > > I'm using axis2 to develop a webservice server methods. One of the methods > is: > > *

Re: Help on: unspecified internal server error

2009-01-27 Thread Amila Suriarachchi
On Fri, Jan 23, 2009 at 11:27 PM, Elisei Rotaru wrote: > Hello together, > > I need a little help from you guys if it is at all possible. I am getting > crazy around here. My problem is as follows. I am acessing a web service > from Pubmed (that is an online database for literature in medicine) to

Re: Lifecycle, ServiceLifeCycle methods never called?

2009-01-27 Thread Amila Suriarachchi
have a look at here[1] thanks, Amila. [1] http://blog.facilelogin.com/2008/11/axis2-services-lifecycle-vs.html On Wed, Jan 28, 2009 at 11:24 AM, Amila Suriarachchi < amilasuriarach...@gmail.com> wrote: > > > On Wed, Jan 28, 2009 at 1:27 AM, Jason Wells wrote: > >> Hi, >> I have an Axis2 1.4.1

Re: Lifecycle, ServiceLifeCycle methods never called?

2009-01-27 Thread Amila Suriarachchi
On Wed, Jan 28, 2009 at 1:27 AM, Jason Wells wrote: > Hi, > I have an Axis2 1.4.1 service in Tomcat 6 deployed at transport session > scope. It implements Lifecycle and ServiceLifeCycle. When I hit the > service for the first time, I can see init() gets called. However, neither > startUp(), shutD

Re: Session cookie in ADB client HTTP request

2009-01-27 Thread Amila Suriarachchi
On Wed, Jan 28, 2009 at 4:43 AM, Jason Wells wrote: > Hi, > > I used wsdl2java to generate an ADB client that goes against a stateful > service in Axis2. When I call service operations with the client, the > JSESSIONID that the server sends in the HTTP responses aren't maintained in > its request

RE: Error while trying to add a DOM element directly under the SoapBody

2009-01-27 Thread bharath.krishnappa
I am using Axis2 1.4.1. -Original Message- From: Andreas Veithen [mailto:andreas.veit...@gmail.com] Sent: Tuesday, January 27, 2009 11:49 PM To: axis-user@ws.apache.org Cc: Krishnappa, Bharath Subject: Re: Error while trying to add a DOM element directly under the SoapBody This issue has

Session cookie in ADB client HTTP request

2009-01-27 Thread Jason Wells
Hi, I used wsdl2java to generate an ADB client that goes against a stateful service in Axis2. When I call service operations with the client, the JSESSIONID that the server sends in the HTTP responses aren't maintained in its requests, so the server opens a new session with each request.

Lifecycle, ServiceLifeCycle methods never called?

2009-01-27 Thread Jason Wells
Hi, I have an Axis2 1.4.1 service in Tomcat 6 deployed at transport session scope. It implements Lifecycle and ServiceLifeCycle. When I hit the service for the first time, I can see init() gets called. However, neither startUp(), shutDown() nor destroy() ever get called, not even when I l

Re: setting username/password in soap header programmatically

2009-01-27 Thread brianfm
Hey, I think i can do this using the code below. which will go into an outflow handler. Question now, is how to programmatically add an outflow handler: mport org.apache.axis.AxisFault; import org.apache.axis.Message; import org.apache.axis.MessageContext; import org.apache.axis.handlers.BasicHa

Re: Error while trying to add a DOM element directly under the SoapBody

2009-01-27 Thread Andreas Veithen
This issue has been reported as AXIS2-2773 [1] and should have been fixed for Axis2 1.3. What version do you use? Andreas [1] https://issues.apache.org/jira/browse/AXIS2-2773 On Tue, Jan 27, 2009 at 13:14, wrote: >> Hi, >> >> I am trying to create an axis2 JAX-WS dispatch client with >> Servic

How to Include SAML token in the Security header!!

2009-01-27 Thread Seshi Patibanda
Hello all, As per the thread seen on markmail.org ( http://markmail.org/thread/iq4j6x7g247wi75x), there was an update from Ruchith Fernando dated Nov 4, 2007 about the ways to include the obtained SAML token in the Security header. First option was given as: " By creating a wsse:Securityheader e

Re: setting username/password in soap header programmatically

2009-01-27 Thread brianfm
Hi, thanks to everyone again who has replied. I would prefer not to add custom headers to the soap message, i want to use the ws-security usernametoken. Thanks Leander for your response, but that approach did not work. In the wss4j documentation, is the following code snippit. Unfortunately, it

Re: WS_Security with Axis2 using ServiceClient and OperationClient

2009-01-27 Thread Wishing Carebear
Sameera: Any pointers to my questions. Thanks, cbear On Mon, Jan 26, 2009 at 12:25 PM, Wishing Carebear < wishing.careb...@gmail.com> wrote: > Sameera: > Looked into 240 link. It had the following information for client > configurations: > This configuration parameter should be included in the c

Re: Error getting attachments from SOAPMessage

2009-01-27 Thread Andreas Veithen
Chinmoy, I had to do some more changes in order to make axis2-saaj compatible with the SAAJ specs and Sun's reference implementation. I believe that the issue should be fixed now in trunk. However: * For the DataHandler issue: the code in trunk still creates the AttachmentPart directly from the D

Re: Help on: unspecified internal server error

2009-01-27 Thread Elisei Rotaru
Hello, I get an unspecified internal server error from tomcat running axis2 web service. How can i debug to see what the problem is? Thanks in advance, Elisei 2009/1/23 Elisei Rotaru > Hello together, > > I need a little help from you guys if it is at all possible. I am getting > crazy around

How to get transport type during runtime

2009-01-27 Thread rahulsnh
Hi all, I'm using axis2 to develop a webservice server methods. One of the methods is: * *A simplified logic has been presented in form of code below **

Error while trying to add a DOM element directly under the SoapBody

2009-01-27 Thread bharath.krishnappa
> Hi, > > I am trying to create an axis2 JAX-WS dispatch client with > Service.Mode.MESSAGE. I am getting the following error while trying to > construct the SOAPBody. Could someone please explain a proper way to > add a valid org.w3c.dom.Element directly under the SoapBody. > > Code snippet: >

Re: Axis2-1.4 JAX-WS annotated service namespace problem

2009-01-27 Thread cngyver
I've made another try. this time i changed the response element in the wsdl: become (return => result) now the soap response should be (forget the namespace problem for now) http://schemas.xmlsoap.org/soap/envelope/";> http://www.ak

Re: Axis2-1.4 JAX-WS annotated service namespace problem

2009-01-27 Thread cngyver
I tried what happens if i use a wsdl. First without out wsdl: The Service: @WebService( name="IVRService", serviceName = "IVRService", targetNamespace="http://www.akademi-consulting.com.tr/services";) @SOAPBinding(style=SOAPBinding.Style.DOCUMENT,

Re: Failed when creating xmlbeans binding from WS-Trust.wsdl

2009-01-27 Thread Håkon Sagehaug
hi I just had to change the schema to http://docs.oasis-open.org/ws-sx/ws-trust/200512/ws-trust-1.3.xsd from before i had http://schemas.xmlsoap.org/ws/2005/02/trust/ws-trust.xsd 2009/1/27 Håkon Sagehaug > Hi > > any hints on how to solve this, below is the wsdl that I'm trying to > generate

Re: Problems With Axis2

2009-01-27 Thread Toriacht
I have been following the instructions given in the like you supplied below. These are some of the problems that I am encountering: 1) When taking inventory of the WTP pieces I have installed I do not find 'the non-SDK package of the Web Tools Platform refered to a "Web App Developers"' I Can

Re: Failed when creating xmlbeans binding from WS-Trust.wsdl

2009-01-27 Thread Håkon Sagehaug
Hi any hints on how to solve this, below is the wsdl that I'm trying to generate the xmlbeans binding, tried with both axis2 1.3 and 1.4, here is. http://no.plab/hakont/sts"; xmlns:tns="http://no.plab/hakont/sts"; xmlns:wst=" http://schemas.xmlsoap.org/ws/2005/02/trust"; xmlns:wsdl="http

Axis2-1.4 JAX-WS annotated service namespace problem

2009-01-27 Thread cngyver
Hello i've created an annotated service like below (it is in an .aar archive uploaded to axis, not a single pojo file): @WebService(name="IVRService", serviceName = "IVRService", endpointInterface="com.akademi.ivr.service.IVRCallService", targetNamespace="http://w