{ 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 /
  • API Design /
avatar image
1
Question by Bhogasena Reddy Kalakata · Jan 29 at 03:01 PM · 81 Views assign message policyresource files

How to assign resourceURL dynamically in AssignMessage Policy

Hi Team,

I want to return WSDL dynamically based on the resource path with in same proxy dynamically. For now i can only return by explicitly mentioning the resourceURL.

I want to create the variable and assign URL - this logic i know how to do

Now i am not able to mention that variable in resourceURL.

Could you please advise ?

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <AssignMessage name="AM-WSDLResponse"> <Set> <Payload contentType="text/xml" resourceURL="template://test.wsdl"/> </Set> <IgnoreUnresolvedVariables>true</IgnoreUnresolvedVariables> <AssignTo createNew="false" transport="http" type="response"/> </AssignMessage>

Comment
Add comment
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

Close

2 Answers

  • Sort: 
avatar image
1

Answer by Priyadarshi Ajitav Jena · Jan 29 at 03:12 PM

you can use Assign Variable with Ref tag.

You can use Template as well.

<AssignVariable>
    <Name>variable_name</Name>
    <PropertySetRef>source_variable</PropertySetRef>
    <Ref>source_variable</Ref>
    <Template>message_template</Template>
    or
    <Template ref='template_variable'></Template>
    <Value>variable_value</Value>
  </AssignVariable>
Comment
Add comment · 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
0

Answer by Dino-at-Google   · Jan 30 at 01:42 AM

I do not know of a way to do what you want today, unfortunately.

There is a feature coming, which will allow it. ref: b/155436526

The way it will work:

<AssignVariable>
  <Name>variable_name</Name>
  <ResourceURL>wsdl://something.wsdl</ResourceURL>
</AssignVariable>

What this will do is assign the text content of that WSDL file to the named variable. The text within the ResourceURL element itself is a message template, so you will be able to do this:

<AssignVariable>
  <Name>variable_name</Name>
  <ResourceURL>wsdl://{a_variable_here}.wsdl</ResourceURL>
</AssignVariable>

This is not yet available in Apigee cloud. Coming soon.

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 Bhogasena Reddy Kalakata · Feb 02 at 02:01 PM 0
Link

Thank you Dino..do you know when this feature will be avilable

avatar image Dino-at-Google ♦♦ Bhogasena Reddy Kalakata   · Feb 02 at 11:28 PM 0
Link

IF YOU ARE ON Apigee X, I am estimating that it will be available very soon. I don't know exactly when. Perhaps a few weeks.

For other versions of Apigee, it will take much longer.

Follow this Question

Answers Answers and Comments

68 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 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

Set Values dynamically using assign message policy 1 Answer

POST to GET using Assign Message Policy 2 Answers

Proxy with Query Parameter calling Target with Path Parameter 1 Answer

Remove Selective Authorization header 2 Answers

How to add parameters in request.content 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