Re: Problem with SOAPHeader

2008-03-10 Thread Nuria Rodríguez García
Hi Ruchith,

The exception has disappeared but when the client receives the response I
receive the following exception:

org.apache.axis2.AxisFault: Error in extracting message properties
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
:481)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:360)
at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:406)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:219)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at com.gmv.teamengine.samples.client.Client.main(Client.java:90)


2008/3/10, Ruchith Fernando <[EMAIL PROTECTED]>:
> Can you please try using this [1] jar ... instead of the one I sent
> earlier... My guess is that the earlier jar file was generated before
> that fix went in.
>
>
> Thanks,
> Ruchith
>
> 1.
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080310.022829-66.jar
>
> On Mon, Mar 10, 2008 at 4:00 PM, Nuria Rodríguez García
> <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hi Ruchith,
> >
> >
> >
> > Thank you very much for your help.
> >
> >
> >
> > I used the new jar and I included the source code too but I'm having the
> > same problem.
> >
> > Is it necessary to change something in my client side?
> >
> >
> >
> > Thanks,
> >
> >
> >
> > Nuria
> >
> >
> >
> >
> > 2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
> > > I believe there will be another release of Axiom close to the release
> > > of Axis2... maybe you will be able to try the latest
> > > axiom-dom-SNAPSHOT.jar with your project.
> > >
> > > Please try the jar file available here :
> > >
> > >
> >
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > Thank you very much. But how could I use this class in my project?
> > > > Are you going to publish a new release of the axiom api?
> > > >
> > > > Regards,
> > > > Nuria
> > > >
> > > >
> > > >
> > > >
> > > > 2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
> > > > >
> > > > >
> > > > >
> > > > > Hi Nuria,
> > > > >
> > > > > This is a bug in DOOM, the AXIOM DOM implementation.
> > > > >
> > > > > I just fixed this and checked it in. [1]
> > > > >
> > > > > Thanks,
> > > > > Ruchith
> > > > >
> > > > > 1. http://svn.apache.org/viewvc?rev=634561&view=rev
> > > > >
> > > > > On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García
> > > > > <[EMAIL PROTECTED]> wrote:
> > > > > > Hi,
> > > > > > I can't add information in SOAPHeader when I engage rampart and
> > > > addressing
> > > > > > module.
> > > > > >
> > > > > > My header is the following:
> > > > > >
> > > > > > 
> > > > > >  > > > > >
> > > >
> > xmlns:wsse="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
"
> > > > > > soapenv:mustUnderstand="1">
> > > > > >   > > > > >
> > > >
> > xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
"
> > > > > > wsu:Id="Timestamp-32653965">
> > > > > >  2008-03-06T11:37:41.497Z
> > > > > > 2008-03-06T11:42:41.497Z
> > > > > > 
> > > > > >  > > > > >
> > > >
> > xmlns:wsu="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
"
> > > > > > wsu:Id="UsernameToken-11737724">
> > > > > >  alice
> > > > > >  > > > > >
> > > >
> > Type="
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
">bobPW
> > > > > >  
> > > > > > 
> > > > > > 
> > > > > >  > > > > > nameAttachFile="FileTestA.txt"/>
> > > > > >  > > > > > nameAttachFile="FileTestA.txt"/>
> > > > > >  
> > > > > >
> > http://localhost:8081/axis2/services/SWASampleService
> > > > > >
> > urn:uuid:E23726932EDEB77EB81204803460112
> > > > > >  process
> > > > > > 
> > > > > >
> > > > > > I receive the following exception in server side:
> > > > > > java.lang.NullPointerException
> > > > > > at
> > > > > >
> > org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
> > > > > > I(SOAPHeaderImpl.java:244)
> > > > > > at
> > > > org.apache.rampart.RampartEngine.process(RampartEngine.java:96)
> > > > > >  at
> > > > > >
> > org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav
> > > > > > a:85)
> > > > > > at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> > > > > > at
> > > > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
> > > > > >  at
> > > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
> > > > > > at
> > > > > >
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
> > > > > > uest(HTTPTransportUtils.java:275)
> > > > > > at
> > > 

Re: Problem with SOAPHeader

2008-03-10 Thread Ruchith Fernando
Can you please try using this [1] jar ... instead of the one I sent
earlier... My guess is that the earlier jar file was generated before
that fix went in.


Thanks,
Ruchith

1. 
http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080310.022829-66.jar

On Mon, Mar 10, 2008 at 4:00 PM, Nuria Rodríguez García
<[EMAIL PROTECTED]> wrote:
>
>
> Hi Ruchith,
>
>
>
> Thank you very much for your help.
>
>
>
> I used the new jar and I included the source code too but I'm having the
> same problem.
>
> Is it necessary to change something in my client side?
>
>
>
> Thanks,
>
>
>
> Nuria
>
>
>
>
> 2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
> > I believe there will be another release of Axiom close to the release
> > of Axis2... maybe you will be able to try the latest
> > axiom-dom-SNAPSHOT.jar with your project.
> >
> > Please try the jar file available here :
> >
> >
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar
> >
> > Thanks,
> > Ruchith
> >
> > On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García
> > <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > >
> > > Thank you very much. But how could I use this class in my project?
> > > Are you going to publish a new release of the axiom api?
> > >
> > > Regards,
> > > Nuria
> > >
> > >
> > >
> > >
> > > 2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
> > > >
> > > >
> > > >
> > > > Hi Nuria,
> > > >
> > > > This is a bug in DOOM, the AXIOM DOM implementation.
> > > >
> > > > I just fixed this and checked it in. [1]
> > > >
> > > > Thanks,
> > > > Ruchith
> > > >
> > > > 1. http://svn.apache.org/viewvc?rev=634561&view=rev
> > > >
> > > > On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García
> > > > <[EMAIL PROTECTED]> wrote:
> > > > > Hi,
> > > > > I can't add information in SOAPHeader when I engage rampart and
> > > addressing
> > > > > module.
> > > > >
> > > > > My header is the following:
> > > > >
> > > > > 
> > > > >  > > > >
> > >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> > > > > soapenv:mustUnderstand="1">
> > > > >   > > > >
> > >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> > > > > wsu:Id="Timestamp-32653965">
> > > > >  2008-03-06T11:37:41.497Z
> > > > > 2008-03-06T11:42:41.497Z
> > > > > 
> > > > >  > > > >
> > >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> > > > > wsu:Id="UsernameToken-11737724">
> > > > >  alice
> > > > >  > > > >
> > >
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>bobPW
> > > > >  
> > > > > 
> > > > > 
> > > > >  > > > > nameAttachFile="FileTestA.txt"/>
> > > > >  > > > > nameAttachFile="FileTestA.txt"/>
> > > > >  
> > > > >
> http://localhost:8081/axis2/services/SWASampleService
> > > > >
> urn:uuid:E23726932EDEB77EB81204803460112
> > > > >  process
> > > > > 
> > > > >
> > > > > I receive the following exception in server side:
> > > > > java.lang.NullPointerException
> > > > > at
> > > > >
> org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
> > > > > I(SOAPHeaderImpl.java:244)
> > > > > at
> > > org.apache.rampart.RampartEngine.process(RampartEngine.java:96)
> > > > >  at
> > > > >
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav
> > > > > a:85)
> > > > > at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> > > > > at
> > > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
> > > > >  at
> > > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
> > > > > at
> > > > >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
> > > > > uest(HTTPTransportUtils.java:275)
> > > > > at
> > > > >
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
> > > > >  21)
> > > > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > > > at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > > > at
> > > > >
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> > > > >  icationFilterChain.java:237)
> > > > >
> > > > >
> > > > > I don't know if it is possible and I would need to know if there is
> a
> > > way to
> > > > > do it.
> > > > > If I engage only addressing module this works.
> > > > >
> > > > > Thanks, Nuria
> > > >
> > > >
> > > >
> > > > --
> > > > http://blog.ruchith.org
> > > > http://wso2.org
> > > >
> > > > -
> > > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> >
> >
> >
> > --
> > http://blog.ruchith.org
> > http://wso2.org
> >
> > ---

Re: Problem with SOAPHeader

2008-03-10 Thread Nuria Rodríguez García
Hi Ruchith,



Thank you very much for your help.



I used the new jar and I included the source code too but I'm having the
same problem.

Is it necessary to change something in my client side?



Thanks,

Nuria




2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
>
> I believe there will be another release of Axiom close to the release
> of Axis2... maybe you will be able to try the latest
> axiom-dom-SNAPSHOT.jar with your project.
>
> Please try the jar file available here :
>
>
> http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar
>
> Thanks,
> Ruchith
>
> On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Thank you very much. But how could I use this class in my project?
> > Are you going to publish a new release of the axiom api?
> >
> > Regards,
> > Nuria
> >
> >
> >
> >
> > 2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
> > >
> > >
> > >
> > > Hi Nuria,
> > >
> > > This is a bug in DOOM, the AXIOM DOM implementation.
> > >
> > > I just fixed this and checked it in. [1]
> > >
> > > Thanks,
> > > Ruchith
> > >
> > > 1. http://svn.apache.org/viewvc?rev=634561&view=rev
> > >
> > > On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García
> > > <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > > I can't add information in SOAPHeader when I engage rampart and
> > addressing
> > > > module.
> > > >
> > > > My header is the following:
> > > >
> > > > 
> > > >  > > >
> > xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
> > > > soapenv:mustUnderstand="1">
> > > >   > > >
> > xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> > > > wsu:Id="Timestamp-32653965">
> > > >  2008-03-06T11:37:41.497Z
> > > > 2008-03-06T11:42:41.497Z
> > > > 
> > > >  > > >
> > xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> > > > wsu:Id="UsernameToken-11737724">
> > > >  alice
> > > >  > > >
> > Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">bobPW
> > > >  
> > > > 
> > > > 
> > > >  > > > nameAttachFile="FileTestA.txt"/>
> > > >  > > > nameAttachFile="FileTestA.txt"/>
> > > >  
> > > > http://localhost:8081/axis2/services/SWASampleService
> 
> > > >
> urn:uuid:E23726932EDEB77EB81204803460112
> > > >  process
> > > > 
> > > >
> > > > I receive the following exception in server side:
> > > > java.lang.NullPointerException
> > > > at
> > > >
> org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
> > > > I(SOAPHeaderImpl.java:244)
> > > > at
> > org.apache.rampart.RampartEngine.process(RampartEngine.java:96)
> > > >  at
> > > > org.apache.rampart.handler.RampartReceiver.invoke(
> RampartReceiver.jav
> > > > a:85)
> > > > at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> > > > at
> > org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
> > > >  at
> > org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
> > > > at
> > > >
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
> > > > uest(HTTPTransportUtils.java:275)
> > > > at
> > > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java
> :1
> > > >  21)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java
> :709)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java
> :802)
> > > > at
> > > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (Appl
> > > >  icationFilterChain.java:237)
> > > >
> > > >
> > > > I don't know if it is possible and I would need to know if there is
> a
> > way to
> > > > do it.
> > > > If I engage only addressing module this works.
> > > >
> > > > Thanks, Nuria
> > >
> > >
> > >
> > > --
> > > http://blog.ruchith.org
> > > http://wso2.org
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>
>
> --
> http://blog.ruchith.org
> http://wso2.org
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with SOAPHeader

2008-03-07 Thread Ruchith Fernando
I believe there will be another release of Axiom close to the release
of Axis2... maybe you will be able to try the latest
axiom-dom-SNAPSHOT.jar with your project.

Please try the jar file available here :

http://people.apache.org/repo/m2-snapshot-repository/org/apache/ws/commons/axiom/axiom-dom/SNAPSHOT/axiom-dom-20080307.033922-64.jar

Thanks,
Ruchith

On Fri, Mar 7, 2008 at 6:48 PM, Nuria Rodríguez García
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thank you very much. But how could I use this class in my project?
> Are you going to publish a new release of the axiom api?
>
> Regards,
> Nuria
>
>
>
>
> 2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
> >
> >
> >
> > Hi Nuria,
> >
> > This is a bug in DOOM, the AXIOM DOM implementation.
> >
> > I just fixed this and checked it in. [1]
> >
> > Thanks,
> > Ruchith
> >
> > 1. http://svn.apache.org/viewvc?rev=634561&view=rev
> >
> > On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García
> > <[EMAIL PROTECTED]> wrote:
> > > Hi,
> > > I can't add information in SOAPHeader when I engage rampart and
> addressing
> > > module.
> > >
> > > My header is the following:
> > >
> > > 
> > >  > >
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> > > soapenv:mustUnderstand="1">
> > >   > >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> > > wsu:Id="Timestamp-32653965">
> > >  2008-03-06T11:37:41.497Z
> > > 2008-03-06T11:42:41.497Z
> > > 
> > >  > >
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> > > wsu:Id="UsernameToken-11737724">
> > >  alice
> > >  > >
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>bobPW
> > >  
> > > 
> > > 
> > >  > > nameAttachFile="FileTestA.txt"/>
> > >  > > nameAttachFile="FileTestA.txt"/>
> > >  
> > > http://localhost:8081/axis2/services/SWASampleService
> > > urn:uuid:E23726932EDEB77EB81204803460112
> > >  process
> > > 
> > >
> > > I receive the following exception in server side:
> > > java.lang.NullPointerException
> > > at
> > > org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
> > > I(SOAPHeaderImpl.java:244)
> > > at
> org.apache.rampart.RampartEngine.process(RampartEngine.java:96)
> > >  at
> > > org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav
> > > a:85)
> > > at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> > > at
> org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
> > >  at
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
> > > at
> > > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
> > > uest(HTTPTransportUtils.java:275)
> > > at
> > > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
> > >  21)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > > at
> > > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> > >  icationFilterChain.java:237)
> > >
> > >
> > > I don't know if it is possible and I would need to know if there is a
> way to
> > > do it.
> > > If I engage only addressing module this works.
> > >
> > > Thanks, Nuria
> >
> >
> >
> > --
> > http://blog.ruchith.org
> > http://wso2.org
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>



-- 
http://blog.ruchith.org
http://wso2.org

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



Re: Problem with SOAPHeader

2008-03-07 Thread Nuria Rodríguez García
Hi,

Thank you very much. But how could I use this class in my project?
Are you going to publish a new release of the axiom api?

Regards,
Nuria




2008/3/7, Ruchith Fernando <[EMAIL PROTECTED]>:
>
> Hi Nuria,
>
> This is a bug in DOOM, the AXIOM DOM implementation.
>
> I just fixed this and checked it in. [1]
>
> Thanks,
> Ruchith
>
> 1. http://svn.apache.org/viewvc?rev=634561&view=rev
>
> On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García
> <[EMAIL PROTECTED]> wrote:
> > Hi,
> > I can't add information in SOAPHeader when I engage rampart and
> addressing
> > module.
> >
> > My header is the following:
> >
> > 
> >  > xmlns:wsse="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd
> "
> > soapenv:mustUnderstand="1">
> >   > xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> > wsu:Id="Timestamp-32653965">
> >  2008-03-06T11:37:41.497Z
> > 2008-03-06T11:42:41.497Z
> > 
> >  > xmlns:wsu="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> "
> > wsu:Id="UsernameToken-11737724">
> >  alice
> >  > Type="
> http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
> ">bobPW
> >  
> > 
> > 
> >  > nameAttachFile="FileTestA.txt"/>
> >  > nameAttachFile="FileTestA.txt"/>
> >  
> > http://localhost:8081/axis2/services/SWASampleService
> > urn:uuid:E23726932EDEB77EB81204803460112
> >  process
> > 
> >
> > I receive the following exception in server side:
> > java.lang.NullPointerException
> > at
> > org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
> > I(SOAPHeaderImpl.java:244)
> > at org.apache.rampart.RampartEngine.process(RampartEngine.java
> :96)
> >  at
> > org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav
> > a:85)
> > at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> > at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java
> :235)
> >  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java
> :135)
> > at
> > org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
> > uest(HTTPTransportUtils.java:275)
> > at
> > org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
> >  21)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> > at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
> >  icationFilterChain.java:237)
> >
> >
> > I don't know if it is possible and I would need to know if there is a
> way to
> > do it.
> > If I engage only addressing module this works.
> >
> > Thanks, Nuria
>
>
>
> --
> http://blog.ruchith.org
> http://wso2.org
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Problem with SOAPHeader

2008-03-06 Thread Ruchith Fernando
Hi Nuria,

This is a bug in DOOM, the AXIOM DOM implementation.

I just fixed this and checked it in. [1]

Thanks,
Ruchith

1. http://svn.apache.org/viewvc?rev=634561&view=rev

On Thu, Mar 6, 2008 at 5:59 PM, Nuria Rodríguez García
<[EMAIL PROTECTED]> wrote:
> Hi,
> I can't add information in SOAPHeader when I engage rampart and addressing
> module.
>
> My header is the following:
>
> 
>  xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> soapenv:mustUnderstand="1">
>   xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="Timestamp-32653965">
>  2008-03-06T11:37:41.497Z
> 2008-03-06T11:42:41.497Z
> 
>  xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> wsu:Id="UsernameToken-11737724">
>  alice
>  Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>bobPW
>  
> 
> 
>  nameAttachFile="FileTestA.txt"/>
>  nameAttachFile="FileTestA.txt"/>
>  
> http://localhost:8081/axis2/services/SWASampleService
> urn:uuid:E23726932EDEB77EB81204803460112
>  process
> 
>
> I receive the following exception in server side:
> java.lang.NullPointerException
> at
> org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
> I(SOAPHeaderImpl.java:244)
> at org.apache.rampart.RampartEngine.process(RampartEngine.java:96)
>  at
> org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.jav
> a:85)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
>  at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
> at
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
> uest(HTTPTransportUtils.java:275)
> at
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:1
>  21)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
>  icationFilterChain.java:237)
>
>
> I don't know if it is possible and I would need to know if there is a way to
> do it.
> If I engage only addressing module this works.
>
> Thanks, Nuria



-- 
http://blog.ruchith.org
http://wso2.org

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



Problem with SOAPHeader

2008-03-06 Thread Nuria Rodríguez García
Hi,
I can't add information in SOAPHeader when I engage rampart and addressing
module.

My header is the following:


http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
soapenv:mustUnderstand="1">
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="Timestamp-32653965">
2008-03-06T11:37:41.497Z
2008-03-06T11:42:41.497Z

http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
wsu:Id="UsernameToken-11737724">
alice
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText
">bobPW






http://localhost:8081/axis2/services/SWASampleService
urn:uuid:E23726932EDEB77EB81204803460112
process


I receive the following exception in server side:
java.lang.NullPointerException
at
org.apache.axiom.soap.impl.dom.SOAPHeaderImpl.getHeaderBlocksWithNSUR
I(SOAPHeaderImpl.java:244)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:96)
at org.apache.rampart.handler.RampartReceiver.invoke(
RampartReceiver.jav
a:85)
at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:235)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:135)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:275)
at org.apache.axis2.transport.http.AxisServlet.doPost(
AxisServlet.java:1
21)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(Appl
icationFilterChain.java:237)


I don't know if it is possible and I would need to know if there is a way to
do it.
If I engage only addressing module this works.

Thanks, Nuria