public void method(SOAPEnvelope req, SOAPEnvelope resp){
resp = req;
}

And this is correct, that it doesn't work. You are changing reference of resp, and so, you don't change the the output envelope. You can only change the object referenced by resp, not reference itself. So you can do something like that:


resp.addBody(req.getFirstBody());

(I'm not sure about methods - I don't have documentation here). The othre solution is use other method signature. This is correct:

public Document method(Document body) {
    return body;
}

But in this way you don't have access to SOAP Headers.

Regards,
Marcin

--
-------------------------------------------------------------
                      Marcin Okraszewski
[EMAIL PROTECTED]                                       GG: 341942
[EMAIL PROTECTED]          PGP: www.okrasz.prv.pl/pgp.asc
-------------------------------------------------------------




Reply via email to