The Web Service Call and SQL Call builders connect to resources outside of your working model. Therefore, it is useful in development to be able to log the events that occur within these builders to ensure that the data from the resources is being accessed correctly.
Before looking for an error in your model, determine that the builders are acquiring valid data from the resource. The logging feature in these builders allows you to log the communication between the model and the data resource.
Web Service Call and SQL Call builders write their output to the debugTracing.txt
log located in the ...\\wpf.war\\WEB-INF\\logs
For the Web Service Call builder, the log4j features will log the initial call of the model associated with the Web Service Call builder. It would then log the web service call request with argument name, type and value followed by the response, if any, with the same type information that was logged in the request. With each log entry in the debugTracing.txt
is the Time/Date, Category, Priority, Thread, and the Message.
A typical log entry might look as follows:
Example of a request:
*-- TIME: [2004-08-26 11:36:25,061] --*
Msg: ServiceCall: arg name=registrationInfo class=com.bowstreet.util.IXml val=<RegistrationRequest xmlns="http://bowstreet.com/registrationinfo"><userName>johnDoe</userName>
<address1>200 Ames Pond Drive</address1>
Parent topic: Setting up logging in service call and SQL builders: wpf7