In the method signature try using java.util.Map.
public Myclass {
private java.Util.Properties p = new Properties();
public java.util.Map getProperties() {
return p;
}
}
--- Sameer Bombatkar <[EMAIL PROTECTED]> wrote:
> Hi Dims
> Writing this questiion to u individually..as I am struggling with this
> problem for quite a while...
> I have a method that returns a java.util.Properties object. I want to expose
> it thru a web-service in Axis1.1.
> When I deploy this as a web service without describing any de/serializer I
> get the following message in my server console....
> "The class java.util.Properties is defined in a java or javax package and
> cannot
> be converted into an xml schema type. An xml schema anyType will be used to
> define this class in the wsdl file"
>
> What do u see a possible solution here?
>
> Thanks
>
> Sameer.
> .....................................................
>
>
>
>
>
>
> >From: Davanum Srinivas <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: RE: Problem with WSDL2Java with generation of unbounded sequences
> >into Arrays
> >Date: Wed, 23 Jul 2003 05:29:44 -0700 (PDT)
> >MIME-Version: 1.0
> >Received: from apache.org ([208.185.179.12]) by mc7-f20.law1.hotmail.com
> >with Microsoft SMTPSVC(5.0.2195.5600); Wed, 23 Jul 2003 05:30:18 -0700
> >Received: (qmail 81325 invoked by uid 500); 23 Jul 2003 12:29:44 -0000
> >Received: (qmail 81290 invoked from network); 23 Jul 2003 12:29:43 -0000
> >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
> >Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> >Precedence: bulk
> >list-help: <mailto:[EMAIL PROTECTED]>
> >list-unsubscribe: <mailto:[EMAIL PROTECTED]>
> >list-post: <mailto:[EMAIL PROTECTED]>
> >Delivered-To: mailing list [EMAIL PROTECTED]
> >Message-ID: <[EMAIL PROTECTED]>
> >In-Reply-To:
> ><[EMAIL PROTECTED]>
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >Return-Path: [EMAIL PROTECTED]
> >X-OriginalArrivalTime: 23 Jul 2003 12:30:18.0710 (UTC)
> >FILETIME=[2D447F60:01C35116]
> >
> >C:\junk>diff finder.orig.wsdl finder.wsdl
> >95,96c95,96
> >< <xs:sequence maxOccurs="unbounded">
> >< <xs:element name="List"
> >type="finder:ServiceAccessDetails"
> >nillable="false"/>
> >---
> > > <xs:sequence >
> > > <xs:element name="List" maxOccurs="unbounded"
> >type="finder:ServiceAccessDetails" nillable="false"/>
> >
> >
> >
> >--- [EMAIL PROTECTED] wrote:
> > > Oops,
> > >
> > > Forgot to attach the WSDL for demonstrating the problem.
> > >
> > > Regards,
> > >
> > > Santosh
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, July 23, 2003 12:36 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Problem with WSDL2Java with generation of unbounded sequences
> > > into Arrays
> > > Importance: High
> > >
> > >
> > > Experts,
> > >
> > > Probably you have seen this problem, but could someone suggest a way
> >forward
> > > please.
> > >
> > > I have attached the WSDL on which if I execute the WSDL2Java utility
> >expect
> > > to see an array of Objects in the ServiceAccessDetailsList class.
> > >
> > > But unfortunately it does not happen. Any hints to solution are
> >obviously
> > > most welcome (Do I need to tweak the WSDL? I wouldn't have thought so.
> >The
> > > WSDL is liked by XMLSPY and .NET Framework 1.1)
> > >
> > > Please help.
> > >
> > > Regards,
> > >
> > > Santosh
> > >
> > > Santosh Joshi
> > >
> > >
> > >
> >
> > > ATTACHMENT part 2 application/octet-stream name=finder.wsdl
> >
> >
> >
> >=====
> >Davanum Srinivas - http://webservices.apache.org/~dims/
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! SiteBuilder - Free, easy-to-use web site design software
> >http://sitebuilder.yahoo.com
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
=====
Davanum Srinivas - http://webservices.apache.org/~dims/
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com