3 Replies Latest reply: Jan 25, 2013 9:15 AM by Amol Gavali RSS

    Re: Checked in filecontent is nil

    NickyHayden
      Hi All,

      I was reading this threads
      Checked in filecontent is nil
      quite interesting.
      I even hijacked that old thread until a kind forum moderator split my post away to let it stand on its own merits.


      i'm trying to follow but it returning this respons:

      10.4.2 401 Unauthorized

      The request requires user authentication. The response MUST include a WWW-Authenticate header field (section 14.46) containing a challenge applicable to the requested resource. The client MAY repeat the request with a suitable Authorization header field (section 14.8). If the request already included Authorization credentials, then the 401 response indicates that authorization has been refused for those credentials. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user SHOULD be presented the entity that was given in the response, since that entity MAY include relevant diagnostic information. HTTP access authentication is explained in section 11.

      some workaround :

      1. add _dav into CheckIn.wsdl file

      <service name="CheckIn">
                <port name="CheckInSoap" binding="s0:CheckInSoap">
                     <soap:address location="http://localhost:16200/_dav/cs/idcplg" />
                </port>
           </service>

      2. configure config.cfg

      DisableAuthorizationTokenCheck=true
      AllowPrimaryMetaFile=true

      3. using the latest version SOAPUI 4.5.1.1-SNAPSHOT , UCM 11.1.1.6 , WLS 10.3.5


      i'm wondering how did u succeed ? what kind of setting on SOAPUI authentication in properties ?

      Here is my SOAP Request RAW :

      POST http://localhost:16200/_dav/cs/idcplg HTTP/1.1
      Accept-Encoding: gzip,deflate
      Content-Type: text/xml;charset=UTF-8
      SOAPAction: "http://www.stellent.com/CheckIn/"
      Content-Length: 1755
      Host: localhost:16200
      Connection: Keep-Alive
      User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:chec="http://www.stellent.com/CheckIn/">
      <soapenv:Header/>
      <soapenv:Body>
      <chec:CheckInUniversal>
      <!--Optional:-->
      <chec:dDocName>123</chec:dDocName>
      <!--Optional:-->
      <chec:dDocTitle>Test SOAPUI 1</chec:dDocTitle>
      <!--Optional:-->
      <chec:dDocType>Document</chec:dDocType>
      <!--Optional:-->
      <chec:dDocAuthor>weblogic</chec:dDocAuthor>
      <!--Optional:-->
      <chec:dSecurityGroup>Public</chec:dSecurityGroup>
      <!--Optional:-->
      <chec:dDocAccount></chec:dDocAccount>
      <!--Optional:-->
      <chec:CustomDocMetaData>
      <!--Zero or more repetitions:-->
      <chec:property>
      <!--Optional:-->
      <chec:name></chec:name>
      <!--Optional:-->
      <chec:value></chec:value>
      </chec:property>
      </chec:CustomDocMetaData>
      <!--Optional:-->
      <chec:primaryFile>
      <!--Optional:-->
      <chec:fileName>C:/testdrive/pro33.txt</chec:fileName>
      <!--Optional:-->

      </chec:primaryFile>
      <!--Optional:-->
      <chec:alternateFile>
      <!--Optional:-->
      <chec:fileName></chec:fileName>
      <!--Optional:-->

      </chec:alternateFile>
      <!--Optional:-->
      <chec:extraProps>
      <!--Zero or more repetitions:-->
      <chec:property>
      <!--Optional:-->
      <chec:name></chec:name>
      <!--Optional:-->
      <chec:value></chec:value>
      </chec:property>
      </chec:extraProps>
      </chec:CheckInUniversal>
      </soapenv:Body>
      </soapenv:Envelope>

      Really Appreciate your Help.

      Regards,
      Hadi P.
        • 1. Re: Checked in filecontent is nil
          Amol Gavali
          It works for me no settings in SOAP except that username & Password is passed using Auth headers & <chec:fileContent> as Base64 and endpoint is http://localhost:16200/_dav/cs/idcplg
          <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:chec="http://www.stellent.com/CheckIn/">
               <soapenv:Header/>
             <soapenv:Body>
                <chec:CheckInUniversal>
                   <!--Optional:-->
                   <chec:dDocName>T0102</chec:dDocName>
                   <!--Optional:-->
                   <chec:dDocTitle>TEST</chec:dDocTitle>
                   <!--Optional:-->
                   <chec:dDocType>Document</chec:dDocType>
                   <!--Optional:-->
                   <chec:dDocAuthor>amol</chec:dDocAuthor>
                   <!--Optional:-->
                   <chec:dSecurityGroup>Public</chec:dSecurityGroup>
                   <!--Optional:-->
                   <chec:dDocAccount></chec:dDocAccount>
                   <!--Optional:-->
                   <chec:CustomDocMetaData>
                      <!--Zero or more repetitions:-->
                      <chec:property>
                         <!--Optional:-->
                         <chec:name></chec:name>
                         <!--Optional:-->
                         <chec:value></chec:value>
                      </chec:property>
                   </chec:CustomDocMetaData>
                   <!--Optional:-->
                   <chec:primaryFile>
                      <!--Optional:-->
                      <chec:fileName>test.xml</chec:fileName>
                      <!--Optional:-->
                      <chec:fileContent>PGFtb2w+DQoJPG5hbWU+QW1vbCBHYXZhbGk8L25hbWU+DQo8L2Ftb2w+</chec:fileContent>
                   </chec:primaryFile>
                   <!--Optional:-->
                   <chec:alternateFile>
                      <!--Optional:-->
                      <chec:fileName></chec:fileName>
                      <!--Optional:-->
                      <chec:fileContent></chec:fileContent>
                   </chec:alternateFile>
                   <!--Optional:-->
                   <chec:extraProps>
                      <!--Zero or more repetitions:-->
                      <chec:property>
                         <!--Optional:-->
                         <chec:name></chec:name>
                         <!--Optional:-->
                         <chec:value></chec:value>
                      </chec:property>
                   </chec:extraProps>
                </chec:CheckInUniversal>
             </soapenv:Body>
          </soapenv:Envelope>
          Regards,
          Amol Gavali
          • 2. Re: Checked in filecontent is nil
            NickyHayden
            Hi Amol Gavali,

            how do we define value of <chec:filecontent> ??

            i.e in your below example : "PGFtb2w+DQoJPG5hbWU+QW1vbCBHYXZhbGk8L25hbWU+DQo8L2Ftb2w+"

            Thanks for helping.
            • 3. Re: Checked in filecontent is nil
              Amol Gavali
              Open SOAPUI -> in Request Go till tag <chec:filecontent></chec:filecontent> right click and "Insert File as Base64"

              Regards,
              Amol Gavali.