Is there a way to remove an XML element in a SOAP getRecord response?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2017 06:40 AM
Is there a way to remove an XML element in a SOAP getRecord response? It's a field that's not needed and causing an issue in the response. Can you write a BR on query that removes that element in a response? Or maybe a setting at the table level on the field?
Thanks,
Chris
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2017 07:35 AM
Hi Chris,
It's been a while since I've done a SOAP integration, but it sounds like re-downloading the WSDL is your way to go. It's the "definition" of what they can expect. If you've suddenly started injecting new elements in the XML, that could freak out the app. I'd start there.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 05:43 AM
Hi Chris,
Did the new WSDL fix the issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 09:13 AM
Probably. They asked for it before I even posted this thread and I tried to head off a total rebuild to save some hours, but I think it tested successfully in their DEV system. No QA testing or move to PROD yet.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 06:09 AM
Hi, I think you can create an ACL on the fields you don't want to send back to not allow access if it's not an interactive user (!gs.getSession().isInteractive()) or if you want to block it from a particular user, add that as a condition. Not particularly pretty though.
Axis can be very picky! It stores the WSDL definition and if the returned value doesn't adhere to it in anyway, it just falls over - I suppose that was one of the "nice" things about SOAP. It also can be hard to get it working with complex wsdls but I don't think the OOB web services use any complex WSDLs (could be wrong)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2017 09:14 AM
Oh, I like! ACL would be a good trick to try.