<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Test / activate a SOAP API in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/12590725#M2010181</link>
    <description>&lt;P&gt;If you want to test a SOAP API in a compliant way, use Postman instead of SOAPUI (unless you have the pro version license for that)&lt;/P&gt;&lt;P&gt;I wrote a blog post for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2021/08/04/calling-a-soap-api-using-postman/" target="test_blank"&gt;https://blogs.sap.com/2021/08/04/calling-a-soap-api-using-postman/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Edrilan Berisha&lt;/P&gt;&lt;P&gt;SAP S/4HANA Cloud Development Financials&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2022 14:16:08 GMT</pubDate>
    <dc:creator>Edrilan_Berisha</dc:creator>
    <dc:date>2022-05-12T14:16:08Z</dc:date>
    <item>
      <title>Test / activate a SOAP API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/12590724#M2010180</link>
      <description>&lt;P&gt;Hi! How I can test a SOAP API with S/4H or SOAPUI?&lt;/P&gt;
  &lt;P&gt;I have the wsdl file but I don't know how to test or activate. Please, help me!!&lt;/P&gt;
  &lt;P&gt;I tried to create a service in SE80 but produces an excepction "CX_PROXY_GEN_ERROR".&lt;/P&gt;
  &lt;P&gt;From SOAP UI load the file but doesn't have the endpoint. I suppose that have to create it but I don't know how.&lt;/P&gt;
  &lt;P&gt;Someday, I created a web service SOAP using the FM "READ_EXCHANGE_RATE". In this case, with API SOAP I need to test/activate the API "Exchange Rates A2X".&lt;/P&gt;
  &lt;P&gt;Can anybody help me with an example?&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 13:17:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/12590724#M2010180</guid>
      <dc:creator>former_member348638</dc:creator>
      <dc:date>2022-05-12T13:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Test / activate a SOAP API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/12590725#M2010181</link>
      <description>&lt;P&gt;If you want to test a SOAP API in a compliant way, use Postman instead of SOAPUI (unless you have the pro version license for that)&lt;/P&gt;&lt;P&gt;I wrote a blog post for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2021/08/04/calling-a-soap-api-using-postman/" target="test_blank"&gt;https://blogs.sap.com/2021/08/04/calling-a-soap-api-using-postman/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Edrilan Berisha&lt;/P&gt;&lt;P&gt;SAP S/4HANA Cloud Development Financials&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 14:16:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/12590725#M2010181</guid>
      <dc:creator>Edrilan_Berisha</dc:creator>
      <dc:date>2022-05-12T14:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Test / activate a SOAP API</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/13795024#M2029981</link>
      <description>&lt;P&gt;To test and activate a SOAP API, especially in an SAP S/4HANA environment or using SOAPUI, here’s a step-by-step guide to help you out:&lt;/P&gt;&lt;P&gt;1. Understanding the Scenario:&lt;BR /&gt;You want to test a SOAP API&amp;nbsp;&lt;A href="https://tech-stack.com/blog/what-is-an-api/" target="_self"&gt;https://tech-stack.com/blog/what-is-an-api/&lt;/A&gt;&amp;nbsp;, specifically the "Exchange Rates A2X" API, using the WSDL file. You've encountered issues with creating a service in SE80 in SAP and are trying to set up the endpoint in SOAPUI.&lt;/P&gt;&lt;P&gt;2. Testing the SOAP API with SOAPUI:&lt;BR /&gt;Step 1: Import the WSDL File&lt;BR /&gt;Open SOAPUI: Launch SOAPUI on your machine.&lt;BR /&gt;Create a New SOAP Project:&lt;BR /&gt;Go to File &amp;gt; New SOAP Project.&lt;BR /&gt;Enter a name for your project.&lt;BR /&gt;Under the Initial WSDL field, browse and select your WSDL file.&lt;BR /&gt;Click OK.&lt;BR /&gt;Review the Project Structure: Once the WSDL is loaded, SOAPUI will generate a project structure with all available operations and request templates.&lt;BR /&gt;Step 2: Set Up the Endpoint&lt;BR /&gt;Locate the Service: In the project structure, expand the service to view the operations.&lt;BR /&gt;Set the Endpoint:&lt;BR /&gt;Click on any request under the operation to open the request editor.&lt;BR /&gt;If the WSDL does not contain the endpoint, you need to manually specify it.&lt;BR /&gt;Enter the SOAP endpoint URL in the request editor where it says &amp;lt;Endpoint&amp;gt; or in the endpoint field at the top of the request editor.&lt;BR /&gt;The endpoint URL usually looks something like: http://&amp;lt;hostname&amp;gt;:&amp;lt;port&amp;gt;/sap/bc/srt/rfc/sap/&amp;lt;service_name&amp;gt;/...&lt;BR /&gt;Step 3: Configure Authentication (if needed)&lt;BR /&gt;Basic Authentication: If the SOAP API requires authentication:&lt;BR /&gt;Click on the Auth tab in the request editor.&lt;BR /&gt;Select Add New Authorization.&lt;BR /&gt;Choose Basic and enter the SAP user credentials.&lt;BR /&gt;Step 4: Send the Request&lt;BR /&gt;Modify the Request Payload: Customize the request payload according to the operation you want to test.&lt;BR /&gt;Send the Request: Click the green Play button to send the request.&lt;BR /&gt;View the Response: Check the response in the right panel to see if the API returns the expected data.&lt;BR /&gt;3. Activating the SOAP API in SAP S/4HANA:&lt;BR /&gt;If you're trying to activate a SOAP service in SAP and encountered an error in SE80, try the following steps:&lt;/P&gt;&lt;P&gt;Step 1: Check and Generate the Service in SE80&lt;BR /&gt;Go to SE80: Enter SE80 (Object Navigator) in SAP.&lt;BR /&gt;Select the Package: Find the package where you want to create the service.&lt;BR /&gt;Create the Service:&lt;BR /&gt;Right-click on the package, select Create &amp;gt; Enterprise Service.&lt;BR /&gt;Use the Proxy Object Type you need.&lt;BR /&gt;Follow the wizard to create the service. If you get CX_PROXY_GEN_ERROR, make sure all related objects are properly activated and consistent.&lt;BR /&gt;Step 2: Activate the Service in SOAMANAGER&lt;BR /&gt;Open SOAMANAGER: Go to Transaction SOAMANAGER in SAP.&lt;BR /&gt;Web Service Configuration: Navigate to the Web Service Configuration tab.&lt;BR /&gt;Search for the Service:&lt;BR /&gt;Enter the service name and search for it.&lt;BR /&gt;Activate the Service:&lt;BR /&gt;Once found, activate the service.&lt;BR /&gt;You can also manage endpoints and other configurations here.&lt;BR /&gt;Step 3: Testing via SAP&lt;BR /&gt;Test Service:&lt;BR /&gt;Use the Test function in SOAMANAGER to test the SOAP service.&lt;BR /&gt;You can also test the service from the SAP GUI using Transaction SE37 for Function Modules.&lt;BR /&gt;4. Testing Exchange Rates A2X API&lt;BR /&gt;If you’re specifically testing the "Exchange Rates A2X" API:&lt;/P&gt;&lt;P&gt;Load the corresponding WSDL in SOAPUI.&lt;BR /&gt;Set up the endpoint as described.&lt;BR /&gt;Send a request with the necessary input parameters related to exchange rates.&lt;BR /&gt;5. Troubleshooting Tips:&lt;BR /&gt;Endpoint Not Found: If the endpoint is missing or incorrect, verify it in SOAMANAGER.&lt;BR /&gt;CX_PROXY_GEN_ERROR: This error might be due to issues in the service definition or inactive objects. Check for consistent activation.&lt;BR /&gt;Missing Authentication: Ensure that the proper authentication method is set up in SOAPUI.&lt;BR /&gt;This should give you a complete overview of how to test and activate your SOAP API. Let me know if you need more specific details or if any issues arise during the process!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 17:10:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/test-activate-a-soap-api/m-p/13795024#M2029981</guid>
      <dc:creator>serafim789</dc:creator>
      <dc:date>2024-08-14T17:10:42Z</dc:date>
    </item>
  </channel>
</rss>

