You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2002/07/04 06:22:37 UTC

DO NOT REPLY [Bug 10461] New: - No soap body created in SOAPHelper.invoke()

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10461

No soap body created in SOAPHelper.invoke()

           Summary: No soap body created in SOAPHelper.invoke()
           Product: Cocoon 2
           Version: Current CVS
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: general components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: chrisw@esd.nec.com.au


There is a bug in the current version (1.8) of 
src/java/org/apache/cocoon/components/language/markup/xsp/SOAPHelper.java

PostMethod.generateRequestBody is never called because the prototype for this 
in the org.apache.commons.httpclient.methods.PostMethod class has changed to 
pass params as a Map instead of a HashMap.

So in SOAPHelper.java the following:
import java.util.HashMap;

needs to change to 
import java.util.Map;

and 
PostMethod method = new PostMethod(url.getFile()) {
    protected String generateRequestBody(HashMap params) {

needs to change to
PostMethod method = new PostMethod(url.getFile()) {
    protected String generateRequestBody(Map params) {

and then all is hunky-dory.  I hope this will suffice, I've not reported a fix 
before.

Cheers,
Chris.

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org