Need Raw XML For Request & Response In UPS API (.Net console app)

249 Views Asked by At

Need Raw XML For Request & Response In UPS API (.Net)

Trying to implement logging with code posted from the post above but I am having trouble with code posted. TranceExtension returns everything as null. Any help is appreciated.

Thank you.

1

There are 1 best solutions below

0
stsong On

Answered my own question. For those who struggle like I did, if you are getting Null for both Request and Respose, need to register the extension before instantiating the ShipService.

TraceExtension.RegisterSoapExtension( typeof( TraceExtension ), 1, 0 ); ShipService shpSvc = new ShipService();

Hope this help someone :)