ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Convert XML to JSON

Post new topic  Reply to topic
 Convert XML to JSON « View previous topic :: View next topic » 
Author Message
mqbugman
PostPosted: Tue Nov 21, 2023 5:22 am    Post subject: Convert XML to JSON Reply with quote

Newbie

Joined: 21 Nov 2023
Posts: 1

Hello!

Currently, I've been working on a flow that calls a webservice using the HTTP Request connector and assembles the response in JSON. However, the webservice's response XML contains some XSD notations in the tags, for example:

<s:Envelope xmlns:s="url">
<s:Header></s:Header>
<s:Body>
<FiltrarUsuarioResponse xmlns="url">
<FiltrarUsuarioResultxmlns:a="url" xmlns:i="url">
<a:TB_USUARIO z:Id="i1" xmlns:z="url">
<a:field>VALUE<a:field>
...

These XSD declarations in the tags are preventing me from retrieving the values to assemble the JSON output. Can you help me?
Back to top
View user's profile Send private message
timber
PostPosted: Wed Nov 22, 2023 4:32 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

Quote:
Can you help me?
Definitely. Please supply your current code and explain exactly what is going wrong, and it should be fairly simple.
Back to top
View user's profile Send private message
yamsever
PostPosted: Wed Dec 13, 2023 2:25 am    Post subject: Reply with quote

Newbie

Joined: 20 Sep 2023
Posts: 1

To handle XSD declarations in XML tags during conversion to JSON, you might want to consider using a dedicated XML-to-JSON conversion tool or library that can handle schema notations. This ensures a smoother conversion process, allowing you to retrieve values more effectively. Additionally, you can explore options like removing or ignoring the XSD declarations before conversion.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Dec 13, 2023 3:03 pm    Post subject: Reply with quote

Jedi

Joined: 25 Mar 2003
Posts: 2495
Location: Melbourne, Australia

Very sleek and glossy first post from a new user. AI spam bots strike again? I suspect that we will never hear from yamsever again as a real person, but I am quite prepared to eat my words.
_________________
Glenn
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Convert XML to JSON
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.