Contributions
Disable automatic retry?
Hi: I'm currently using SOAPUI Pro 6.1. I've noticed that in some cases if a SOAPUI request fails authentication, then SOAPUI will automatically send the request again. Is there any way to turn this feature off? I don't ever want to send a second request, as my test case is expecting the authentication to fail. I have 'Authenticate Preemptively' turned on. Thanks, Dave1.6KViews0likes1CommentPOST with MIME format causes Null Pointer exception
Hi: I'm using the latest SOAPUI Pro 3.6 beta 2 nightly build to run a REST mock service using a groovy script in the OnRequest tab. When I send a normal POST request to the mock service, everything works fine. However, if I send a POST that MIME content ( multipart/form-data) the the mock service returns an error. This works fine in SOAPUI Pro 3.5.1. See this error log: Tue Aug 31 11:52:06 EDT 2010:ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException com.eviware.soapui.impl.wsdl.mock.DispatchException: java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:397) at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:701) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.NullPointerException at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.initPostRequest(WsdlMockRequest.java:114) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.<init>(WsdlMockRequest.java:103) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:377) ... 11 more Here is my request: POST /messaging/outbound/www.myaddress.com/requests HTTP/1.1 Content-Type: multipart/form-data; boundary="===============123456=="; charset=UTF-8 MIME-Version: 1.0 X-Forwarded-Server: AlcatelLucentWSG X-Forwarded-Host: 138.120.215.215 Accept-Encoding: gzip,deflate X-Forwarded-For: 135.244.6.250 Transfer-Encoding: chunked Host: 135.244.6.250:5555 Connection: Keep-Alive User-Agent: OmniAccess 8550 WSG 4ad --===============123456== Content-Disposition: multipart/form-data; name=”root-fields” Content-Type: application/xml; charset="utf-8" Content-Length: nnnn <?xml version="1.0"?> <mms:outboundMessageRequest xmlns:mms="urn:oma:xml:rest:messaging:1"> <address>tel:1350000001</address> <address>tel:1350000999</address> <senderAddress>tel:1351111999</senderAddress> <senderName>MyName</senderName> <receiptRequest> <notifyURL>http://application.example.com/notifications/DeliveryInfoNotification</notifyURL> <callbackData>12345</callbackData> </receiptRequest> <outboundMMSMessage> <subject>hello from the rest of us!</subject> <priority>High</priority> </outboundMMSMessage> <clientCorrelator>567895</clientCorrelator> </mms:outboundMessageRequest> --===============123456== Content-Disposition: multipart/form-data; name=”attachments” Content-Type: multipart/mixed; boundary=”===12345===” ===12345===” Content-Disposition: attachments; filename="picture.gif" Content-Type: text/plain; See attached photo ===12345===” Content-Disposition: attachment; filename="picture.gif" Content-Type: image/gif GIF89a...binary image data... --===============123456==-- 0 Please let me know if there is a workaround or if it can be fixed. Thanks, Dave1.9KViews0likes3CommentsPOST with query parameters in body causes Dispatch exception
Hi: I'm using the latest SOAPUI Pro 3.6 beta 2 nightly build to run a REST mock service using a groovy script in the OnRequest tab. When I send a normal POST request to the mock service, everything works fine. However, if I send a POST that has query parameters in the body (application/x-www-form-urlencoded) the mock service returns an error. See this error log: Tue Aug 31 11:37:14 EDT 2010:ERROR:com.eviware.soapui.impl.wsdl.mock.DispatchException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA com.eviware.soapui.impl.wsdl.mock.DispatchException: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:397) at com.eviware.soapui.monitor.JettyMockEngine$ServerHandler.handle(JettyMockEngine.java:701) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:842) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: org.apache.xmlbeans.XmlException: error: Unexpected element: CDATA at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3486) at org.apache.xmlbeans.impl.store.Locale.parse(Locale.java:712) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:696) at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:683) at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:208) at org.apache.xmlbeans.XmlObject$Factory.parse(XmlObject.java:580) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.getRequestXmlObject(WsdlMockRequest.java:271) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.initPostRequest(WsdlMockRequest.java:148) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRequest.<init>(WsdlMockRequest.java:103) at com.eviware.soapui.impl.wsdl.mock.WsdlMockRunner.dispatchRequest(WsdlMockRunner.java:377) ... 11 more Caused by: org.xml.sax.SAXParseException: Unexpected element: CDATA at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038) at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723) at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3454) ... 20 more Here is my request: POST http://138.120.215.215/outbound/requests HTTP/1.1 Connection: close Accept-Encoding: gzip,deflate Content-Type: application/x-www-form-urlencoded User-Agent: Jakarta Commons-HttpClient/3.1 Host: 138.120.215.215 Content-Length: 256 address=tel:%2B13500000991& address=tel:%2B13500000991& senderAddress=tel:%2B12345678& message=Hello%20World& clientCorrelator=123456& notifyURL=http://application.example.com/notifications/DeliveryInfoNotification& notificationFormat=XML& senderName=Bob Please let me know if there is a workaround or if it can be fixed. Thanks, Dave1.7KViews0likes1Comment- 1.2KViews0likes0Comments
- 1.5KViews0likes0Comments
- 1KViews0likes0Comments