{ 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 /
  • Edge/API Management /
avatar image
2
Question by churk.leung · Jan 06, 2015 at 03:10 PM · 483 Views jsontoxml

Json to XML Array within Array with Different Parent Names

I am trying to build an XML structure for a WSDL call, since there isn't a real proper way to send an arbitary size list of complex objects using the parameter passing method, I decided to use Json to XML. Here is my basic Json

school:{
    teachers : [

        {students :[{name: student1}, {name: student2}], name : teacher1},
        {students :[{name: student3}, {name: student4}], name : teacher2}
    ]
}

and what I want to see as an end result is

<school>
  <teachers>
    <name>teacher1</name>
    <students>
      <name>student1</name>
      <name>student2</name>
    </students>
  </teachers>
  <teachers>
    <name>teacher1</name>
    <students>
      <name>student1</name>
      <name>student2</name>
    </students>
  </teachers>
</school>

Using what Apigee Documentation

<ArrayRootElementName>Teachers</ArrayRootElementName>

It still would handle the Students properly, in fact it changes my Students to Teachers. Can someone help please.

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 Mason Harris · Sep 19, 2019 at 12:48 PM 0
Link

Hello! I am very glad that I got to such a cool forum and would like to support such an interesting issue. In childhood itself, everyone wants him to have a scooter, but of course, money is not always enough for such a pleasure. Of course, those who worked in the summer could afford such a pleasure. I think of my red BMW scooter with which I drove more than 10,000 kilometers. I watched the material for a long time on the Internet and decided to order several articles on this topic at https://writingcreek.com/, where I learned a lot about myself. Therefore, if you are young. you have a day, there’s nothing to even think about - you need to go to the store and buy a scooter.

Close

2 Answers

  • Sort: 
avatar image
0
Best Answer

Answer by Michael Malloy   · Jan 07, 2015 at 02:14 AM

Hello Churk,

We also got your message on the Support Portal and we're under the impression that you will be sending us some of your files so that we can try them out here ourselves.

According to Alex Toombs of our Customer Suppport department "This could be a limitation in our conversion, and custom scripting may be required. It might also be a bug. From what I can tell, he's set it all up correctly.

If we can't find the answer (and I haven't yet), we may also need to solicit some input from Customer Success Team as this is their area of expertise."

We'll actively work with you to find a solution to your problem.

Comment
Add comment Show 1 · 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 churk.leung · Jan 07, 2015 at 01:52 PM 0
Link

I posted this question before I was in contact with Alex. It was toward EOD yesterday for me so I am still working on getting the sample data to him. Will be sending that shortly today. Thank you.

avatar image
0

Answer by Michael Malloy   · Jan 07, 2015 at 04:18 PM

No problems, Churk as long as you are taken care of. We would like to post the answer here as well so a wider audience can know about it.

Comment
Add comment Show 1 · 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 Shivakumar Sudi · May 08, 2019 at 06:21 AM 0
Link

hello, can you post the answer here please?

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

What are the performance concerns for a JSON-to-XML policy when the response payload JSON is large (in this case, around 15MB)? 2 Answers

unable to append namespace to object root element using jsontoxml policy 1 Answer

Error with XSL transform: java.lang.String cannot be cast to com.apigee.flow.message.Message 1 Answer

JSON to XML: Invalid ObjectRootElementName with Colon 1 Answer

How to stream a data is already in JSON from WSDL? Data from WSDL and in JSON format, I would like to show as an XML format data. 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