Pogledajte određenu poruku
Staro 17. 04. 2014.   #4
filtod
novi član
Na probnom radu
 
Datum učlanjenja: 27.07.2007
Poruke: 22
Hvala: 0
2 "Hvala" u 2 poruka
filtod is on a distinguished road
Default

Ne lezi vraže! Pročitao sam gomilu članaka, brdo foruma ali i dalje ne mogu da rešim problem na koji sam naišao.
U WSDL fajlu posoji deo koji se odnosi na security

<definitions targetNamespace="http://service.rzzo.rs/" name="RzzoServiceService" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://service.rzzo.rs/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/">
<wsp:Policy wsu:Id="RzzoServicePortBindingPolicy" xmlns:sp="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702" xmlns:ssp="http://schemas.sun.com/2006/03/wss/server" xmlns:sunwsp="http://java.sun.com/xml/ns/wsit/policy">
<sp:SignedEncryptedSupportingTokens>
<wsp:Policy>
<sp:UsernameToken sp:IncludeToken="http://docs.oasis-open.org/ws-sx/ws-securitypolicy/200702/IncludeToken/AlwaysToRecipient">
<wsp:Policy>
<sp:WssUsernameToken10/>
</wsp:Policy>
</sp:UsernameToken>
</wsp:Policy>
</sp:SignedEncryptedSupportingTokens>
<sp:TransportBinding>
<wsp:Policy>
<sp:AlgorithmSuite>
<wsp:Policy>
<sp:TripleDes/>
</wsp:Policy>
</sp:AlgorithmSuite>
<sp:Layout>
<wsp:Policy>
<sp:Lax/>
</wsp:Policy>
</sp:Layout>
<sp:TransportToken>
<wsp:Policy>
<sp:HttpsToken RequireClientCertificate="false"/>
</wsp:Policy>
</sp:TransportToken>
</wsp:Policy>
</sp:TransportBinding>
<sp:Wss11/>
</wsp:Policy>

Na žalost ni wsdl.exe ni svcutil.exe ne uzimaju u obzir ovaj deo tako da prilikom kreiranja koda za klijenta dodaju komentar:

'CODEGEN: The optional WSDL extension element 'PolicyReference' from namespace 'http://www.w3.org/ns/ws-policy' was not handled.

Guglovao sam, čitao različita rešenja ali nijedno nisam uspeo da primenim.
Da li je neko radio ovu vezu sa RZZO i da li znate kako treba da se konfiguriše alat da bi i security policy bio deo klijentskog koda?
__________________
Filip Todorović
filtod je offline   Odgovorite uz citat