Print Soap messages in log file
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   joshua
Posted On:   Friday, May 31, 2013 02:56 AM

Hi, I'm new to web service. I need to get the Soap messages in log file. using slf4j for logging. This is the method used.  private Port getPort() { if (port == null) { try { ReportServ service = new ReportServ(new URL(wsdlUrl)); port = service.getReportSoap11();   BindingProvider bp = (BindingProvider) port; bp.getRequestContext().put(javax.xml.ws.service.endpoint.address, endpointURL); } catch (Exception e) { } }   return port; }    More>>

Hi,

I'm new to web service. I need to get the Soap messages in log file. using slf4j for logging. This is the method used. 

private Port getPort() {
if (port == null) {
try {
ReportServ service = new ReportServ(new URL(wsdlUrl));
port = service.getReportSoap11();
 
BindingProvider bp = (BindingProvider) port;
bp.getRequestContext().put(javax.xml.ws.service.endpoint.address, endpointURL);
} catch (Exception e) {
}
}
 
return port;
}
   <<Less
About | Sitemap | Contact