Sorry, I stated the problem somewhat incorrectly. The actual POJO ws
call is:
public Vendor wsgetVendor(String VID) throws Exception...
A recent posting about returned IN/OUT params tweaked my memory. The
questions remains how to access the contents of the returned object in
the generated client.
Thanx,
Garth
Garth Keesler wrote:
Given a web service that accepts a string and returns an instance of a
class with that string as a unique field as follows:
wsGetPerson(String ID, Person person)
where ID uniquely identifies an instance of the Person class which gets
returned by the web service.
The generated output of running wsdl2java against that web service
knows nothing about the java class "Person" (an important feature for
client isolation, IMHO) so how do I access the contents of the returned
object in the generated client? Following is the code from the client
that invokes essentially the same web service described above but for
class "Vendor" instead of "Person".
<start of code>
public void testwsgetVendor() throws java.lang.Exception{
com.ttna.WsVendorStub stub =
new com.ttna.WsVendorStub();//the default
implementation should point to the right endpoint
com.ttna.WsVendorStub.WsgetVendor param14=
(com.ttna.WsVendorStub.WsgetVendor)getTestObject(com.ttna.WsVendorStub.WsgetVendor.class);
// todo Fill in the param14 here
param14.setParam0("hsv");
assertNotNull(stub.wsgetVendor(
param14));
<end of code>
So what do I extract from "param14" to get the returned data?
Thanx,
Garth
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
|