public string GetCountryDetails(string xmlstring) { try { string bodyxml = OperationContext.Current.RequestContext.RequestMessage.Tostring(); } catch(Exception ex) { } }
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Header> <To soapenv:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://localhost:51047/Service1.svc</To> <Action soapenv:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">urn:IService1/GET_COUNTRY_DETAILS</Action> </soapenv:Header> <soapenv:Body>... stream ...</soapenv:Body> </soapenv:Envelope>
public string GetCountryDetails(string xmlstring) { try { string bodyxml = OperationContext.Current.RequestContext.RequestMessage.GetBodyAttribute("attributename","namespace"); } catch (Exception ex) { } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)