Topic by david a
Content
When querying contacts and using a limit and offset , the highest i can seem to set the limit is about 300, long way from the 10000 which is the max, before i get the error below. How can i return more results without getting an error. I only need the email of the contact.
System.ServiceModel.ProtocolException がキャッチされました
Message=応答メッセージのコンテンツの種類 text/html; charset=UTF-8 が、バインド (text/xml; charset=utf-8) のコンテンツの種類と一致しません。カスタム エンコーダを使用している場合は、IsContentTypeSupported メソッドが正しく実装されていることを確認してください。応答の先頭の 330 バイトは '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>There is a an error with your request</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<p>There has been an error with your request.</p>
</body>
</html>
'でした。
Source=mscorlib
StackTrace:
Server stack trace:
場所 System.ServiceModel.Channels.HttpChannelUtilities.ValidateRequestReplyResponse(HttpWebRequest request, HttpWebResponse response, HttpChannelFactory factory, WebException responseException, ChannelBinding channelBinding)
場所 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
場所 System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
場所 System.ServiceModel.Channels.SecurityChannelFactory`1.SecurityRequestChannel.Request(Message message, TimeSpan timeout)
場所 System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
場所 System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
場所 System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
場所 System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
場所 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
場所 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
場所 BasicSamples.RightNowService.RightNowSyncPort.QueryObjects(QueryObjectsRequest request)
場所 BasicSamples.RightNowService.RightNowSyncPortClient.BasicSamples.RightNowService.RightNowSyncPort.QueryObjects(QueryObjectsRequest request) 場所 C:\Users\dappledore\Projects\WebServicesSamples2\BasicSamples\Service References\RightNowService\Reference.cs:行 16583
場所 BasicSamples.RightNowService.RightNowSyncPortClient.QueryObjects(ClientInfoHeader ClientInfoHeader, String Query, RNObject[] ObjectTemplates, Int32 PageSize) 場所 C:\Users\dappledore\Projects\WebServicesSamples2\BasicSamples\Service References\RightNowService\Reference.cs:行 16592
場所 BasicSamples.BasicQueryObjects.GetContactByQuery(String query, Int32 pageSize) 場所 C:\Users\dappledore\Projects\WebServicesSamples2\BasicSamples\BasicQueryObjects.cs:行 114
場所 BasicSamples.BasicQueryObjects.GetContactByGenericField(String name, String val, Int32 limit, Int32 offset) 場所 C:\Users\dappledore\Projects\WebServicesSamples2\BasicSamples\BasicQueryObjects.cs:行 193
場所 BasicSamples.BasicQueryObjects.writeEmailsToFile() 場所 C:\Users\dappledore\Projects\WebServicesSamples2\BasicSamples\BasicQueryObjects.cs:行 76
InnerException: System.Net.WebException
Message=リモート サーバーがエラーを返しました: (500) 内部サーバー エラーです
Source=System
StackTrace:
場所 System.Net.HttpWebRequest.GetResponse()
場所 System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
InnerException: