Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

Microsoft.SharePoint.SoapServer.SoapServerException

$
0
0

I am calling the GetItem method of Copy.asmx and I am getting a Microsoft.SharePoint.SoapServer.SoapServerException.  I ran similar code against another one of our Sharepoint servers and had no problems. Does this error get generated due to a Sharepoint configuration issue or is there a problem with my code?  I have validated all of the URL references. They are valid.

The line that is causing the problem is the call to GetItem.

[WebMethod]
public void testing1234()
{	
  pointerCopy.Copy copy = new pointerCopy.Copy();
  copy.Credentials = new NetworkCredential("xxx", "xxx", "xxxx-FL");
  copy.Url = @"http://pointer/operations/_vti_bin/Copy.asmx";

  string fileURL = "http://pointer/operations/NOC/Customer%20Proprietary%20Information/xxx%20Group%20Inc.%20(xxx)/xxx%20xxx%20Network%20Discovery.doc";

  //This is an "out" parameter of the Copy.GetItem method

  pointerCopy.FieldInformation myFieldInfo = new   pointerCopy.FieldInformation();
  pointerCopy.FieldInformation[] myFieldInfoArray = { myFieldInfo };
  byte[] docbytes;      

  try
  {
	uint myGetUint = copy.GetItem(fileURL, out myFieldInfoArray, out docbytes);
  }
  catch (Exception exc)
  {
	string errMsg = exc.ToString();
  }
}

And the error I am capturing is this:

"System.Web.Services.Protocols.SoapException: 
Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.\r\n
  at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, 
  WebResponse response, Stream responseStream, Boolean asyncCall)\r\n  
  at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)\r\n  
  at SalesForceWebServices.pointerCopy.Copy.GetItem(String Url, FieldInformation[]& Fields, Byte[]& Stream) 
  n C:\\dev\\vitalns\\SalesForceWebServices\\SalesForceWebServices\\Web References\\pointerCopy\\Reference.cs:line 156\r\n 
  at SalesForceWebServices.Service2.testing1234() in C:\\dev\\vitalns\\SalesForceWebServices\\SalesForceWebServices\\Service2.asmx.cs:line 119"

 


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>