Hi all,

I am having problems figuring out how to log the Request and Response
objects after successfully calling a .NET Web Service.  I created the
client using Eclipse Kepler that generated all the skeleton code for me.
 I'm using the 2.7.8 version of CXF and Java jdk1.7.0_45.

I've read a lot about interceptors and believe that is the way to go,
however I can't figure out how to add an interceptor to what is generated.
 Everything object generated in the client does not allow an interceptor to
be added.  It's like everything got generated at too high of a level for me
to add interceptors.

Not sure if this section of code will be useful to illustrate what I'm
seeing, but including in hopes that it is:

PhoneBookManagement ss = new PhoneBookManagement(wsdlURL, SERVICE_NAME);
PhoneBookManagementSoap port = ss.getPhoneBookManagementSoap();

com.pbsystems.yellow.wsdl.v1x0.PhoneBookVerificationByPhoneNumberRequest
_phoneBookVerificationByPhoneNumber_payload = new
com.pbsystems.yellow.wsdl.v1x0.PhoneBookVerificationByPhoneNumberRequest();

I'd like to log the _phoneBookVerificationByPhoneNumber_payload SOAP
request to the DB at this point, and all I see are my getters and setters

com.pbsystems.yellow.wsdl.v1x0.PhoneBookVerificationResponse
_phoneBookVerificationByPhoneNumber__return =
port.phoneBookVerificationByPhoneNumber(_phoneBookVerificationByPhoneNumber_payload);

After the call to the service I'd now like to log the
_phoneBookVerificationByPhoneNumber__return SOAP response object to the DB.

Thanks for any help with this!

Reply via email to