Skip to topic | Skip to bottom
Home

Tesi
Tesi.FileXmlr1.18 - 12 Feb 2006 - 15:13 - ChiaraPilotopic end

Start of topic | Skip to actions

Profilo di collaborazione incapsulato in un messaggio SOAP

<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/"
 xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    
    <soap:Header >
        <cap:proposal xmlns:cap="http://www.cs.unibo.it/CAP/1.0/proposal.xsd" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.cs.unibo.it/CAP/1.0/proposal.xsd http://www.cs.unibo.it/CAP/1.0/proposal.xsd" 
            renegotiable="true">
            
            <cap:sender uniqueName="aaaaaa">
                <cap:name>Mario Rossi</cap:name>
                <cap:certificate>
                    <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">...</ds:KeyInfo>
                </cap:certificate>
            </cap:sender>
            <cap:request type="createNew | partecipate">
                  <cap:invited>
                        <cap:party uniqueName="bbbbbb">
                            <cap:name>Antonio Bianchi</cap:name>
                            <cap:certificate>
                                <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">...</ds:KeyInfo>
                            </cap:certificate>
                        </cap:party>
                        <cap:party uniqueName="cccccc">
                            <cap:name>Giulio Neri</cap:name>
                            <cap:certificate>
                                <ds:KeyInfo xmlns:ds="http://www.w3.org/2000/09/xmldsig#">...</ds:KeyInfo>
                            </cap:certificate>
                        </cap:party>
                  </cap:invited>
            </cap:request>

            <cap:conversation id="a125" favorite="true"  media="text/html" quality="1.00" combineWith="a126 a127 a128">
                <cap:onResource uri="http://www.sito.com" >
                    <cap:localLock grain="character" token="user">
                        <cap:multipleUtterance update="pull" visibility="private"/>
                    </cap:localLock>
                </cap:onResource>
                <cap:transport>
                    <cap:transportProtocol version="1.1">HTTP</cap:transportProtocol>
                    <cap:transportProtocol>SMTP</cap:transportProtocol>
                    <cap:securityProtocol version="3.0">SSL</cap:securityProtocol>
                </cap:transport>
            </cap:conversation>
            
            <cap:conversation id="a126" favorite="false" media="audio/mpeg" quality="0.80"  combineWith=" a127 a128">
                <cap:isResource>
                    <cap:noLock>
                        <cap:multipleUtterance update="realPush" visibility="private"/>
                    </cap:noLock>
                </cap:isResource>
                <cap:transport>
                    <cap:transportProtocol version="1.1">HTTP</cap:transportProtocol>
                </cap:transport>
            </cap:conversation>
            
            <cap:conversation id="a127" favorite="false" media="video/mpeg" quality="0.80" combineWith="a126 a127 a128">
                <cap:isResource>
                    <cap:noLock>
                        <cap:multipleUtterance update="realPush" visibility="private"/>
                    </cap:noLock>
                </cap:isResource>
                <cap:transport>
                    <cap:transportProtocol version="1.1">HTTP</cap:transportProtocol>
                </cap:transport>
            </cap:conversation>
            
            <cap:conversation id="a128" favorite="false" media="text/plain" quality="1.00">
                <cap:onResource uri="http://www.sito.com">
                    <cap:globalLock token="user">
                        <cap:multipleUtterance update="pull" visibility="public"/>
                    </cap:globalLock>
                </cap:onResource>
                <cap:transport>
                    <cap:transportProtocol version="1.1">HTTP</cap:transportProtocol>
                    <cap:transportProtocol>SMTP</cap:transportProtocol>
                    <cap:securityProtocol version="3.0">SSL</cap:securityProtocol>
                </cap:transport>
            </cap:conversation>
            
        </cap:proposal>
        
    </soap:Header>
    <soap:Body/>          
</soap:Envelope>

Utterance che trasporta il contenuto vero e proprio

utterance.xml


<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    
    <soap:Header>
        <cuml:utterance xmlns:cuml="http://www.cs.unibo.it/CUML/1.0/utterance.xsd" 
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://www.cs.unibo.it/CUML/1.0/utterance.xsd http://www.cs.unibo.it/CUML/1.0/utterance.xsd">
            
            <cuml:conversation id="a111"/>
            <cuml:sender uniqueName="xxx"/>
            <cuml:resource uri="http://www.cs.unibo.it/resource1"/>
            <cuml:content media="text/html"/>
        </cuml:utterance> 
    </soap:Header>
    
    <soap:Body>      
        <html>
            <head><title>esempio</title></head>
            <body><p>Hello world</p></body>
        </html>
    </soap:Body>         
</soap:Envelope>

Esempio Utterance firmata

utterance.xml


<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ 
    http://schemas.xmlsoap.org/soap/envelope/" >
    
    <soap:header >

       <cuml:utterance id="utterance" xmlns:cuml="http://www.cs.unibo.it/CUML/1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.cs.unibo.it/CUML/1.0 utterance.xsd"        
        xmlns:cap="http://www.cs.unibo.it/CAP/1.0">
           <cuml:conversation id="a111"/>
           <cuml:sender uniqueName="xxx"/>
           <cuml:resource uri="http://www.cs.unibo.it/resource1"/>
           <cuml:content media="text/html"/>
        </cuml:utterance> 
  
        <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd"
         xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1.0.xsd">
                 <wsse:BinarySecurityToken 
                        EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
                        ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" 
                        wsu:Id="signingCert">
                 </wsse:BinarySecurityToken>
                 <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                        <ds:SignedInfo>
                                <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                                <ds:Reference URI="#utterance">
                                        <ds:Transforms>
                                                <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                        </ds:Transforms>
                                        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                                        <ds:DigestValue>hONgCCP9OlKwOZhZXburzsUOMk0=</ds:DigestValue>
                                </ds:Reference>
                                <ds:Reference URI="#myBody">
                                        <ds:Transforms>
                                               <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                        </ds:Transforms>
                                        <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                                        <ds:DigestValue>8Yqxg2jXETXZBgbJ+Ua8Ka2edDw=</ds:DigestValue>
                                </ds:Reference>
                        </ds:SignedInfo>
                        <ds:SignatureValue>jUKqmjw1hqsbeK+16LAm.....qHUvwh6aTQ5g2Lt37C3eHDrxFNxrHnU...uOazHKz3EjE= </ds:SignatureValue>
                        <ds:KeyInfo>
                              <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                                        <wsse:Reference URI="#signingCert"/>
                              </wsse:SecurityTokenReference>
                        </ds:KeyInfo>
                </ds:Signature>
          </wsse:Security>
     
    </soap:header>
    <soap:Body id="MyBody">      
        <html>
            <head><title>esempio</title></head>
            <body><p>Hello world</p></body>
        </html>

    </soap:Body>   
        
</soap:Envelope>

Esempio Utterance criptata

utterance.xml


<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ 
    http://schemas.xmlsoap.org/soap/envelope/" >
    
    <soap:header >

       <cuml:utterance id="utterance" xmlns:cuml="http://www.cs.unibo.it/CUML/1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.cs.unibo.it/CUML/1.0 utterance.xsd"        
        xmlns:cap="http://www.cs.unibo.it/CAP/1.0">
           <cuml:conversation id="a111"/>
           <cuml:sender uniqueName="xxx"/>
           <cuml:resource uri="http://www.cs.unibo.it/resource1"/>
           <cuml:content media="text/html"/>
        </cuml:utterance> 
  
        <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd"
         xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1.0.xsd">
                   <wsse:BinarySecurityToken 
                            EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
                            ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
                            wsu:Id="encryptionCert">
                   </wsse:BinarySecurityToken>
                   <enc:EncryptedKey xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
                            <enc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5" 
                             xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
                            <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                                    <wsse:SecurityTokenReference>
                                            <wsse:Reference URI="#encryptionCert"/>
                                    </wsse:SecurityTokenReference>
                            </KeyInfo>
                            <CipherData xmlns="http://www.w3.org/2001/04/xmlenc#">
                                    <CipherValue>bJnt6rUFzNOUAXVd5Xk0g...9OciYPT8DmyALCW7CynrtomgeB9x...XXJDgg+HCSgW8qpxY=</CipherValue>
                            </CipherData>
                            <ReferenceList xmlns="http://www.w3.org/2001/04/xmlenc#">
                                      <DataReference URI="#enc"/>
                            </ReferenceList>
                 </enc:EncryptedKey>
           </wsse:Security>

     </soap:Header>
     <soap:Body wsu:Id="body" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1.0.xsd">
           <EncryptedData Id="enc" Type="http://www.w3.org/2001/04/xmlenc#Content" xmlns="http://www.w3.org/2001/04/xmlenc#">
                  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
                  <CipherData>
                          <CipherValue>r+WpG9C1gYP2tCaF9....TQAzK55dpE5aTQn...JORcv490+HVp55Q==</CipherValue>
                  </CipherData>
           </EncryptedData>
     </soap:Body>   
        
</soap:Envelope>

Esempio Utterance firmata e criptata

utterance.xml


<?xml version="1.0" encoding="UTF-8"?>

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ 
    http://schemas.xmlsoap.org/soap/envelope/" >
    
    <soap:header >

       <cuml:utterance id="utterance" xmlns:cuml="http://www.cs.unibo.it/CUML/1.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.cs.unibo.it/CUML/1.0 utterance.xsd"        
        xmlns:cap="http://www.cs.unibo.it/CAP/1.0">
           <cuml:conversation id="a111"/>
           <cap:sender uniqueName="xxx"/>
           <cuml:resource uri="http://www.cs.unibo.it/resource1"/>
           <cuml:content media="text/html"/>
        </cuml:utterance> 
  
        <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-secext-1.0.xsd"
         xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1.0.xsd">
                <wsse:BinarySecurityToken 
                     EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
                     ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
                     wsu:Id="signingCert">
                </wsse:BinarySecurityToken>
                <wsse:BinarySecurityToken
                     EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
                     ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
                     wsu:Id="encryptionCert">
                </wsse:BinarySecurityToken>
                <enc:EncryptedKey xmlns:enc="http://www.w3.org/2001/04/xmlenc#">
                    <enc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#rsa-1_5"
                    xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"/>
                    <KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
                            <wsse:SecurityTokenReference>
                                  <wsse:Reference URI="#encryptionCert"/>
                            </wsse:SecurityTokenReference>
                    </KeyInfo>
                    <CipherData xmlns="http://www.w3.org/2001/04/xmlenc#">
                            <CipherValue>F3HmZ2Ldyn0umLCx/8...tQ7ihJc8hYIlEESX9qZN65Jgy...Aa3BYgW9ipjGHtNgZ9RzUdzKdeY74DFm27R6m8b0=</CipherValue>
                    </CipherData>
                    <ReferenceList xmlns="http://www.w3.org/2001/04/xmlenc#">
                           <DataReference URI="#enc"/>
                    </ReferenceList>
               </enc:EncryptedKey>
               <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
                    <ds:SignedInfo>
                         <ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                         <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                         <ds:Reference URI="#ebMessage">
                                 <ds:Transforms>
                                         <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                 </ds:Transforms>
                                 <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                                 <ds:DigestValue>Ae0PLUKJUnUyAMXkLQD/WwKiFiI=</ds:DigestValue>
                         </ds:Reference>
                         <ds:Reference URI="#body">
                                 <ds:Transforms>
                                         <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
                                 </ds:Transforms>
                                 <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                                 <ds:DigestValue>kNY6X7LnRTwxXXBzSw07tcA0KSU=</ds:DigestValue>
                         </ds:Reference>
                   </ds:SignedInfo>
                   <ds:SignatureValue>9j3fHRGM2qqUnoBydOTnClcE...MzPZbnlhdN1QQ92106ge...j2YPDt3VKIlLLT2c8O4TfayGvuY= </ds:SignatureValue>
                   <ds:KeyInfo>
                           <wsse:SecurityTokenReference xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
                                 <wsse:Reference URI="#signingCert"/>
                           </wsse:SecurityTokenReference>
                   </ds:KeyInfo>
               </ds:Signature>
         </wsse:Security>
    </soap:Header>
    <soap:Body wsu:Id="body" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecurity-utility-1.0.xsd">
            <EncryptedData Id="enc" Type="http://www.w3.org/2001/04/xmlenc#Content" xmlns="http://www.w3.org/2001/04/xmlenc#">
                  <EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/>
                  <CipherData>
                         <CipherValue>tjOgUPMmQwd6hXiH...oxs1/qQoqN1prDiSOxsxsFvg1la7dehjMWb0o...G+kTvNrtg==</CipherValue>
                  </CipherData>
            </EncryptedData>

     </soap:Body>   
        
</soap:Envelope>
-- ChiaraPilo - 04 Jan 2006
to top

Copyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Fabio's Wiki? Send feedback