[SOLVED] Java SOAP Client exception
Posted: Wed Aug 25, 2010 4:19 am
I'm invoking SOAP requests from a Java client and pro grammatically writing the soap request and invoking it. The outcome of my request looks as follows:
http://schemas.xmlsoap.org/soap/envelope/">
admin
testadmin
The exception I get is the following:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Now on another hand if I use the zmsoap utility to send the same request the request succeeds and here's the output:
zmsoap -z AuthRequest/account=admin @by=name ../password=testadmin -vv
Output:
Sending admin auth request to https://localhost:7071/service/admin/so ... admin/soap
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
zimbra
***
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
0_005d6e520a976d2095e9908551d5bdde93cc2bb1_69643d33363a65306661666438392d313336302d313164392d383636312d3030306139356439386566323b6578703d31333a313238323737303134373538363b61646d696e3d313a313b747970653d363a7a696d6272613b
43200000
false
Sending request to https://localhost:7071/service/admin/so ... admin/soap
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
0_005d6e520a976d2095e9908551d5bdde93cc2bb1_69643d33363a65306661666438392d313336302d313164392d383636312d3030306139356439386566323b6578703d31333a313238323737303134373538363b61646d696e3d313a313b747970653d363a7a696d6272613b
admin
***
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
0_31eaf7e80c9e15c68a36f9d1e804d0724ad6dfa1_69643d33363a63646666663332332d383463372d343038662d393439352d3939396436386130333636623b6578703d31333a313238323737303134373637313b61646d696e3d313a313b747970653d363a7a696d6272613b
43200000
false
What am I missing in here?
http://schemas.xmlsoap.org/soap/envelope/">
admin
testadmin
The exception I get is the following:
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Now on another hand if I use the zmsoap utility to send the same request the request succeeds and here's the output:
zmsoap -z AuthRequest/account=admin @by=name ../password=testadmin -vv
Output:
Sending admin auth request to https://localhost:7071/service/admin/so ... admin/soap
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
zimbra
***
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
0_005d6e520a976d2095e9908551d5bdde93cc2bb1_69643d33363a65306661666438392d313336302d313164392d383636312d3030306139356439386566323b6578703d31333a313238323737303134373538363b61646d696e3d313a313b747970653d363a7a696d6272613b
43200000
false
Sending request to https://localhost:7071/service/admin/so ... admin/soap
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
0_005d6e520a976d2095e9908551d5bdde93cc2bb1_69643d33363a65306661666438392d313336302d313164392d383636312d3030306139356439386566323b6578703d31333a313238323737303134373538363b61646d696e3d313a313b747970653d363a7a696d6272613b
admin
***
http://www.w3.org/2003/05/soap-envelope ... p-envelope">
0_31eaf7e80c9e15c68a36f9d1e804d0724ad6dfa1_69643d33363a63646666663332332d383463372d343038662d393439352d3939396436386130333636623b6578703d31333a313238323737303134373637313b61646d696e3d313a313b747970653d363a7a696d6272613b
43200000
false
What am I missing in here?