{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • General /
avatar image
0
Question by Jared · Oct 25, 2017 at 12:02 PM · 728 Views servicecallout

Two Service Callouts in Request issue with path resource

hi All,

I have two service callouts to internal API Proxy. They both are placed in the request flow. When they run, the first call resource path gets appended to the second, e.g. 1st /test and then the second gets to become /another_resource/test

I have tried solving it using, the context.setVariable("target.copy.pathsuffix", false) using a JS Policy, as well as on AssignMessage in the <Set> section, but it does not seem to fix it.

Can you help.

Thanks

Comment
Add comment Show 1
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dino ♦♦   · Oct 26, 2017 at 03:52 PM 0
Link

Someone here may be able to help. Can you show the configuration of the ServiceCallout policies?

Close

1 Answer

  • Sort: 
avatar image
1
Best Answer

Answer by Nkcubeko Jamela · Nov 01, 2017 at 10:39 AM

@Jared, Your question is not that clear but please check the following proxy

may be it might help

How this proxy works:

1st I have an assign message that attaches my api proxy base path to the service callout policy(s),

both of my targeted proxies have different target endpoint mock target and httpbin

and after i receive my response use extract variable and assign message policy to get the values I require.

Sorry i am not that good at explanations.Find attached my proxy.

getresponsefrminternal-rev2-2017-11-01.zip


getresponsefrminternal-rev2-2017-11-01.zip (4.2 kB)
Comment
Add comment Show 2 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Jared · Nov 01, 2017 at 11:26 AM 0
Link

@nkcubeko I figured what the problem is.

When I created the Service Callout services, I have forgotten to change the variable on the Service callout, and i ended up with unwanted uri, when I renamed it to unique name, it fixed the problem,

Thanks

avatar image Neeraj Agrawal Jared · Nov 11, 2020 at 08:30 PM 0
Link

Thanks. I faced the same and fixed by renaming the variable here . <Request clearPayload="true" variable="requestVar">

Follow this Question

Answers Answers and Comments

35 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unable to make HTTP request via httpClient or ServiceCallout policy 6 Answers

Issue calling target from Service call out policy 1 Answer

How can I avoid proxy.basepath copy in service callout LocalTargetConnection? 1 Answer

Access JSON response from Service Callout in Javascript 1 Answer

Service Callout policy getting timed out and unable to forward response to client 1 Answer

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges