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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"; xmlns:tns="http://com.test/wsdl/Webservice"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:ns2="http://java.sun.com/jax-rpc-ri/internal"; xmlns:ns3="http://com.test/types/Webservice"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; name="Webservice" targetNamespace="http://com.test/wsdl/Webservice";>
  <types>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:tns="http://java.sun.com/jax-rpc-ri/internal"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; targetNamespace="http://java.sun.com/jax-rpc-ri/internal";>
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <import namespace="http://com.test/types/Webservice"/>
      <simpleType name="datahandler">
        <restriction base="base64Binary"/></simpleType>
      <complexType name="vector">
        <complexContent>
          <extension base="tns:list">
            <sequence/></extension></complexContent></complexType>
      <complexType name="list">
        <complexContent>
          <extension base="tns:collection">
            <sequence/></extension></complexContent></complexType>
      <complexType name="collection">
        <complexContent>
          <restriction base="soap11-enc:Array">
            <attribute ref="soap11-enc:arrayType" wsdl:arrayType="anyType[]"/></restriction></complexContent></complexType></schema>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"; xmlns:tns="http://com.test/types/Webservice"; xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; targetNamespace="http://com.test/types/Webservice";>
      <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
      <import namespace="http://java.sun.com/jax-rpc-ri/internal"/>
      <complexType name="WebserviceCredential">
        <sequence>
          <element name="applicationCredential" type="anyURI"/></sequence></complexType>
      <complexType name="ArrayOfUserDataHandler">
        <complexContent>
          <restriction base="soap11-enc:Array">
            <attribute ref="soap11-enc:arrayType" wsdl:arrayType="tns:UserDataHandler[]"/></restriction></complexContent></complexType>
      <complexType name="UserDataHandler">
        <sequence>
          <element name="dataHandler" type="ns2:datahandler"/>
          <element name="metaData" type="anyURI"/></sequence></complexType></schema></types>
  <message name="Webservice_getContent">
    <part name="WebserviceCredential_1" type="ns3:WebserviceCredential"/>
    <part name="String_2" type="xsd:anyURI"/>
    <part name="String_3" type="xsd:anyURI"/>
    <part name="String_4" type="xsd:anyURI"/>
    <part name="String_5" type="xsd:anyURI"/></message>
  <message name="Webservice_getContentResponse">
    <part name="result" type="ns3:ArrayOfUserDataHandler"/></message>
  <message name="Webservice_getContentByQuery">
    <part name="WebserviceCredential_1" type="ns3:WebserviceCredential"/>
    <part name="String_2" type="xsd:anyURI"/>
    <part name="String_3" type="xsd:anyURI"/>
    <part name="String_4" type="xsd:anyURI"/>
    <part name="String_5" type="xsd:anyURI"/>
    <part name="String_6" type="xsd:anyURI"/></message>
  <message name="Webservice_getContentByQueryResponse">
    <part name="result" type="ns3:ArrayOfUserDataHandler"/></message>
  <portType name="Webservice">
    <operation name="getContent" parameterOrder="WebserviceCredential_1 String_2 String_3 String_4 String_5">
      <input message="tns:Webservice_getContent"/>
      <output message="tns:Webservice_getContentResponse"/></operation>
    <operation name="getContentByQuery" parameterOrder="WebserviceCredential_1 String_2 String_3 String_4 String_5 String_6">
      <input message="tns:Webservice_getContentByQuery"/>
      <output message="tns:Webservice_getContentByQueryResponse"/></operation>
   </portType>
  <binding name="WebserviceBinding" type="tns:Webservice">
    <operation name="getContent">
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; use="encoded" namespace="http://com.test/wsdl/Webservice"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; use="encoded" namespace="http://com.test/wsdl/Webservice"/></output>
      <soap:operation soapAction=""/></operation>
    <operation name="getContentByQuery">
      <input>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; use="encoded" namespace="http://com.test/wsdl/Webservice"/></input>
      <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"; use="encoded" namespace="http://com.test/wsdl/Webservice"/></output>
      <soap:operation soapAction=""/></operation>
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="rpc"/></binding>
  <service name="Webservice">
    <port name="WebservicePort" binding="tns:WebserviceBinding">
      <soap:address xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"; location="https://localhost:8443/ws/Webservice"/></port></service></definitions>

Reply via email to