You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2005/03/29 21:10:02 UTC

DO NOT REPLY [Bug 34226] New: - no visualization of SOAP over HTTP content, with patch fix

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=34226>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=34226

           Summary: no visualization of SOAP over HTTP content, with patch
                    fix
           Product: JMeter
           Version: 2.0.2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTTP
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: asquassabia@yahoo.com


ViewResultFullVisualizer.java checks for the presence of text/html to allow 
text mode visualization, but not for any signs of SOAP content like text/xml 
or a SOAPAction header.  Accordingly, SOAP content never appears.  The 
following patch fixes that inconvenience in a jdk 1.3 compatible manner.

--- c:\ViewResultsFullVisualizer.original.java	2005-03-23 14:59:05.254077800 -
0700
+++ ViewResultsFullVisualizer.java	2005-03-11 13:48:41.842741100 -0700
@@ -320,7 +320,12 @@
 
 					// get the text response and image icon
                     // to determine which is NOT null
-                    if ((SampleResult.TEXT).equals(res.getDataType())) // 
equals(null) is OK
+                    log.debug("valueChanged1 : response data type -
 "+res.getDataType());
+                    // SOAP
+                    boolean soapRequest = -1<res.getRequestHeaders().indexOf
("SOAPAction");
+                    log.debug("valueChanged1 : is soap request -
 "+soapRequest);
+                    if ((SampleResult.TEXT).equals(res.getDataType())|| 
soapRequest) // equals(null) is OK
+                    // SOAP end
                     {
 	                    String response = getResponseAsString(res);
 	                    if (textMode)
@@ -374,8 +379,12 @@
 	{
     	
         byte[] responseBytes = res.getResponseData();
+        log.debug("response data\n"+(new String(res.getResponseData())));
         String response = null;
-        if ((SampleResult.TEXT).equals(res.getDataType()))
+        // SOAP
+        boolean soapRequest = -1<res.getRequestHeaders().indexOf
("SOAPAction");
+        if ((SampleResult.TEXT).equals(res.getDataType())|| soapRequest)
+        // SOAP end
         {
             try
             {

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org