# Adapter Service : Calling from external REST Client

**URL:** <https://techcommunity.softwareag.com/t/adapter-service-calling-from-external-rest-client/232491>\
**Category:** Forum\
**Tags:** REST\
**Created:** [August 24, 2020, 9:31am UTC](https://techcommunity.softwareag.com/t/adapter-service-calling-from-external-rest-client/232491 "2020-08-24T09:31:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mujawaranjum](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@mujawaranjum](https://techcommunity.softwareag.com/u/mujawaranjum)\
**Post date:** [August 24, 2020, 9:31am UTC](https://techcommunity.softwareag.com/t/adapter-service-calling-from-external-rest-client/232491/1 "2020-08-24T09:31:28Z")

</div>

Hi,

I want to know if its possible to call Adapter Service from external (public/ internal) REST client from process running outside of webMethods runtime.

With extensive research in documentation, no where it is clearly mentioned that Adapter service **must have** additional wm Java Service created just to call it.

Follwing image shows it can be called directly without having REST endpoint configured on webMethods IS.  
 ![1](https://global.discourse-cdn.com/techcommunity/original/2X/3/36aa81460b925e35e57cc274edd84e33395e50fa.png)

In above image, you can see it is mentioned as  
“An Integration Server client, **typically** using a flow or Java service, invokes  
a JDBC Adapter service on the webMethods Integration Server to perform  
an operation on a database.”  
Why it is mentioned as **Typically**? What are other options here?

Following Image shows need to Flow/Java to call adapter service  
 ![2](https://global.discourse-cdn.com/techcommunity/original/2X/0/06b18947d4446c2abdaa5c87315c5d0ed8fdc317.png)

If not rest call, what are the other options if we need to call it from some process. Ex. Client program calling Adapter service directly.

Primary objective is to create Adapter Service, Call from external client, and do not need to create intermediate REST V2 service for access.  
Thanks

---

<div class="post-metadata">

**Author:** ![Holger\_von\_Thomsen](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/holger_von_thomsen/32/178_2.png) [@Holger\_von\_Thomsen](https://techcommunity.softwareag.com/u/Holger_von_Thomsen)\
**Post date:** [August 24, 2020, 2:28pm UTC](https://techcommunity.softwareag.com/t/adapter-service-calling-from-external-rest-client/232491/2 "2020-08-24T14:28:26Z")

</div>

Hi Anjum,

I am not quite sure where your issue is.

There is no need to use REST here.

The Adapter Service can either be assigned to an “Inoke a Service”-Step in process directly, or by using an additional Flow Services (using a Flow Service is preferred over using a Java Service) as a Wrapper.

In the case this is needed you can expose the wrapping Service as a REST provider resource to other parties.  
I am not sure if this possible for the AdapterService itself.

Regards,  
Holger

---

<div class="post-metadata">

**Author:** ![mujawaranjum](https://avatars.discourse-cdn.com/v4/letter/m/49beb7/32.png) [@mujawaranjum](https://techcommunity.softwareag.com/u/mujawaranjum)\
**Post date:** [August 24, 2020, 8:31pm UTC](https://techcommunity.softwareag.com/t/adapter-service-calling-from-external-rest-client/232491/3 "2020-08-24T20:31:42Z")

</div>

Thanks @Holger_von_Thomsen

Not an issue but designing micro services on webMethods.

Below is simplified summery of requirement…

1. All data access must be done through Data Adapter Service.
2. External micro services / External client (C# / java) calling Adapter Service directly (REST/RPC) without needing to create wrapper webMethod’s java/flow service in-between client & adapter service.

Couldn’t find definite answer on point #2 above in any SAG WM documentation.

Thanks

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 3:45pm UTC](https://techcommunity.softwareag.com/t/adapter-service-calling-from-external-rest-client/232491/4 "2021-04-02T15:45:05Z")

</div>


