Posted: Mon Dec 23, 2013 6:52 am Post subject: SOAP tree issue with attributes.
Master
Joined: 18 Jul 2010 Posts: 294
Hi,
I have below lines of code which when executed conevrts the ns83:Product and ns83:Reason to attributes eventhough i am trying to create them as elements and only map a attrtibute value to them.
Any thoughts please? I have also tried putting (XMLNSC.Attribute) for name.
Code:
SET OutputRoot.SOAP.Body.ns:CreateIssue_Input.ns83:ListOfServiceRequest.ns83:ServiceRequest[1].ns83:Product = InputRoot.XMLNSC.ns50:createCustomerIssueRequest.ns50:issue.ns50:product.name;
SET OutputRoot.SOAP.Body.ns:CreateIssue_Input.ns83:ListOfServiceRequest.ns83:ServiceRequest[1].ns83:Reason = InputRoot.XMLNSC.ns50:createCustomerIssueRequest.ns50:issue.ns50:product.ns50:reasons.ns50:reason.name;
SET OutputRoot.SOAP.Body.ns:CreateIssue_Input.ns83:ListOfServiceRequest.ns83:ServiceRequest[1].(XMLNSC.Field)ns83:Product = InputRoot.XMLNSC.ns50:createCustomerIssueRequest.ns50:issue.ns50:product.name;
I had to add (XMLNSC.Field) to be created as a field and not a attribute.
As this is the SOAP tree you can also use SOAP.Field
Kind regards, _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
Using references on both the Input and Output would make the code a lot easier to read and subsequently maintain _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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