For example, if the service was returning a String - we would have the QName set as follows:
QName qName = new QName(NS_XSD, "string");
Similarly, how would I do it with a user defined class as UserDataHandler class.
I work in Broomfield,CO in Sun's IT.
TIA Sesha
Wagh, Shrikant wrote:
Hello Sesha,
Here's one simple sample for the operation which takes a collection of
objects and returns the collection of objects. Instead of vector you can
use any collection type or just Object[]. There are so many
different/alternative and efficient ways you can pass the
array/collection of objects and receive the returned objects. Once you
create the call and set the endpoint, operation, etc... Here's how you
can invoke the operation.
CustomType[] input = new CustomType [3];
input[0] = new CustomType ();
input[1] = new CustomType ();
input[2] = new CustomType ();
Vector elems = (Vector) call.invoke( input );
CustomType elem1 = (CustomType) elems.get(0);
CustomType elem2 = (CustomType) elems.get(1);
CustomType elem3 = (CustomType) elems.get(2);
Hope this helps.
By the way, which group you are in? I used to work for Sun(MV, MPK and SC) for almost 5 years in several different groups and at several different positions.
Good luck, Shrikant Wagh QA Lead, HPP/Eprofile, HP
For those who are interested in Web Services testing:
-----------------------------------------------------
I found that WebServiceTester from Optimyz software is a very good tool
for testing any types of web services, and I'm great fan of this tool.
It supports all types of web services, and all simple and complex types
and it very usable than any other tool in the market I ever
used/evaluated. It automatically generates the SOAP requests and invokes
the intended web services. It can perform functional, regression and
load testing of web services. Result analysis and status reporting is
just wonderful. I'll highly recommend this tool for testing web
services, saves lots of time and efforts in testing web services. For
more information visit http://www.optimyz.com.
DISCLAIMER ================================================================
THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE I/HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. =================================================================
-----Original Message-----
From: Sesha Nandyal [mailto:[EMAIL PROTECTED] Sent: Friday, January 09, 2004 8:32 AM
To: [EMAIL PROTECTED]
Subject: Re: DII and user defined classes
Hello All,
Please find as an attachment the wsdl file. As you would see, I return an array of UserDataHandler objects (which encapsulate a DataHandler object). I would appreciate if you could guide me in writing
a client code using DII.
Thanks Sesha
Sesha Shayan Nandyal wrote:
Hi Shrikant, Thanks for the reply. I am looking for a client code sample that
has user defined classes. In our case, we have an array of instances (a user defined class that encapsulates a DataHandler) that is returned to the client from the webservice. Unfortunately as of now I would not be able to share the wsdl.
Thanks Sesha
----- Original Message ----- From: "Wagh, Shrikant" <[EMAIL PROTECTED]> Date: Thursday, January 8, 2004 6:17 pm Subject: RE: DII and user defined classes
Hello Sesha,
What exactly are you looking for? Are you looking for the client code sample using DII? Is it possible for you to share your WSDL file or interfaces?
Thanks, Regards, Shrikant Wagh QA Lead, HPP/Eprofile, HP
For those who are interested in Web Services testing:
-----------------------------------------------------
I found that WebServiceTester from Optimyz software is a very good toolfor testing any types of web services, and I'm great fan of this tool.
It supports all types of web services, and all simple and complex typesand it very usable than any other tool in the market I ever
encountered/evaluated. It automatically generates the SOAP requests and
invokes the intended web services. It can perform functional, regressionand load testing of web services. Result analysis and status reporting
is just wonderful. I'll highly recommend this tool for testing web
services, saves lots of time and efforts in testing web services. For
more information visit http://www.optimyz.com.
================================================================
THESE ARE MY PERSONAL VIEWS/OPINIONS AND DOES NOT REPRESENT HP, AND THE
INFORMATION PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES,INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALLTHE HP BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
INFORMATION, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----Original Message-----
From: Sesha Shayan Nandyal [EMAIL PROTECTED] Sent: Thursday, January 08, 2004 5:56 PM
To: [EMAIL PROTECTED]
Subject: DII and user defined classes
Hello All,
I am trying to use DII and user defined classes. The SOAP response is
an array of objects. It will be helpful if you could share a code
snippet/example/pointer to handling user defined classes in Dynamic
Invocation Interface.
Thanks Sesha
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NOTICE: This email message is for the sole use of the intended recipient(s)
and may contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are not the
intended recipient, please contact the sender by reply email and destroy all
copies of the original message.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
