cancel
Showing results for 
Search instead for 
Did you mean: 

How can use the webservice ManageAttachmentFolderIn, and get the file using the soapUI

former_member200995
Contributor
0 Kudos

Hi experts,

I want to use the webservice ManageAttachmentFolderIn, and get the files in external system. First, I think I need to test the webservice, so I use the SoapUI. I meet some issue, and hope someone can help me, thanks a lot.

My step:

  1. Config the Communication Systems, I use the name “TEST”, the Host and the Instances as:

  2. Config the Communication Scenarios, select the object ExpenseReport.

  3. Config the Communication Arrangements, the Authentication Method choose the User ID and Password, as:

  4. Now I download the wsdl file, and use the SoapUI.
  5. I use the Username and Password in the request properties, when I run the ReadDocumentFileContent, it raise no authority, as :
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header/>
    <soap-env:Body>
    <soap-env:Fault>
    <faultcode>soap-env:Server</faultcode>
    <faultstring xml:lang="en">Authorization role missing for service "ServiceInterface http://sap.com/xi/DocumentServices/Global ManageAttachmentFolderIn <default> <default>", operation "Operation http://sap.com/xi/DocumentServices/Global ReadDocumentFileContent" (UTC timestamp 20180109224818; Transaction ID 00163E0F423E1ED7BDB1E5F49A2E8C3C)</faultstring>
    <detail/>
    </soap-env:Fault>
    </soap-env:Body>
    </soap-env:Envelope>
  6. When I run the ReadDocumentsFileContent, it can not get any information about the file, as:
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header/>
    <soap-env:Body>
    <n0:AttachmentFolderDocumentsFileContentByIDResponse_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:L1V:/1SAI/TAS443E8909F47F876ABE5F:804">
    <AttachmentFolderDocumentFileContent>
    <DocumentUUID>00163e11-ea8b-1ed6-a3d4-118a3e820000</DocumentUUID>
    <BinaryObject/>
    </AttachmentFolderDocumentFileContent>
    <ProcessingConditions>
    <MoreHitsAvailableIndicator>false</MoreHitsAvailableIndicator>
    </ProcessingConditions>
    </n0:AttachmentFolderDocumentsFileContentByIDResponse_sync>
    </soap-env:Body>
    </soap-env:Envelope>
  7. When I run the MaintainAttachmentFolderFile, it raise no authority too, as:


Question:

1.Is there any problem with my steps?

2.Is the way of permission validation correct?

3.How to do to test the webservice using the SoapUI?

Best Regards,

Benny Huang

Accepted Solutions (1)

Accepted Solutions (1)

former_member200995
Contributor
0 Kudos

Hi experts,

The request can return the result.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
<soapenv:Header/>
<soapenv:Body>
<glob:AttachmentFolderDocumentsFileContentByIDQuery_sync>
<AttachmentFolderDocumentFileContentByIDQuery>
<DocumentUUID>00163e0f-423e-1ee7-bca2-56447acd3c27</DocumentUUID>
</AttachmentFolderDocumentFileContentByIDQuery>
</glob:AttachmentFolderDocumentsFileContentByIDQuery_sync>
</soapenv:Body>
</soapenv:Envelope>

Best Regards,

Benny Huang

Answers (0)