c# - WCF Soap Service Randomly Failing -
i have soap service calling. works around 90% of time. cannot seem pinpoint causing issue. making difficult fix since cannot replicate issue.
i randomly getting following error:
cautl001e failed load xml document string [<?xml version="1.0" encoding="utf-8" standalone="no" ?> <message> <header> <protocolversion>550</protocolversion> <protocolinfo>3</protocolinfo> </header> <elements>b6ff2099f2a58662bbd3b814a5537e076cf08657d2d73e28fa37eae1cd42e8c6a7f65fa5bf004fdd3faf3fb4185ce34f51724c912f281a08828acc50a42c8b659b5b26e51dea1f742a8c9f8857b7cac569374d540210ef8d58dd6c82670f2d3bcb20987a36930d311318310a9995a2eed73d9457313361525ee4edc1c9c3ac6a4654adf0cd8783e2a5a2ec9230c2f1ee6247e5176a8faf9872edf83a6a86b60a8bbdef8f732b8887cd1348cbe837384470e57818f821a40f9d95a92382a23cf8309bd37598d29121d96333535b5f72716382a8f319942edcb7605b55866178d605d35f00dccedb08cdc5182dbcdfe41eea87a49ff76ac96b1d381ff3247cddb48f6d590d3d48c1fd3519a72e42d5e3500571260e9b6c1bb513ddd2c3beebf93ccdaae0f48f10128b6ca2d319f1cd3db1e4f23aa9da711fab2717a93ce1b4e047a3832314bb860cf7807491f7936ab79cc09f62608f09e109d700fd941cde520dd4b8bc9fb36b7701db89ef20cd43af36fbce20db1ce52bce5481fb8cf925b2c16dcd3e2f661e7aff9522e91bcfbe4d04a8d9ab5f7555325d86504eab38a277e6b8adcd0de0c1a8a3c239798d41f4e5b62a9e05f87c4fcf9a2d43aa699ea54d27103b2d2fac2b9409a5d58df1b94168666c7776c2dd3ff858547e5164c3143f24091725a393018f077dc7506638372de419bbe0ae5836c6fcb5336a197fd5f969e432c9f74f630353770cc809fad0ce4c48a1c203f46c48d520cf69cae2e21651a76b63fe1503e1d22562f29e183b63c2c048add36faed01f9738a698eb38eea3b56ed3aa763c53f295a2ab916f343c1076bb96bf9c109345febc60202e885d3bcbf77021f62d7993bc72763b9a6938da7d565798dc6e3031de84b409fabef16] <faultcode xmlns:a="http://schemas.microsoft.com/net/2005/12/windowscommunicationfoundation/dispatcher">a:internalservicefault</faultcode> <faultstring xml:lang="en-us">
i continually passing exact same parameter set service, output should same. pass or fail.
i cannot service fail using wcftestclient. failing when trying access outside application.
the 2 applications have gotten service fail in powershell , vmware orchestrator.
i can confirm not issue lies within service. error checking have provided within web service never being reached, when application receives error message.
i have searched last 2 weeks trying better understanding of error message means have not been successful.
if helps @ all, here simplified view of web service looks like.
[operationcontract] [webmethod] myobj submitchange(string params); public myobj submitchange(string params) { try { //does params,.. myobj response = new myobj(params); return response; } catch (exception ex) { //send email me containing exception details throw ex; } } [serializable] public class myobj { public string params { get; set; } public myobj(string _params) { params = _params; } }
here powershell code works 90% of time:
$uri = 'http://linktomyservice/myservice.svc?wsdl' $req = new-webserviceproxy -uri $uri $req.timeout = 2000000 $response = $req.myfunc($params)
to provide little bit more information:
- the service hosted on leveraged dev web box in environment.
- i have seen failures when running local powershell script, on remote server in environment.
- there no proxy/firewall interference between client , service.
- there no required authentication
Comments
Post a Comment