Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

send xml object in Target endpoint

I have a proxy that calls another Integration proxy , and this integration proxy calls a google application integration.

 

how to send a xml object from my main proxy to the Integration proxy

knowing that I call the integration proxy (CallAppIntegration) form my main proxy using a target endpoint as follows 

<LocalTargetConnection>
 
  <ProxyEndpoint>default</ProxyEndpoint> -->
  <APIProxy>CallAppIntegration</APIProxy>
  <ProxyEndpoint>default</ProxyEndpoint>
</LocalTargetConnection>
</TargetEndpoint>


the callapplication integration proxy code is a s follows 
 
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<SetIntegrationRequest continueOnError="false" enabled="true" name="SIR-set-integration-request">
  <DisplayName>SIR-Set Integration Request</DisplayName>
  <ProjectId>pg-ae-n-app-662190</ProjectId>
  <IntegrationName>XmlToJsonConversionIntegration</IntegrationName>
  <IntegrationRegion>us-east1</IntegrationRegion>
  <ApiTrigger>api_trigger/XmlToJsonConversionIntegration_API_1</ApiTrigger>
  <Parameters>
    <Parameter name="xml" type="string" ref="request.content"/>
  </Parameters>
</SetIntegrationRequest>
0 2 226
2 REPLIES 2

Hello @dareenhamdy, thank you for bringing your question! 🙂

Could you clarify what specific guidance you're looking for? Are there any errors or challenges you're encountering?

Additionally, we invite you to check our product articles section - feel free to explore them for any insights that may apply.

@dareenhamdy 

It seems you're using a proxy chaining mechanism where an input, originating from the main proxy, is automatically forwarded to the next proxy. Do you have the xml string as an input to the main proxy?

Please refer to the below documentation to know how the proxy chaining works:

https://cloud.google.com/apigee/docs/api-platform/fundamentals/connecting-proxies-other-proxies

Additionally I notice you are passing the parameter xml as request.content. I assume the request.content is your xml string. If not you need to pass the exact apigee flow variable name to the parameter.

  <Parameters>
    <Parameter name="xml" type="string" ref="request.content"/>
  </Parameters>