c# - Error propagation from wcf to asmx -


i have web method (.asmx web service), consume service method (wcf service). however, want write more logic within web method based on different type of custom exception thrown wcf service using faultcontract<t>. may able achieve if revise target framework of .asmx web service 2.0 3.x support generics. however, not advisable since web service been live , been used other legacy application @ client side.

can advise me on how handle wcf custom exceptions within .asmx web method ?. not fuss having generic exception long shall able identify type of wcf fault in web method.

note: trying achieve staged decommission approach individual .asmx web service shall replaced wcf counterpart. , prove stakeholders on how both web service , wcf service can coexists without impacting business. hope make sense.

because you're restricted running in .net2 in order interoperate wcf service, service have use basichttpbinding. because basichttpbinding uses soap 1.1 communicate clients, , there no soap 1.2 stack in .net2.

if service defines fault contracts because service wants expose typed exceptions clients.

however, don't know happen .net 2.0 client when receiving these suspect client fall on .net exception of kind. if there useful in exception can use handle don't know, have test out yourself.

at rate, there no nice way can think of work. hope helps you.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -