SoapFault - ystem.UnauthorizedAccessException:拒绝访问路径'C:\ inetpub \ wwwroot \ ErrorLogs \ ErrorLog20141017.txt'

时间:2014-10-17 08:24:51

标签: android ksoap2

使用soap webservices将数据传输到网络时出现以下错误。

            envelope.setOutputSoapObject(request);

            httpTransport.call(SOAP_ACTION_DATA, envelope);
  

DBServiceNew.LoadXmlString(String projectName,String formName,String   userId,String xmlData)

所有参数都很好,而在 httpTransport.call(SOAP_ACTION_DATA,信封); 上的GETTING错误,我在log cat上收到了这个错误。

10-17 10:21:42.724: W/System.err(6575): SoapFault - faultcode: 'soap:Server' faultstring: 'System.Web.Services.Protocols.SoapException: Server was unable to process request. System.UnauthorizedAccessException: Access to the path 'C:\inetpub\wwwroot\ErrorLogs\ErrorLog20141017.txt' is denied.
10-17 10:21:42.724: W/System.err(6575):    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
10-17 10:21:42.724: W/System.err(6575):    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575):    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575):    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575):    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
10-17 10:21:42.724: W/System.err(6575):    at System.IO.StreamWriter..ctor(String path, Boolean append)
10-17 10:21:42.724: W/System.err(6575):    at CreateLogFiles.ErrorLog(String sPathName, String sErrMsg)
10-17 10:21:42.724: W/System.err(6575):    at DBServiceNew.LoadXmlString(String projectName, String formName, String userId, String xmlData)
10-17 10:21:42.724: W/System.err(6575):    --- End of inner exception stack trace ---' faultactor: 'null' detail: org.kxml2.kdom.Node@42d34eb8
10-17 10:21:42.724: W/System.err(6575):     at org.ksoap2.serialization.SoapSerializationEnvelope.parseBody(SoapSerializationEnvelope.java:136)
10-17 10:21:42.724: W/System.err(6575):     at org.ksoap2.SoapEnvelope.parse(SoapEnvelope.java:137)
10-17 10:21:42.724: W/System.err(6575):     at org.ksoap2.transport.Transport.parseResponse(Transport.java:96)
10-17 10:21:42.734: W/System.err(6575):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:189)
10-17 10:21:42.734: W/System.err(6575):     at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:95

任何人都知道这种类型的错误,请提供一些提示如何解决这类问题。谢谢。

1 个答案:

答案 0 :(得分:2)

看起来您的服务器存在问题,您是否能够使用SOAP UI直接命中服务器。 我不认为你的android代码有问题。