Skip to Content
0

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

Jan 10 at 06:22 AM

45

avatar image

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 :
    http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header/>
    <soap-env:Body>
    <soap-env:Fault>
    <faultcode>soap-env:Server</faultcode>
    Authorization role missing for service "ServiceInterface http://sap.com/xi/DocumentServices/Global ManageAttachmentFolderIn ", operation "Operation http://sap.com/xi/DocumentServices/Global ReadDocumentFileContent" (UTC timestamp 20180109224818; Transaction ID 00163E0F423E1ED7BDB1E5F49A2E8C3C)
    <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:
    http://schemas.xmlsoap.org/soap/envelope/">
    <soap-env:Header/>
    <soap-env:Body>
    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

101.png (16.1 kB)
102.png (17.3 kB)
201.png (46.0 kB)
301.png (31.5 kB)
701.png (60.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Benny Huang Feb 08 at 02:56 AM
0

Hi experts,

The request can return the result.

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


binaryobject.png (51.8 kB)
Share
10 |10000 characters needed characters left characters exceeded