{ 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 /
  • Academy/Certification /
avatar image
0
Question by Sonali · Feb 03, 2015 at 04:22 PM · 1k Views apigeeservicecallout

Cannot save revision, using ServiceCallout policy

I am Studying how to create and manage apis with Apigee. While implementing service callout policy, it gives me error "Server Error. org.apache.xerces.dom.ElementNSImpl cannot be cast to com.apigee.messaging.config.beans.TargetConnection". So can't save revision...what to do?

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
0

Answer by Michael Malloy   · Feb 03, 2015 at 04:42 PM

There is likely some problem with the configuration of your Service Callout policy that is causing it to not save. Here is an example of a Service Callout from the course that worked. Possibly you can find some difference and resolve it in your proxy

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ServiceCallout async="false" continueOnError="false" enabled="true" name="Service-Callout-1">
    <DisplayName>Service Callout 1</DisplayName>
    <FaultRules/>
    <Properties/>
    <Request clearPayload="true" variable="myRequest">
        <IgnoreUnresolvedVariables>false</IgnoreUnresolvedVariables> 
      <Set>
       <Verb>GET</Verb>
       <QueryParams>
         <QueryParam name="ql">select * where jokeid = {request.queryparam.jokeid}</QueryParam>
        </QueryParams>
      </Set>
    </Request>
    <Response>commentResponse</Response>
    <HTTPTargetConnection>
        <Properties/>
        <URL>https://api.usergrid.com/mike.malloy/sandbox/jokecomments</URL>
    </HTTPTargetConnection>
</ServiceCallout>
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 Sonali · Feb 03, 2015 at 05:25 PM 0
Link

Thanks for reply..This is my code. Its same I guess...but still there is error.

code.jpg (97.0 kB)
avatar image Dino-at-Google ♦♦ Sonali   · Sep 15, 2020 at 02:16 PM 0
Link

That's the code for a ServiceCallout, for sure . I suspect that you also have some ServiceCallout things in the TargetEndpoint. In other words, maybe the code is correct, but it's in the wrong place.

avatar image
0

Answer by sgopalam@apigee.com · Dec 09, 2015 at 06:41 PM

I have faced similar issues in the past. The culprit always has been some hidden special character in the policy, this generally happens when you copy past code from the browser and past it in directly in the UI editor. To work around this I had to delete the policy and create the same policy fresh and put the code in it again. Hope this helps..

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

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

why it is called as apigee?...API we got but what is gee? 4 Answers

Certification: Analysis of strong vs weak areas 3 Answers

learning Oath2 from apigee for certification 3 Answers

Please help me on APIGEE L1 certification 1 Answer

Sample Exam for Apigee Certification 3 Answers

  • 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