Quantcast
Channel: SCN : Popular Discussions - SAP Business ByDesign
Viewing all articles
Browse latest Browse all 2194

Authorization role missing - soapUI testing of web services

$
0
0

Hi All,

 

New to the ByDesign Studio and starting to work with ByDesign out of the box web services. Following the example in the Studio documentation I am using soapUI 4.5.1 to perform some basic testing. Our tenant is a partner development tenant 4.0

 

Working with a sample to query for customers by communication data. In this case by email address,

 

Setting endpoint to

 

https://myXXXXXX.sapbydesign.com/sap/bc/srt/scs/sap/querycustomerin?sap-vhost=myXXXXXX.sapbydesign.com

 

with credentials of Initial User (also tested with a user set up with developer rights) - authentication type set to 'Preemptive' in soapUI

 

Sample request:

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:CustomerSimpleByCommunicationDataQuery_sync>

  <CustomerSimpleSelectionByCommunicationData>

  <!--Zero or more repetitions:-->
            <SelectionByEMailURI>
               <!--Optional:-->
               <InclusionExclusionCode>I</InclusionExclusionCode>
               <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode>
               <!--Optional:-->
               <LowerBoundaryEMailURI>abc@xyz.com</LowerBoundaryEMailURI>
             
            </SelectionByEMailURI>
         
         </CustomerSimpleSelectionByCommunicationData>
        
         <ProcessingConditions>
            <!--Optional:-->
            <QueryHitsMaximumNumberValue>10</QueryHitsMaximumNumberValue>
            <QueryHitsUnlimitedIndicator>true</QueryHitsUnlimitedIndicator>
         
         </ProcessingConditions>
  
      </glob:CustomerSimpleByCommunicationDataQuery_sync>
   </soapenv:Body>
</soapenv:Envelope>

 

 

The response I get back is:

 

<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/AP/FO/BusinessPartner/Global QueryCustomerIn &lt;default> &lt;default>", operation "Operation http://sap.com/xi/AP/FO/BusinessPartner/Global FindSimpleByCommunicationData" (UTC timestamp 20130326091315; Transaction ID 00163E0317891ED2A5BEAC74A09954CB)</faultstring>

         <detail/>

      </soap-env:Fault>

   </soap-env:Body>

</soap-env:Envelope>

 

Any ideas? It looks like my user credentials do not have the correct permissions to access web services? I have trawled the help and cannot find anything relating to permissions for web service access.

 

Thanks in advance

Jon


Viewing all articles
Browse latest Browse all 2194

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>