How can we identify the downloaded proxy bundle is REST service or SOAP service?

Not applicable

I am downloading the proxy bundle through management api. Is the any way to identify that the downloaded proxy is SOAP service or REST service?

Solved Solved
0 1 139
1 ACCEPTED SOLUTION

No, there is no way, in general.

Remember Apigee Edge hosts proxies. They can be simple "passthrough" proxies and as such, completely agnostic and ignorant of the content-type of the requests. There is no requirement that proxy be "REST" or "SOAP" aware at all. So in general, there is no way to tell.

It is possible for you, or your organization, to adopt conventions that would enable detection. For example, you could establish a convention that the "description" tag for the API Proxy bundle always includes a string like type=REST or type=SOAP. Then you could example that Description element and rely on the presence of the tag.

Another way to do it, is perhaps analyze the content of the proxyendpoints in the proxy bundle and check for conditions or policies that are commonly present in SOAP-to-REST proxies. This wouldn't work the same, if you had SOAP passthrough proxies, of course.

Good luck.

View solution in original post

1 REPLY 1

No, there is no way, in general.

Remember Apigee Edge hosts proxies. They can be simple "passthrough" proxies and as such, completely agnostic and ignorant of the content-type of the requests. There is no requirement that proxy be "REST" or "SOAP" aware at all. So in general, there is no way to tell.

It is possible for you, or your organization, to adopt conventions that would enable detection. For example, you could establish a convention that the "description" tag for the API Proxy bundle always includes a string like type=REST or type=SOAP. Then you could example that Description element and rely on the presence of the tag.

Another way to do it, is perhaps analyze the content of the proxyendpoints in the proxy bundle and check for conditions or policies that are commonly present in SOAP-to-REST proxies. This wouldn't work the same, if you had SOAP passthrough proxies, of course.

Good luck.