You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Sumit Shah (JIRA)" <ji...@apache.org> on 2009/01/29 20:14:00 UTC

[jira] Created: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

WSSecurityException: Error in converting SOAP Envelope to Document
------------------------------------------------------------------

                 Key: RAMPART-212
                 URL: https://issues.apache.org/jira/browse/RAMPART-212
             Project: Rampart
          Issue Type: Bug
          Components: rampart-core
    Affects Versions: 1.4
            Reporter: Sumit Shah
            Assignee: Ruchith Udayanga Fernando


I am seeing the following error message upon further debugging in Eclipse:

    [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
    [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
eption2: ParseError at [row,col]:[32,54]
    [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
    [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
(Axis2Util.java:161)
    [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
ta.java:158)
    [junit]     ... 26 more
    [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt



So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 

<ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>


Thanks
Sumit



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669410#action_12669410 ] 

Andreas Veithen commented on RAMPART-212:
-----------------------------------------

The stacktrace still looks incomplete. In particular it doesn't show at what stage in the message exchange (in/out, request/response) this happens.

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Sumit Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668598#action_12668598 ] 

Sumit Shah commented on RAMPART-212:
------------------------------------

Complete stack trace



 

    [junit] Nov 25, 2008 5:30:43 PM org.apache.axis2.engine.AxisEngine receive

    [junit] SEVERE: Error in extracting message properties

    [junit] org.apache.axis2.AxisFault: Error in extracting message properties

    [junit]     at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThr

owAxisFault(RampartReceiver.java:172)

    [junit]     at org.apache.rampart.handler.RampartReceiver.invoke(RampartRece

iver.java:99)

    [junit]     at org.apache.axis2.engine.Phase.invoke(Phase.java:317)

    [junit]     at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264

)

    [junit]     at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:16

3)

    [junit]     at org.apache.axis2.description.OutInAxisOperationClient.handleR

esponse(OutInAxisOperation.java:363)

    [junit]     at org.apache.axis2.description.OutInAxisOperationClient.send(Ou

tInAxisOperation.java:416)

    [junit]     at org.apache.axis2.description.OutInAxisOperationClient.execute

Impl(OutInAxisOperation.java:228)

    [junit]     at org.apache.axis2.client.OperationClient.execute(OperationClie

nt.java:163)

    [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv

erting SOAP Envelope to Document; nested exception is:

    [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc

eption2: ParseError at [row,col]:[32,54]

    [junit] Message: Element type "null" must be followed by either attribute sp

ecifications, ">" or "/>".

    [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope

(Axis2Util.java:161)

    [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa

ta.java:158)

    [junit]     ... 26 more

    [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt

reamException2: ParseError at [row,col]:[32,54]

    [junit] Message: Element type "null" must be followed by either attribute sp

ecifications, ">" or "/>".

    [junit]     at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBui

lder.java:249)

    [junit]     at org.apache.axiom.om.impl.llom.OMNodeImpl.build(OMNodeImpl.jav

a:327)

    [junit]     at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementIm

pl.java:706)

    [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope

(Axis2Util.java:96)

    [junit]     ... 27 more

    [junit] Caused by: com.sun.xml.stream.XMLStreamException2: ParseError at [ro

w,col]:[32,54]

    [junit] Message: Element type "null" must be followed by either attribute sp

ecifications, ">" or "/>".

    [junit]     at com.sun.xml.stream.XMLReaderImpl.next(XMLReaderImpl.java:574)

 

    [junit]     at org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StA

XOMBuilder.java:506)

    [junit]     at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBui

lder.java:161)

    [junit]     ... 30 more

    [junit] org.apache.axis2.AxisFault: Error in extracting message properties

    [junit]     at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThr

 

 

 




> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669628#action_12669628 ] 

Andreas Veithen commented on RAMPART-212:
-----------------------------------------

Did you monitor the connection between client and server (using Wireshark or TCPMon e.g.)?

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Sumit Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669675#action_12669675 ] 

Sumit Shah commented on RAMPART-212:
------------------------------------

Apparently its all generated by Axis2/Axiom/Rampart. I will try to use Axiom 1.2.8 to see if the issue is resolved. 

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669647#action_12669647 ] 

Andreas Veithen commented on RAMPART-212:
-----------------------------------------

Note that the SOAP response in attachment is actually not valid (with respect to namespaces): The "wsu" prefix in wsu:Id="STRId-20881263" is not bound. WSCOMMONS-372 provides a potential explanation why this triggers a seemingly unrelated error (Element type "null" must be followed by either attribute specifications, ">" or "/>"). Maybe for debugging purposes it would be interesting to run the code with Axiom 1.2.8 (where WSCOMMONS-372 has been solved), to see if this gives a clearer error message.

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Sumit Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669640#action_12669640 ] 

Sumit Shah commented on RAMPART-212:
------------------------------------

Yes...I used TCPMon and Eclipse Debugger.

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Sumit Shah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sumit Shah updated RAMPART-212:
-------------------------------

    Attachment: soapResponse.xml

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668565#action_12668565 ] 

Andreas Veithen commented on RAMPART-212:
-----------------------------------------

Can you post or attach the complete stack trace?

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (RAMPART-212) WSSecurityException: Error in converting SOAP Envelope to Document

Posted by "Sumit Shah (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/RAMPART-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12669625#action_12669625 ] 

Sumit Shah commented on RAMPART-212:
------------------------------------

This happens on the Client side when it is trying to process the response from the server. The attached XML file is the SOAP response from the server to the client (captured just before the server dispatches it to the client).  

> WSSecurityException: Error in converting SOAP Envelope to Document
> ------------------------------------------------------------------
>
>                 Key: RAMPART-212
>                 URL: https://issues.apache.org/jira/browse/RAMPART-212
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.4
>            Reporter: Sumit Shah
>            Assignee: Ruchith Udayanga Fernando
>         Attachments: soapResponse.xml
>
>
> I am seeing the following error message upon further debugging in Eclipse:
>     [junit] Caused by: org.apache.ws.security.WSSecurityException: Error in conv erting SOAP Envelope to Document; nested exception is:
>     [junit]     org.apache.axiom.om.OMException: com.sun.xml.stream.XMLStreamExc
> eption2: ParseError at [row,col]:[32,54]
>     [junit] Message: Element type "ds:DigestValue" must be followed by either at tribute specifications, ">" or "/>".
>     [junit]     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope
> (Axis2Util.java:161)
>     [junit]     at org.apache.rampart.RampartMessageData.<init>(RampartMessageDa
> ta.java:158)
>     [junit]     ... 26 more
>     [junit] Caused by: org.apache.axiom.om.OMException: com.sun.xml.stream.XMLSt
> So it seems like there is some issue with the <ds:digestValue> element in the SOAP response. Not sure if the is '/' in the value? 
> <ds:DigestValue>/YCB0pq6VHFcVsY3LFhbP/l3aEk=</ds:DigestValue> and <ds:DigestValue>AoOTJm/OC6P/UX0uTj3uos8r/6Y=</ds:DigestValue>
> Thanks
> Sumit

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.