Contributions
X.509 Encryption
Hi, I have developed a Web Service using CXF and secured it with WS-Security (UsernameToken Timestamp Signature Encrypt). I am using a X.509 certificate. I have tested it successfully using a CXF client. When I test using SoapUI, I get the following error: org.apache.ws.security.WSSecurityException: The signature or decryption was invalid All configuration that I have done in CXF client I could do it in SoapUI except the following: <entry key="encryptionUser" value="myservicekey"/> I am sure absence of this configuration in SoapUI is causing this error as when I remove this configuration from CXF client I get the same error. I could also test the web service successfully using SoapUI when the service is secured with UsernameToken Timestamp and Signature. Only when I add Encrypt, I get this error. Can anyone please help in testing this scenario with SoapUI. Regards Paul2.1KViews0likes3CommentsRe: Need assistance in sending MTOM attachments
Looks like I could resolve the issue. After enabling additional logging in my web service implementation I found the following: Value of the field which is used to upload file in HTTP request was: <inc:Include href="cid:892557077319" xmlns:inc="http://www.w3.org/2004/08/xop/include"/> In HTTP request the MTOM attachment's Content-ID was: <valid270.txt> The href above should match the Content-ID. As it was not matching the service was reporting the error, no attachment found. In the HTTP request from Java client these two matches. The issue is when in SoapUI Attachment tab after we browse and select a file, the ContentID defaults to the file name. If we update ContentID to the number we select from Part drop-down, then it works. Not sure if its a bug or a feature of SoapUI. Hope this finding helps others.2.5KViews0likes0CommentsNeed assistance in sending MTOM attachments
Hi, I have a web service through which clients can upload files as MTOM attachment. The web service works fine and has been tested successfully using a Java client. When I try to test the same service using SoapUI 4.6.4, I get the following error: <faultstring>No attachment for id 892557077319 found in [valid270.txt]</faultstring> I have followed the instruction in an earlier post (viewtopic.php?t=4334) but it still does not work. Any help will be greatly appreciated. Regards Paul2.8KViews0likes1CommentSending MapMessage through HermesJMS
I am trying to send a MapMessage to a JMS Topic in Weblogic 10.3 using HermesJMS in-built with sopaUI 3.6.1 with the following XML: <content> <entry type="4"> <mapMessage> <headerProperty name="headerProperty1" type="java.lang.String" value="headerPropertyValue1"/> <bodyProperty name="bodyProperty1" type="java.lang.String" value="bodyPropertyValue1"/> <bodyProperty name="bodyProperty2" type="java.lang.String" value="bodyPropertyValue2"/> </mapMessage> </entry> </entry> </content> I get the following error in HermesJMS while sending the above MapMessage: java.lang.NullPointerException at hermes.impl.DefaultXMLHelper.createMessage(DefaultXMLHelper.java:430) at hermes.impl.DefaultXMLHelper.fromMessageSet(DefaultXMLHelper.java:270) at hermes.impl.DefaultXMLHelper.fromXML(DefaultXMLHelper.java:195) at hermes.impl.DefaultHermesImpl.fromXML(DefaultHermesImpl.java:1198) at hermes.browser.tasks.SendMessageTask.invoke(SendMessageTask.java:157) at hermes.browser.tasks.TaskSupport.run(TaskSupport.java:175) at hermes.browser.tasks.ThreadPool.run(ThreadPool.java:170) at java.lang.Thread.run(Unknown Source) The same works perfectly fine with the standalone HermesJMS v1.13 Is it a known issue in the built-in HermesJMS with soapUI 3.6.1? Is a fix coming soon for this issue?14 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes0Comments