0

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.

Community
  • 1
  • 1
stsong
  • 1
  • 2

1 Answers1

0

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 :)

stsong
  • 1
  • 2