The sample implements the cookbook topic:
It also demonstrates how you can work with message content. A policy is used to transform the weather report from XML to JSON. The resultant JSON is then parsed into a minimized response message that would mobile device-friendly.
What you need:
- The username and password that you use to login to enterprise.apigee.com.
- The name of the organization in which you have an account. Login to enterprise.apigee.com and check account settings.
/setup/setenv.sh with your environment details
Import and deploy sample project
To deploy, run
$ sh deploy.sh
To test, run
$ sh invoke.sh
For assistance, please use StackOverflow and add the tag "apigee".
Copyright © 2014 Apigee Corporation
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.