Yes... LOL I did select "Use Java Object". I've attached a screenshot showing the WSOP with the return object defined as "SearchResult", which is class included in the stub. When I try to retrieve the value after the WSOP has executed, I'm using "mySession.getVariable(...).getSimpleVariable().getObjectValue()", and when I try to cast it to the SearchResult object, a ClassCastException is thrown saying a String cannot be cast to SearchResult. If I bypass the WSOP and execute the operation directly from a servlet, I get the correct result returned.
10/03/2017 06:38:00:261 INFO - B8613B3BBE61816617D84A412765F1E1:/WsTest : Capturing exception [java.lang.ClassCastException]. Message [java.lang.String cannot be cast to connectivity.ws.beans.ITSMAdapterWSImplServiceStub$SearchResponse]
10/03/2017 06:38:00:262 ERROR - B8613B3BBE61816617D84A412765F1E1:/WsTest : java.lang.ClassCastException: java.lang.String cannot be cast to connectivity.ws.beans.ITSMAdapterWSImplServiceStub$SearchResponse
at flow.ParseItsmResult.servletImplementation(ParseItsmResult.java:55)
I have a working demo that shows the problem, but I can't post it here [sensitive data]. Let me know where I should send it.
Also, I'm using Orchestration Designer 7.1, Java 8, and Tomcat 8... if that matters. :)