Hi,

I'm using rampart-1.3.
The soap response I get from the server is:


<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"xmlns:wsa
="http://www.w3.org/2005/08/addressing";>

<soapenv:Header>

<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>

<wsa:RelatesTo>urn:uuid:491E0CE6F9BE8324DB1202511282800</wsa:RelatesTo>

</soapenv:Header>

<soapenv:Body>

<soapenv:Fault>

<faultcode>soapenv:Server</faultcode>

<faultstring>An error was discovered processing the
&lt;wsse:Security>header. (Reference URI is null)
</faultstring>

<detail>

<Exception>org.apache.axis2.AxisFault: An error was discovered processing
the &lt;wsse:Security> header. (Reference URI is null)&#xd;

at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java
:88)&#xd;

at org.apache.axis2.engine.Phase.invoke(Phase.java:292)&#xd;

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)&#xd;

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)&#xd;

at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest
(HTTPTransportUtils.java:275)&#xd;

at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java
:256)&#xd;

at org.apache.axis2.transport.http.server.AxisHttpService.doService(
AxisHttpService.java:259)&#xd;

at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(
AxisHttpService.java:166)&#xd;

at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(
HttpServiceProcessor.java:85)&#xd;

at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:665)&#xd;

at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:690)&#xd;

at java.lang.Thread.run(Unknown Source)&#xd;

Caused by: org.apache.ws.security.WSSecurityException: An error was
discovered processing the &lt;wsse:Security> header. (Reference URI is
null)&#xd;

at
org.apache.ws.security.message.token.SecurityTokenReference.getTokenElement(
SecurityTokenReference.java:192)&#xd;

at org.apache.ws.security.processor.SignatureProcessor.verifyXMLSignature(
SignatureProcessor.java:197)&#xd;

at org.apache.ws.security.processor.SignatureProcessor.handleToken(
SignatureProcessor.java:85)&#xd;

at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(
WSSecurityEngine.java:284)&#xd;

at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(
WSSecurityEngine.java:206)&#xd;

at org.apache.ws.security.WSSecurityEngine.processSecurityHeader(
WSSecurityEngine.java:159)&#xd;

at org.apache.rampart.RampartEngine.process(RampartEngine.java:127)&#xd;

at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java
:85)&#xd;

... 11 more&#xd;

</Exception>

</detail>

</soapenv:Fault>

</soapenv:Body>

</soapenv:Envelope>
Thanks,
Nuria


2008/2/8, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>:
>
> Hi Nuria,
>       Are you using the latest Rampart jars ? Can you post the SOAP
> response you get from the server ?
> I checked the sample with the trunk and it worked fine for me.
>      Please take a look at this [1] thread too.
>
> Thanks,
> /nandana
>
> [1] - http://marc.info/?t=120178670800003&r=1&w=2
>
> On Feb 8, 2008 7:03 PM, Nuria Rodríguez García <[EMAIL PROTECTED]>
> wrote:
> > Hi Nandana,
> >
> > I could deploy the services without problem. But now when I execute the
> > client side I receive the following error.
> > Exception in thread "main" org.apache.axis2.AxisFault: An error was
> > discovered processing the <wsse:Security> header. (Reference URI is
> > null)[java] at
> > org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java
> :486)[java]
> > at
> > org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:343)[java]
> > at
> > org.apache.axis2.description.OutInAxisOperationClient.send(
> OutInAxisOperation.java:389)[java]
> > at
> > org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
> OutInAxisOperation.java:211)[java]
> > at
> > org.apache.axis2.client.OperationClient.execute(OperationClient.java
> :163)[java]
> > at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java
> :528)[java]
> > at
> > org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java
> :508)[java]
> > at org.apache.rampart.samples.policy.sample05.Client.main(Unknown
> Source)
> >
> > I could see that the Assertion doesn't appear in the soap envelope
> header
> >
> > Thanks,
> > Nuria
> >
> > 2008/2/7, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>:
> > >
> > >
> > >
> > > Hi Nuria,
> > >
> > > > In sample05 I can see that in the "requestSecurityToken" method the
> EPR
> > that
> > > > It's used is http://localhost:8080/axis2/services/STS but if I put
> this
> > url
> > > > in my browser I receive an error page
> > >
> > > Did you follow the following steps ?
> > >
> > > 1.) Set the AXIS2_HOME system variable to point to your axis2 home
> > directory
> > >
> > > 2.) Run the ant task "service.05" ( you have to have apache ant
> installed
> > )
> > > eg.)
> > > /path-to-rampart-source/modules/rampart-samples/policy$ ant service.05
> > >
> > > you must then be able to see something like
> > >
> > >     [java] [SimpleHTTPServer] Starting
> > >     [java] [SimpleHTTPServer] Using the Axis2 Repository
> > >
> >
> /home/nandana/work/workspace/apache/rampart/modules/rampart-samples/policy/build/service_repositories/sample05
> > >     [java] [SimpleHTTPServer] Listening on port 8080
> > >     [java] [SimpleHTTPServer] Started
> > >     [java] 2008-02-07 16:39:25,670 INFO
> > > org.apache.axis2.transport.http.server.DefaultConnectionListener -
> > > Listening on port 8080
> > >
> > > along with some other information in the console and
> > >
> > > http://localhost:8080/axis2/services/STS?wsdl
> > > http://localhost:8080/axis2/services/sample05?wsdl
> > >
> > > should show the WSDLs of the STS and the service.
> > >
> > > regards,
> > > nandana
> > >
> > > http://nandana83.blogspot.com/
> > > http://nandanasm.wordpress.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
>
>
> http://nandana83.blogspot.com/
> http://nandanasm.wordpress.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to