Hi Shams,
I think if you could attach a trace of the SOAP message, Rampart/Java
guys may be able to find the reason for the fault string in the
response. The complaint is about a missing encryption result for an
Id(NULL?), which they have to match with the message. The PHP client and
its configurations seems to be correct.
-Kaushalye
shams jawaid wrote:
Hi,
i am currently trying to encrypt and sign a simple service from a php
client to a java web service. the request is encrypted and signed, but
the service side response recieves this error in tcpmon:
<faultstring>Missing encryption result for id : </faultstring>
and in tomcat, this is the output:
INFO: Server startup in 3734 ms
[INFO] Verification successful for URI '#SigID-402a0180-2c19-4f2e'
[INFO] Verification successful for URI '#SigID-a673ae2e-5835-4d1f'
in my client side, i have included the keys:
$my_cert = ws_get_cert_from_file('alice_cert.cert'); // client side
certificate( public key)
$my_key = ws_get_key_from_file('alice_key.pem'); // client side key
$rec_cert = ws_get_cert_from_file('bob_cert.cert'); // server side
certificate (public key )
and in my service side key (service.jks) referenced like this:
<ramp:signatureCrypto>
<ramp:crypto provider='org.apache.ws.security.components.crypto.Merlin'>
<ramp:property
name='org.apache.ws.security.crypto.merlin.keystore.type'>JKS</ramp:property>
<ramp:property
name='org.apache.ws.security.crypto.merlin.file'>service.jks</ramp:property>
<ramp:property
name='org.apache.ws.security.crypto.merlin.keystore.password'>apache</ramp:property>
</ramp:crypto>
</ramp:signatureCrypto>
<ramp:encryptionCypto>
<ramp:crypto provider='org.apache.ws.security.components.crypto.Merlin'>
<ramp:property
name='org.apache.ws.security.crypto.merlin.keystore.type'>JKS</ramp:property>
<ramp:property
name='org.apache.ws.security.crypto.merlin.file'>service.jks</ramp:property>
<ramp:property
name='org.apache.ws.security.crypto.merlin.keystore.password'>apache</ramp:property>
</ramp:crypto>
</ramp:encryptionCypto>
</ramp:RampartConfig>
i have includeded :
[1] alice_cert
[2] bob_cert
[3] bob_key (although i am unsure whether this was imported properly,
and am thinking this might be the cause of the error)
i have attached my service.properties, service.jks, PWCBHandler.class,
services.xml and my service file.
i have also attached my client side files including the alice_key,
alice_cert, bob_cert, php client file and the policy.xml file.
If anyone can solve this error out there it would be a tremendous
help, or if anyone can create a keystore properly if i have not done
so, please do. i suspect this is the reason why. the keystore attached
is service.jks
thanks alot!
------------------------------------------------------------------------
The next generation of MSN Hotmail has arrived - Windows Live Hotmail
<http://www.newhotmail.co.uk>
------------------------------------------------------------------------
_______________________________________________
Wsf-php-user mailing list
[EMAIL PROTECTED]
http://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user
--
http://kaushalye.blogspot.com/
http://wso2.org/