web-services

CertPathBuilderException: unable to find valid certification path was 8.5 network deployment

允我心安 提交于 2021-02-16 13:57:52
问题 I have a webservice client in a web application(java) deployed on Websphere 8.5 After I changed the protocol from http to https in the call of the webservice(deployed on was with selfsigned certificate) I have following error: ... javax.net.ssl.SSLHandshakeException: com.ibm.jsse2.util.j: PKIX path building failed: java.security.cert.CertPathBuilderException: unable to find valid certification path to requested target at it.xxx.LoginManagerClient.LoginManagerClient._autenticate

GnuPG + Webservice + ASP.NET

泪湿孤枕 提交于 2021-02-11 17:37:23
问题 I'm exhausted. I have installed GnuPG and exported secret key, and two public keys (my own and one of my client) from another instance of GnuPG. I try to configure 'my encrypting/decrypting' method on the local machine. When I run encrypting method from a little console application it works good. When I run this (same! - with the same body) method from my webservice on my local machine ... I have an ExitCode = 2. Happy in fact of catching the error message, but unhappy with their body. "gpg:

GnuPG + Webservice + ASP.NET

浪子不回头ぞ 提交于 2021-02-11 17:37:21
问题 I'm exhausted. I have installed GnuPG and exported secret key, and two public keys (my own and one of my client) from another instance of GnuPG. I try to configure 'my encrypting/decrypting' method on the local machine. When I run encrypting method from a little console application it works good. When I run this (same! - with the same body) method from my webservice on my local machine ... I have an ExitCode = 2. Happy in fact of catching the error message, but unhappy with their body. "gpg:

.htaccess mod_rewrite for web service as well as hide other files

怎甘沉沦 提交于 2021-02-11 16:11:55
问题 I think I know how to hide the files but how do I use mod_rewrite to allow only the web service to be called in the same directory? Here is the directory/file structure /var/www/html/xmlrpc/xmlrpc.server.php /var/www/html/xmlrpc/xmlrpc.client.php /var/www/html/xmlrpc/xmlrpc.class.php /var/www/html/xmlrpc/xmlrpc.ini /var/www/html/xmlrpc/logs Important note: /var/www/html/xmlrpc/logs has 777 permission before you start harping on me I plan to move this into a non public directory and give the

.htaccess mod_rewrite for web service as well as hide other files

筅森魡賤 提交于 2021-02-11 16:06:24
问题 I think I know how to hide the files but how do I use mod_rewrite to allow only the web service to be called in the same directory? Here is the directory/file structure /var/www/html/xmlrpc/xmlrpc.server.php /var/www/html/xmlrpc/xmlrpc.client.php /var/www/html/xmlrpc/xmlrpc.class.php /var/www/html/xmlrpc/xmlrpc.ini /var/www/html/xmlrpc/logs Important note: /var/www/html/xmlrpc/logs has 777 permission before you start harping on me I plan to move this into a non public directory and give the

.htaccess mod_rewrite for web service as well as hide other files

Deadly 提交于 2021-02-11 16:04:34
问题 I think I know how to hide the files but how do I use mod_rewrite to allow only the web service to be called in the same directory? Here is the directory/file structure /var/www/html/xmlrpc/xmlrpc.server.php /var/www/html/xmlrpc/xmlrpc.client.php /var/www/html/xmlrpc/xmlrpc.class.php /var/www/html/xmlrpc/xmlrpc.ini /var/www/html/xmlrpc/logs Important note: /var/www/html/xmlrpc/logs has 777 permission before you start harping on me I plan to move this into a non public directory and give the

Change HttpTransportFactory cxf 2.7.3

♀尐吖头ヾ 提交于 2021-02-11 15:40:57
问题 I'm trying to change the HttpURLConnection that the cxf HTTPTransportFactory uses. Cxf (version 2.7.3) uses HTTPTransportFactory for http/https request. The HTTPTransportFactory uses Conduit of type URLConnectionHTTPConduit . URLConnectionHTTPConduit has method: createConnection which returns HttpURLConnection . I need to replace HttpURLConnection with my own custom one, lets call it CustomHttpURLConnection . I managed to change the TransportFactory that cxf uses by: Creating class that

SOAP request on Java not working, but does on PHP

喜你入骨 提交于 2021-02-11 14:55:19
问题 I've been trying to find information about this, but I can't seem to find anything related exactly to my problem. When I make a soap call, using PHP class SoapClient, the request works perfectly. But when I try to do the same on Java, I get an exception, saying the URL doesn't accept POST, I've seen people building Soap calls on PHP with Curl, using POST, but I don't really know what SoapClient do. Anyway, this is the PHP Code: $url = 'https://mail.myzimbra.mx/service/wsdl/ZimbraAdminService

CXFServlet throws java.lang.NoSuchMethodError:

时光总嘲笑我的痴心妄想 提交于 2021-02-11 14:17:37
问题 java.lang.NoSuchMethodError: org.codehaus.stax2.ri.EmptyIterator.getInstance()Lorg/codehaus/stax2/ri/EmptyIterator; at com.ctc.wstx.sw.OutputElementBase.getPrefixes(OutputElementBase.java:358) at org.apache.cxf.staxutils.StaxUtils.writeStartElement(StaxUtils.java:793) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:741) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:705) at org.apache.cxf.binding.soap.saaj.SAAJOutInterceptor$SAAJOutEndingInterceptor.handleMessage

Spring XWSS Message Signing

最后都变了- 提交于 2021-02-11 12:41:06
问题 I am currently working on a client interface which connects to a third party web service. This 3rd party web service requires that all messages sent to them are signed with the client's private key. I am attempting to implement this using Spring's XWSS support as documented here: http://docs.spring.io/spring-ws/site/reference/html/security.html The issue I'm facing is that the messages I send out are not being signed despite what as far as I can tell is a correct configuration. My