cealex Posted September 10, 2013 at 09:11 AM Report #523963 Posted September 10, 2013 at 09:11 AM Boas por acaso alguém já trabalhou com saml, nomeadamente com o "fornecedor de autenticação da administração pública portuguesa". que me possa dar umas dicas ? estou a analisar o doc http://www.cartaodecidadao.pt/documentos/integracao_com_fa_v1.3.1.pdf os links dos atributos não é correcto (pág 59, inicio) e não consigo gerar o xsd através do xml, bate nos atributos, o link não existe (http://autenticacao.cartaodecidadao.pt/atributos) gerar xsd : http://www.dotkam.com/2008/05/28/generate-xsd-from-xml/ <samlp:Extensions> <fa:RequestedAttributes xmlns:fa="http://autenticacao.cartaodecidadao.pt/atributos"> <fa:RequestedAttribute Name=" http://interop.gov.pt/MDC/Cidadao/NomeCompleto" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="true"/> </fa:RequestedAttributes> </samlp:Extensions> </samlp:AuthnRequest> +++++++++++++++ apos ter passado o xml para os vários xsd, ao gerar as classes para c#, ao executar o xsd, dá o erro abaixo xsd teste.xsd saml.xsd x.xsd xmldsig.xsd /classes /namespace:teste /outputdir:.. Microsoft ® Xml Schemas/DataTypes support utility [Microsoft ® .NET Framework, Version 4.0.30319.1] Copyright © Microsoft Corporation. All rights reserved. Schema validation warning: The 'http://autenticacao.cartaodecidadao.pt/atributos :RequestedAttributes' element is not declared. Line 26, position 10. Warning: Schema could not be validated. Class generation may fail or may produce incorrect results. Error: Error generating classes for schema 'teste_saml_x_xmldsig'. - The element 'http://autenticacao.cartaodecidadao.pt/atributos:RequestedAttributes' is missing. If you would like more help, please type "xsd /?". +++++++++++++++ tank's
brunobola Posted September 10, 2013 at 08:51 PM Report #524031 Posted September 10, 2013 at 08:51 PM Tens aqui exemplos de como usar em diversos ambientes e linguagens: e tens também o XSD http://svn.gov.pt/projects/ccidadao/browser/middleware-online/tags/1.0/docs/ccpt.xsd Link: https://www.google.pt/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CDEQFjAA&url=http%3A%2F%2Fsvn.gov.pt%2Fprojects%2Fccidadao%2Fexport%2F236%2Fmiddleware-offline%2Ftrunk%2Fdocs%2FManual_de_SDK.odt&ei=lYIvUu3ZGpKw7AarhoCgCA&usg=AFQjCNEAEKJjnm0AuTWs5c1xEUwMhmJeCg&sig2=7DS9eEIGbUfa47lPt9qiUA
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now