Re: WSDL , Apache Soap question

2002-01-14 Thread greyson . smith


This is what is working for me...

types
  xsd:schema
  targetNamespace=http://www.lockerservice.com/Locker;
xmlns=http://www.w3.org/1999/XMLSchema/;
xsd:complexType
  name=Hashtable
  xsd:element name=table
  type=xsd:[Ljava.util.Hashtable$Entry;/
  xsd:element
  name=count type=xsd:int/
  xsd:element
  name=threshold type=xsd:int/
  xsd:element
  name=loadFactor type=xsd:float/
  xsd:element
  name=modCount type=xsd:int/
  xsd:element
  name=serialVersionUID type=xsd:long/
  xsd:element
  name=keySet type=xsd:java.util.Set/
  xsd:element
  name=entrySet type=xsd:java.util.Set/
  xsd:element
  name=values
  type=xsd:java.util.Collection/
  xsd:element
  name=KEYS type=xsd:int/
  xsd:element name=VALUES
  type=xsd:int/
  xsd:element name=ENTRIES
  type=xsd:int/
  xsd:element name=emptyEnumerator
  type=xsd:java.util.Hashtable$EmptyEnumerator/
  xsd:element
  name=emptyIterator
type=xsd:java.util.Hashtable$EmptyIterator/
/xsd:complexType
  /xsd:schema
/types

In the declaration of the method:
type=tns:Hashtable


In the deployment descriptor:

  isd:map encodingStyle=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:x= qname=x:meth5_outType javaType=java.util.Map
java2XMLClassName=org.apache.soap.encoding.soapenc.HashtableSerializer
xml2JavaClassName=org.apache.soap.encoding.soapenc.HashtableSerializer /


   
 
Raghavan  
 
Srinivasan  To: [EMAIL PROTECTED], 
[EMAIL PROTECTED] 
raghavan@iplcc:   
 
anet.comSubject: WSDL , Apache Soap question  
 
   
 
11-01-02   
 
07:04 PM   
 
Please 
 
respond to 
 
soap-user  
 
   
 
   
 




I have a Apache Web service one of whose methods  takes in
java.util.Hashtable as a parameter . I understand that the Apache
Toolkit supports Hashtable encoding . But i want to write a WSDL
interface to this service that toolkits from other languages could use
to generate stubs .

I could'nt find the right schema element to represent a structure
similar to Map / Hashtable .

I used the Idoox java2wsdl utility to see what the utility generates and
it came up with ns0:Hashtable
where ns0 = http://xml.apache.org/xml-soap .

This is obviously Apache specific and I dont know how compilers from
other languages will interpret it .

 Has anyone else faced a similar issue ?

Thanks -
Raghavan





--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.





RE: WSDL , Apache Soap question

2002-01-13 Thread Sandy Liu

After testing apache soap for a while, I decided to swithch to
GLUE(http://www.themindelectric.com/products/glue/glue.html). It's very easy
to use, almost fool proof. WSDL file is automatically generated when you
publish a soap service. It also has a tool called wsdl2java, which generates
the interface needed to get access to the soap service on another machine.

Good luck,

Sandy

 -Original Message-
 From: Raghavan Srinivasan [mailto:[EMAIL PROTECTED]]
 Sent: January 11, 2002 10:05 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: WSDL , Apache Soap question


 I have a Apache Web service one of whose methods  takes in
 java.util.Hashtable as a parameter . I understand that the Apache
 Toolkit supports Hashtable encoding . But i want to write a WSDL
 interface to this service that toolkits from other languages could use
 to generate stubs .

 I could'nt find the right schema element to represent a structure
 similar to Map / Hashtable .

 I used the Idoox java2wsdl utility to see what the utility generates and
 it came up with ns0:Hashtable
 where ns0 = http://xml.apache.org/xml-soap .

 This is obviously Apache specific and I dont know how compilers from
 other languages will interpret it .

  Has anyone else faced a similar issue ?

 Thanks -
 Raghavan