2011-06-14 6 views
0

"WCF REST Service Template 40 (CS)"을 기반으로 JSF 형식의 이미지를 JSON 형식의 이미지로 POST하는 데 ASIFormDataRequest를 사용하고 있습니다. @ 65536 바이트의 WCF 서비스의 기본 메시지 크기보다 작은 이미지는 제대로 작동하지만 그 값을 늘리고 싶습니다.JSON을 사용하는 WCF webhttp 서비스

함께 그 bindingConfiguration을 사용하여 서비스 엔드 포인트와 나는 등 높은 maxReceivedMessageSize와 으로 WebHttpBinding을 추가 한 본 적이 모든 예제,. 그러나이 템플릿에는 끝점 태그에서 가리킬 수있는 .svc 또는 인터페이스가 없습니다.

편집 :

<standardEndpoint name="" helpEnabled="true" maxBufferPoolSize="1500000" maxReceivedMessageSize="1500000" transferMode="Streamed" automaticFormatSelectionEnabled="true"/> 

답변

0

저도 같은 문제에 봉착 : 죄송합니다, 나는 standardEndpoint 태그를 사용하여 문제를 해결할 수 있었다. 내가 찾을 수있는 모든 메시지 크기 설정을 최대한으로 늘 렸으며, 나는 여전히 같은 문제를 겪고 있습니다. 내 서비스가 어떤 이유로 이러한 설정을 사용하지 않는지 의심 스럽습니다. 물론 도움이 될 수 있습니다. 감사! 여기 내 "표준 Endpoint":

<standardEndpoints> 
    <webHttpEndpoint> 
    <standardEndpoint name="WebHTTP" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="0" helpEnabled="true" automaticFormatSelectionEnabled="true" faultExceptionEnabled="true"> 
     <readerQuotas maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxDepth ="2147483647" /> 
    </standardEndpoint> 
    </webHttpEndpoint> 
</standardEndpoints> 
+0

"WCF REST Service Template 40 (CS)"템플릿을 사용하고 있습니까? – c05psl

+0

BrainMan, "WCF REST Service Template 40 (CS)"템플릿으로 시작하는 공유 구성에서 동일한 문제가 해결되었습니다. –

관련 문제