I have a service which expects an XML input as one of its parameter for a method. In java I have done with the WSDL2java conversion and method identification.
Code :
Method Name: FindIssues()
FindIssues findIssues=new FindIssues();
findIssues.setUsername("user@example.com");
findIssues.setPassword("password");
findIssues.setSearchCriteria(searchCriteria);
Fine. Now the third parameter is of the type SearchCriteria class which expects OMElement.
So I should form the below XML input with the OMElement.
**<searchCriteria>**
<FindIssues>
<ReturnSchema>N</ReturnSchema>
<IssueStatus>Open</IssueStatus>
<IssuesNextActionBy>
<UsersUserID>user@example.com</UsersUserID>
</IssuesNextActionBy>
</FindIssues>
**</searchCriteria>**
Can someone help me out on forming the XML input with the OMElement?