Axis2 Problem: WSHandler: Prüfen Unterschrift Bestätigung: gespeichert SV Vektor nicht leer

StackOverflow https://stackoverflow.com/questions/3583502

Frage

Ich habe Problem mit Webservice Abfragen, das WS-Security verwendet. Ich Verwendung Code von axis2 mit rampard Modul, das Gerät WS-Security creadted. Ich denke, dass ich gute Abfrage machen, und ich bekam Antwort, aber diese Antwort etwas meinen Klienten nicht verstehen. Ausnahme wie folgt aussehen:

 INFO [main] (?:?) - Verification successful for URI "#element-113-1282904809584-289878786"
 INFO [main] (?:?) - Verification successful for URI "#timestamp"
ERROR [main] (AxisEngine.java:209) - WSHandler: Check Signature confirmation: stored SV vector not empty
org.apache.axis2.AxisFault: WSHandler: Check Signature confirmation: stored SV vector not empty
    at org.apache.rampart.handler.WSDoAllReceiver.processMessage(WSDoAllReceiver.java:92)
    at org.apache.rampart.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:72)
    at org.apache.axis2.engine.Phase.invoke(Phase.java:318)
    at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:251)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:160)
    ...

Meine rampard Konfiguration in axis2.xml:

<parameter name="InflowSecurity">
  <action>
    <items>Signature Encrypt</items>
    <passwordCallbackClass>pl.firstdata.www.wdx.business.card.PWCallback</passwordCallbackClass>
    <signaturePropFile>client.properties</signaturePropFile>
    <signatureKeyIdentifier>SKIKeyIdentifier</signatureKeyIdentifier>
    <signatureParts>{Element}{http://schemas.xmlsoap.org/soap/envelope/}Body</signatureParts>
    <encryptionKeyIdentifier>SKIKeyIdentifier</encryptionKeyIdentifier>
    <encryptionUser>wdx_test</encryptionUser>
  </action>
</parameter> 

Gibt es etwas, das ich auf Client-Seite tun können, um nicht eine solche Ausnahme zu bekommen?

War es hilfreich?

Lösung

Ich änderte axis2.xml Konfigurationsdatei und fügte hinzu:

<parameter name="InflowSecurity">
  <action>
    ... 
    <enableSignatureConfirmation>false</enableSignatureConfirmation>
  </action>
</parameter>

Jetzt ist mein Kunde nicht erwartet Unterschrift Bestätigung in Server-Antwort.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top