1 2 Previous Next 23 Replies Latest reply: Aug 21, 2012 1:26 AM by lkakarla Go to original post RSS
      • 15. Re: Checked in filecontent is nil
        Srinath Menon-Oracle
        Hi ,

        "Since the service is not picking the file from local system" - Soap UI is on the same location that the file is based host machine ?

        Thanks
        Srinath
        • 16. Re: Checked in filecontent is nil
          Srinath Menon-Oracle
          Hi ,

          After check-in is completed (through SOAP UI)navigate to Content Information page and check the web location url . Post it here . Similarly do a check-in from UCM Web UI and post the web url for that content as well .

          Thanks
          Srinath

          Edited by: Srinath Menon on Aug 17, 2012 3:02 PM
          • 17. Re: Checked in filecontent is nil
            lkakarla
            Hi Srinath,

            Please find the details below.

            Web Content URL for SOAPUI checkin:
            http://127.0.0.1:16200/cs/groups/public/documents/document/mdaw/mda3/~edisp/10021516200007949

            Web Content URL for UCM Web UI checkin:
            http://127.0.0.1:16200/cs/groups/public/documents/document/mdaw/mda3/~edisp/10021516200007950.txt

            And both the file & SOAPUI on same machine and UCM server running on different machine.

            Thanks,

            Edited by: lkakarla on Aug 17, 2012 4:39 PM
            • 18. Re: Checked in filecontent is nil
              875117
              Attachment as in why do you need to do that ?
              This is other method of two available methods to work with files inside SOAP request. http://www.soapui.org/SOAP-and-WSDL/adding-headers-and-attachments.html#2-3-anonymous-attachments (2. Attachments and Inline Files).

              For me, this method was most reliable and controllable one.

              Regards,
              Boris
              • 19. Re: Checked in filecontent is nil
                875117
                Since nothing that works for others work for you, I suggest another approach. You could try Inline file method (slightly different than so far trials).

                Inside RequestProperties set Enable Inline Files to true and check that Enable MTOM is false.

                Use this bare minimum request:

                <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:chec="http://www.stellent.com/CheckIn/">
                <soapenv:Header/>
                <soapenv:Body>
                <chec:CheckInUniversal>
                <chec:dDocName>TEST</chec:dDocName>
                <chec:dDocTitle>Test wsdl checkin</chec:dDocTitle>
                <chec:dDocType>Document</chec:dDocType>
                <chec:dDocAuthor>weblogic</chec:dDocAuthor>
                <chec:dSecurityGroup>Public</chec:dSecurityGroup>
                <chec:dDocAccount></chec:dDocAccount>
                <chec:primaryFile>
                     <chec:fileName>DesiredName.pdf</chec:fileName>
                <chec:fileContent>file:E:/Invoice.pdf</chec:fileContent>
                </chec:primaryFile>
                </chec:CheckInUniversal>
                </soapenv:Body>
                </soapenv:Envelope>

                Major difference is *<chec:fileContent>file:<path to the file></chec:fileContent>*

                I must say that method with declaring path to the file inside fileName element:

                <chec:primaryFile>
                <chec:fileName>E:/InvoiceSample.pdf</chec:fileName>
                <chec:fileContent>cid:211391539693</chec:fileContent>
                </chec:primaryFile>

                never worked for me, but the one I'm proposing works.

                Regards,
                Boris
                • 20. Re: Checked in filecontent is nil
                  Srinath Menon-Oracle
                  Hi ,

                  I can see the same issue happening on my 11.1.1.6.0 instance with Soap Requests.

                  If you see carefully the file that is checked in through SOAP does not have any file extension , where as ideally it should have had one like the one for web ui check-in .

                  Need to check this further .

                  Thanks
                  srinath
                  • 21. Re: Checked in filecontent is nil
                    Fabian Scherpenzeel-Oracle
                    shouldn't the fileContent element just contain the BASE64 encoded content of the file to submit... ?
                    • 22. Re: Checked in filecontent is nil
                      875117
                      You are certainly right and it does. On execution, SoapUI replaces referenced file name with encoded content, what can be confirmed by inspecting RAW request.

                      Both methods (attached or inline file) as I propose them, work flawlessly for me with any Content server version (10g or 11g including 11.1.1.6.0). However, method with declaring path to the file inside fileName element doesn't look right to me.

                      Regards,
                      Boris
                      • 23. Re: Checked in filecontent is nil
                        lkakarla
                        Hi Boris/Fabian/Srinath,

                        Now I am able to checkin the document to UCM using built in web service. Thanks for your support.

                        As suggested by Fabian & Boris, both methods worked for me now.

                        Thanks,
                        1 2 Previous Next