Конечная точка WCF для Java / проблема контракта - PullRequest
0 голосов
/ 17 сентября 2009

Получение ошибки с Не удалось найти элемент конечной точки с именем 'CaseJacketPort' и контрактом 'GrandJuryService.CaseJacket'

private void InitProxy()
{
    m_Proxy = new DivisionAssignmentJSS.GrandJuryService.CaseJacketClient("CaseJacketPort");  << error here

Из моего App.config:

<client>
   <endpoint address="http://172.24.8.125:8080/grandjury/CaseJacketService"
        binding="customBinding" bindingConfiguration="CaseJacketPortBinding1"
        contract="GrandJuryService.CaseJacket" name="CaseJacketPort" />
</client>

а также

<binding name="CaseJacketPortBinding1">
  <security defaultAlgorithmSuite="Basic128" 
            authenticationMode="UserNameForCertificate"
            requireDerivedKeys="false" securityHeaderLayout="Strict" 
            includeTimestamp="true" keyEntropyMode="CombinedEntropy" 
                messageProtectionOrder="SignBeforeEncrypt"
messageSecurityVersion="WSSecurity11WSTrust13WSSecureConversation13WSSecurityPolicy12BasicSecurityProfile10" requireSignatureConfirmation="false">
        <localClientSettings cacheCookies="true" detectReplays="true"
          replayCacheSize="900000" maxClockSkew="00:05:00" maxCookieCachingTime="Infinite"
          replayWindow="00:05:00" sessionKeyRenewalInterval="10:00:00"
          sessionKeyRolloverInterval="00:05:00" reconnectTransportOnFailure="true"
          timestampValidityDuration="00:05:00" cookieRenewalThresholdPercentage="60" />
        <localServiceSettings detectReplays="true" issuedCookieLifetime="10:00:00"
          maxStatefulNegotiations="128" replayCacheSize="900000" maxClockSkew="00:05:00"
          negotiationTimeout="00:01:00" replayWindow="00:05:00" inactivityTimeout="00:02:00"
          sessionKeyRenewalInterval="15:00:00" sessionKeyRolloverInterval="00:05:00"
          reconnectTransportOnFailure="true" maxPendingSessions="128"
          maxCachedCookies="1000" timestampValidityDuration="00:05:00" />
        <secureConversationBootstrap />
      </security>
      <textMessageEncoding 
             maxReadPoolSize="64" maxWritePoolSize="16"
             messageVersion="Soap11WSAddressing10" writeEncoding="utf-8">
          <readerQuotas 
                 maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                 maxBytesPerRead="4096" maxNameTableCharCount="16384" />
      </textMessageEncoding>
      <httpTransport 
            manualAddressing="false" maxBufferPoolSize="524288"
            maxReceivedMessageSize="6553600" allowCookies="false" 
            authenticationScheme="Anonymous"
            bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
            keepAliveEnabled="true" maxBufferSize="6553600" 
            proxyAuthenticationScheme="Anonymous" realm="" 
            transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
            useDefaultWebProxy="true" />
    </binding>

Не представляете, почему они не могут видеть друг друга?
Ошибка говорит: «Это может быть потому, что для вашего приложения не найден файл конфигурации, или потому что в клиентском элементе не найден элемент конечной точки, соответствующий этому имени. "

когда я ^ F и ищу указатель, они смотрят, чтобы все указывали друг на друга.

Есть идеи?

ТИА

__ * Стивен 1019 *

1 Ответ

0 голосов
/ 17 сентября 2009

Точно так же, как другие могут видеть решение и не должны плюнуть в комментарии.

Так ваш код в DLL? В этом случае app.config из запускаемого приложения требует настройки WCF.

...