Example to extract data from SOAP Response of Entity Webservice in Java
I have a java class where I make a call to entity webservice using SOAPRequestObject. In this case, the return response has multiple values as the data coming from to-many relationship. Is there an Java example on how to parse the response NOM object?
public static int getallproducts(String ItemId) throws Exception, XMLException { String[] paramNames = {"ItemId" }; Object[] paramValues = { ItemId }; SOAPRequestObject sro = new SOAPRequestObject( "http://schemas.cordys.com/SampleWSAppServerPackage", "Getallproducts", paramNames, paramValues); int response = sro.execute(); return response; }
Also when I am using Eclipse to make updates to the Java class, I am getting this error: No exception of type XMLException can be thrown; an exception type must be a subclass of Throwable
I have added eibxml.jar file to build path. Am i missing any other lib files?
Thanks,
Mahesh
0
Categories
- All Categories
- 107 Developer Announcements
- 53 Articles
- 104 General Questions
- 141 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 898 Cloud Fax and Notifications
- 76 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 118 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management