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

Print Soap messages in log file...
joshua
Fri 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;
}
About | Sitemap | Contact