Last post Sep 12, 2015 10:04 AM by rakesh_42
Aug 20, 2015 12:08 PM|rakesh_42|LINK
I made a web service which consist 5 method which uses same URL. My service is soap based and calling process is by using poster. i post request xml in postman with service url. According to request xml mapped method will call. my question is :
When i post invalid xml to post man with service url, service return soap fault exception in postman response i want to customize fault message and for each type post message, service should return an customize error message. any one please help
Aug 20, 2015 12:09 PM|rakesh_42|LINK
if i post invalid xml(Ex. some xml tags missing) in poster. in that case my web service method do not call so there is no mean if i apply try catch in service method write????
my service return soap fault for ex.
<faultstring>System.Web.Services.Protocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action.
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)</faultstring>
i want this Response should be customize. thanks
Aug 28, 2015 04:04 AM|Zhi Lv - MSFT|LINK
i want this Response should be customize.
According to your description, I suggest you could refer to the following articles to customizing SOAP Message Formatting.
Standard SOAP Message Formats Specified Using WSDL: Describes the standard SOAP message formats that are specified using WSDL.
How to: Control the Overall SOAP Body Formatting for a Web Service Method: Describes how to control the overall SOAP body formatting for a Web service method.
How to: Control Parameter and Return Value Formatting for a Web Service Method: Describes how control parameter and return value formatting for a Web service method.
How to: Control Whether Web Service Method Parameters Are Enclosed in an Extra Element: Describes how to control whether Web service method parameters are enclosed in
an extra element.
How to: Modify the Default SOAP Formatting for an Entire Web Service: Describes how to modify the default SOAP formatting for an entire Web service.
Sep 12, 2015 10:04 AM|rakesh_42|LINK
for suggestion i have completed our task By implementing SoapExtension in our web services