security mode dans app.config
Bonjour, j'ai du mal à configurer mon option de sécurité de mon fichier app.config
Mon but final est d'appeler un webservice (java ejb, qui fonctionne) en authentifié.
J'ai beau mettre tout et "n'importe quoi" j'obtiens soit qu'il veux être en https(moi je suis en http) ou le message
Citation:
[EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=testWSAnnot, module=testWSAnnot.jar, ejb=ServiceDomaineBeanSecure, method=createDeal, methodInterface=ServiceEndpoint, signature={java.lang.String}.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
<binding name="ServiceDomaineBeanSecurePortBinding" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Basic"/>
</security>
</binding> |
Code:
1 2 3 4 5 6 7 8 9
| POCWSSECURE.ServiceDomaineBeanSecureClient ws;
POCWSSECURE.createDealRequest req;
long id;
ws = new POCWSSECURE.ServiceDomaineBeanSecureClient();
ClientCredentials cred=ws.ClientCredentials;
cred.UserName.UserName = "utilisateur1";
cred.UserName.Password = "utilisateur1";
id = ws.createDeal("Bruno"); |
y aurait il une bonne âme pour m'éclairé car je suis sur ce point depuis au moins 2j
merci