Contributions
Re: Problem with Test Web Service SOAP with certificate
Hi Rupert here the logs with "—Djavax.net.debug=ssl:handshake " setted soap ui Log Fri Jul 08 00:26:09 CEST 2016:INFO:Settings saved to [C:\Users\myusr\soapui-settings.xml] Scheduling garbage collection every 60 seconds Fri Jul 08 00:26:15 CEST 2016:INFO:Reloading updated settings file Fri Jul 08 00:26:15 CEST 2016:INFO:initialized soapui-settings from [C:\Users\myusr\soapui-settings.xml] Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xop.xsd with targetNamespace http://www.w3.org/2004/08/xop/include Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/XMLSchema.xsd with targetNamespace http://www.w3.org/2001/XMLSchema Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xml.xsd with targetNamespace http://www.w3.org/XML/1998/namespace Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/swaref.xsd with targetNamespace http://ws-i.org/profiles/basic/1.1/xsd Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xmime200505.xsd with targetNamespace http://www.w3.org/2005/05/xmlmime Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/xmime200411.xsd with targetNamespace http://www.w3.org/2004/11/xmlmime Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope.xsd with targetNamespace http://schemas.xmlsoap.org/soap/envelope/ Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding.xsd with targetNamespace http://schemas.xmlsoap.org/soap/encoding/ Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/soapEnvelope12.xsd with targetNamespace http://www.w3.org/2003/05/soap-envelope Fri Jul 08 00:26:31 CEST 2016:INFO:Added default schema from file:/C:/Program%20Files/SmartBear/SoapUI-5.2.0/bin/soapui-5.2.1.jar!/com/eviware/soapui/resources/xsds/soapEncoding12.xsd with targetNamespace http://www.w3.org/2003/05/soap-encoding Fri Jul 08 00:26:31 CEST 2016:DEBUG:Getting wsdl component from [https://xxxxxxxxx.?wsdl] Fri Jul 08 00:26:31 CEST 2016:DEBUG:Attempt 1 to execute request Fri Jul 08 00:26:31 CEST 2016:DEBUG:Sending request: GET /xxxxxxxxxxxxx?wsdl HTTP/1.1 Fri Jul 08 00:26:32 CEST 2016:DEBUG:Receiving response: HTTP/1.1 403 Forbidden Fri Jul 08 00:26:32 CEST 2016:DEBUG:Connection can be kept alive for 5000 MILLISECONDS Fri Jul 08 00:26:32 CEST 2016:ERROR:Failed to load url [https://xxxxxxxxx.?wsdl] Fri Jul 08 00:26:32 CEST 2016:ERROR:An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details Fri Jul 08 00:26:40 CEST 2016:DEBUG:Connection closed Http Log Fri Jul 08 00:26:31 CEST 2016:DEBUG:>> "GET /xxxxxxxxxxxxx?wsdl HTTP/1.1[\r][\n]" Fri Jul 08 00:26:31 CEST 2016:DEBUG:>> "Host: myhost.com[\r][\n]" Fri Jul 08 00:26:31 CEST 2016:DEBUG:>> "Connection: Keep-Alive[\r][\n]" Fri Jul 08 00:26:31 CEST 2016:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]" Fri Jul 08 00:26:31 CEST 2016:DEBUG:>> "[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "HTTP/1.1 403 Forbidden[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "Date: Thu, 07 Jul 2016 22:27:14 GMT[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "Content-Length: 74[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "Keep-Alive: timeout=5, max=100[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "Connection: Keep-Alive[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "Content-Type: text/html; charset=iso-8859-1[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "[\r][\n]" Fri Jul 08 00:26:32 CEST 2016:DEBUG:<< "You need a client side certificate issued by MyFirm CA to access this site" Error Log Fri Jul 08 00:26:32 CEST 2016:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidDefinitionException(WsdlLoader.java:119) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:109) at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:488) at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:477) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:94) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:209) at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46) at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131) at java.lang.Thread.run(Unknown Source) Thanks again4.8KViews0likes2CommentsRe: Problem with Test Web Service SOAP with certificate
Hi in the meantime i followed this link "http://blog.thilinamb.com/2011/02/invoking-secured-web-service-with.html" and now i see new message that before i did not seen before (read line) : Error log Thu Jul 07 18:49:55 CEST 2016:ERROR:org.apache.ws.security.WSSecurityException: Signature creation failed (Cannot setup signature data structure) org.apache.ws.security.WSSecurityException: Signature creation failed (Cannot setup signature data structure) at org.apache.ws.security.message.WSSecSignatureBase.addReferencesToSign(WSSecSignatureBase.java:191) at org.apache.ws.security.message.WSSecSignature.addReferencesToSign(WSSecSignature.java:411) at org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:383) at com.eviware.soapui.impl.wsdl.support.wss.entries.SignatureEntry.process(SignatureEntry.java:238) at com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss.processOutgoing(OutgoingWss.java:175) at com.eviware.soapui.impl.wsdl.submit.filters.WssRequestFilter.filterWsdlRequest(WssRequestFilter.java:59) at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:39) at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:33) at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:172) at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119) at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.ws.security.WSSecurityException: General security error (WSEncryptBody/WSSignEnvelope: Element to encrypt/sign not found: http://www.w3.org/2003/05/soap-envelope, Body) at org.apache.ws.security.message.WSSecSignatureBase.addReferencesToSign(WSSecSignatureBase.java:160) ... 14 more SOAP UI LOG Thu Jul 07 18:49:55 CEST 2016:ERROR:An error occurred [Signature creation failed (Cannot setup signature data structure)], see error log for details Thu Jul 07 18:49:55 CEST 2016:DEBUG:Attempt 1 to execute request Thu Jul 07 18:49:55 CEST 2016:DEBUG:Sending request: POST /xxxxx. S HTTP/1.1 Thu Jul 07 18:49:55 CEST 2016:DEBUG:Receiving response: HTTP/1.1 403 Forbidden Thu Jul 07 18:49:55 CEST 2016:DEBUG:Connection can be kept alive for 5000 MILLISECONDS Thu Jul 07 18:49:56 CEST 2016:INFO:Got response for [xxxxxxxxxxxxxx:Request 1] in 374ms (74 bytes) Thu Jul 07 18:50:04 CEST 2016:DEBUG:Connection closed Thanks4.8KViews0likes4CommentsRe: Problem with Test Web Service SOAP with certificate
Hi Rupert i run the command "keytool -list -v -keystore server.jks -storepass password" and i see the right data. i confirm that in the browser i installed the certificate . Questions : when i use .jks file, i need to follow which of two links: 1- https://www.soapui.org/soapui-projects/ws-security.html 2- http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certificate-authentication.aspx 1 or 2 or is the same ? thanks12KViews0likes8CommentsRe: Problem with Test Web Service SOAP with certificate
Hi Rupert here HTTP LOG: Thu Jul 07 15:42:27 CEST 2016:DEBUG:>>"GET /V_DELORD01_1_0_MYC_WSCNSService/V_DELORD01_1_0_MYC_?wsdl HTTP/1.1[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:>> "Host: ww_tst.mydom.com[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:>> "Connection: Keep-Alive[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:>> "User-Agent: Apache-HttpClient/4.1.1 (java 1.5)[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:>> "[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "HTTP/1.1 403 Forbidden[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "Date: Thu, 07 Jul 2016 13:43:16 GMT[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "Server: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "Content-Length: 74[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "Keep-Alive: timeout=5, max=100[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "Connection: Keep-Alive[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "Content-Type: text/html; charset=iso-8859-1[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "[\r][\n]" Thu Jul 07 15:42:27 CEST 2016:DEBUG:<< "You need a client side certificate issued by MyFirm CA to access this site" here ERROR LOG Thu Jul 07 15:42:27 CEST 2016:ERROR:com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.makeInvalidDefinitionException(WsdlLoader.java:119) at com.eviware.soapui.impl.wsdl.support.wsdl.WsdlLoader.loadXmlObject(WsdlLoader.java:109) at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:488) at com.eviware.soapui.impl.wsdl.support.xsd.SchemaUtils.getDefinitionParts(SchemaUtils.java:477) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionCache.update(AbstractDefinitionCache.java:94) at com.eviware.soapui.impl.support.definition.support.AbstractDefinitionContext$Loader.construct(AbstractDefinitionContext.java:209) at com.eviware.soapui.support.swing.SwingWorkerDelegator.construct(SwingWorkerDelegator.java:46) at com.eviware.soapui.support.swing.SwingWorker$2.run(SwingWorker.java:131) at java.lang.Thread.run(Unknown Source) here SOAPUI LOG Thu Jul 07 15:42:27 CEST 2016:DEBUG:Getting wsdl component from [https://xxxxxx...?wsdl] Thu Jul 07 15:42:27 CEST 2016:DEBUG:Attempt 1 to execute request Thu Jul 07 15:42:27 CEST 2016:DEBUG:Sending request: GET /xxxxxxxxx....?wsdl HTTP/1.1 Thu Jul 07 15:42:27 CEST 2016:DEBUG:Receiving response: HTTP/1.1 403 Forbidden Thu Jul 07 15:42:27 CEST 2016:DEBUG:Connection can be kept alive for 5000 MILLISECONDS Thu Jul 07 15:42:27 CEST 2016:ERROR:Failed to load url [https://xxxxxxxxxxxx?wsdl] Thu Jul 07 15:42:27 CEST 2016:ERROR:An error occurred [com.eviware.soapui.impl.support.definition.support.InvalidDefinitionException], see error log for details Thu Jul 07 15:42:35 CEST 2016:DEBUG:Connection closed thanks12KViews0likes0CommentsRe: Problem with Test Web Service SOAP with certificate
Hi Rupert, thanks for your reply i followed the instruction at this page "https://www.tbs-certificates.co.uk/FAQ/en/626.html" to create .jsk file, then i followed the instruction at "http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certificate-authentication.aspx" forconfiguring certificate selecting the .jsk file, but the problem remain the same.. any other idea ? thanks in advanceù12KViews0likes13CommentsProblem with Test Web Service SOAP with certificate
Hi all i'm new in this forum ..and i'm new in this argumentsand so , sorry if my questions are stupids .This is my scenario: until yesterady i have a SOAP web service that i could test with SOAP UI (Vers 5.2.1 free version); then today has been installed a certifcate to access to this Ws and now not working more the WS; i tried to follows the instructions at http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certificate-authentication.aspx to install certificate in Soap UI but in the SOAP UI log i see "Thu Jul 07 12:20:04 CEST 2016:DEBUG:<< "You need a client side certificate issued byMyFirm CA to access this site". questions / doubts: 1. the certificate that i use is ".p12" ; this a type certification correct ? 2. If i try to access to the Wsdl Web Service via Browser (after installing the certificate) , i see the Wsdl file which could be the problem Thanks in advance P.S. this is the error that i see in the SOAP UI FORM: there was something wrong with the wsdl you are trying to import Error loading https://myww.com/xxxxx...... org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDAT13KViews0likes15Comments