From fcohen at pushtotest.com Fri Dec 8 22:59:28 2006 From: fcohen at pushtotest.com (Frank Cohen) Date: Sat Dec 9 13:19:58 2006 Subject: [Dev] bug or not bug In-Reply-To: References: Message-ID: Hi Fabrice: I'm assembling a maintenance release of TestMaker and would like to incorporate your changes. >>I found that with document encoded the Http Header doesn't have the >>Authorization element, so method setUsername and setPassword was useless I'm not seeing where to set the authorization using Apache SOAP. If you have a patch I'll apply it. >> Looking at com.pushtotest.tool.protocolhandler.SOAPProtocol source, I >> found that the soapDocCall method doesn't assign any SOAPransport >> object to the >> org.apache.soap.messaging.Message() used to call the WebService >> nor reuse the SOAPTransport created in the connect() method. >> I don't know if it was done on purpose or if it'a bug, but to make >> it work with my project I had to add the line >> msg.setSOAPTransport(call.getSOAPTransport()); >> before sending the message in the soapDocCall method In com.pushtotest.tool.protocolhandler.SOAPProtocol on line 221 the code sets the transport. call.setSOAPTransport(transport); Is that not right? -Frank On Sep 15, 2006, at 1:11 PM, Fabrice.Robbe@devoteam.com wrote: > > I'm using TestMaker4.4 in a project and with Web Services using > Document Encoded SOAP message with HTTP Authorization. > I found that with document encoded the Http Header doesn't have the > Authorization element, so method setUsername and setPassword was > useless > Looking at com.pushtotest.tool.protocolhandler.SOAPProtocol source, > I found that the soapDocCall method doesn't assign any SOAPransport > object to the > org.apache.soap.messaging.Message() used to call the WebService nor > reuse the SOAPTransport created in the connect() method. > I don't know if it was done on purpose or if it'a bug, but to make > it work with my project I had to add the line > msg.setSOAPTransport(call.getSOAPTransport()); > before sending the message in the soapDocCall method > > Fabrice Robbe > Devoteam Applications > 86 rue Anatole France 92300 Levallois Perret > T?l : 01.41.49.55.73 - Fax : 01.41.05.08.61 > Email : fabrice.robbe@devoteam.com > > > _______________________________________________ > Dev mailing list > Dev@lists.pushtotest.com > http://lists.pushtotest.com/mailman/listinfo/dev