WA Agent for WebServices: Submitting job with multiple attributes in an element
book
Article ID: 190970
calendar_today
Updated On:
Products
Workload Automation Agent
Issue/Introduction
How to define the job when an element has multiple attributes?
<soapenv:Body>
<xsd:MyElement>
<test1 name="Hello" name2="World" name3="1234">
<test2 city="Lucknow" state="UP" code="1234">
</test2>
</test1>
<country></country>
</xsd:MyElement>
</soapenv:Body>
Environment
Release : 11.4/11.5
Component : CA Workload Automation Agent for Web Services
Cause
A new fix WA Agent is required. Contact support to obtain a new fix for WebServices agent to handle the multiple attributes namespace. The WA System Agent and WA Agent for WebServices must be upgraded to 11.5
Resolution
The parameters in the job on manager side will have to be defined in this form (based on above example):
/MyElement value blank /MyElement/test1 value blank /MyElement/[email protected] value Hello /MyElement/[email protected] value World /MyElement/[email protected] value 1234 /MyElement/test1/test2value blank /MyElement/test1/test2@city value Lucknow /MyElement/test1/test2@state value UP /MyElement/test1/test2@code value 1234 /MyElement/country value blank
Additional Information
Note: Define each element from the WSDL in the job. The attributes are case sensitive. The WSDL may sometimes indicate the fields as optional however they may be required by the WebService application.