Posted: Thu May 06, 2021 1:04 pm Post subject: Spending out empty xml tags
Master
Joined: 05 Dec 2007 Posts: 296
Hi please help. I have a request to call a provider sending xml . The issue is if I send it with empty tags as <name/> they fail. The expect me to send the request as <name></name>
Even though on my stylesheet I have it that way, somehow before it leaves datapower it is converted to empty tag. How can I do this.
Somehow the provider system are forcing me to send open and close tag and also remove encoding from xml declaration.
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
So your provider is not using a real XML parser as <name/> and <name></name> are the same. That is why Datapower is shortening it, for a real XML parser it makes no difference. This sounds like they have created some home grown XML "parser" instead of using an already available (and correct) parser.
If they insist on this format then maybe try to send a space as the data field but I don't believe you can force Datapower to output the open and close tags with no data in there.
Posted: Sun May 08, 2022 3:40 pm Post subject: Re: Spending out empty xml tags
Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
matuwe wrote:
Somehow the provider system are forcing me to send open and close tag and also remove encoding from xml declaration.
Inform them that Datapower is sending standard XML and they need to comply with the standard. It looks like they are forcing you to make up for the shortcomings in their system. _________________ Glenn
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