If you're already using annotations, and prefer to annotate your
interface, then the @WebParam annotation will allow you to specify a
name.  It's a pain in the neck, but it gets the job done.

See the link below for usage:
http://xfire.codehaus.org/JSR+181+Annotations

-Chris


-----Original Message-----
From: Roy Milde [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 26, 2007 3:02 AM
To: [email protected]
Subject: Re: [xfire-user] WSDL with descriptive input names

That happens if you put the annotations in the services interface. If
you 
annotate the services implementation and link your service.xml to that
class 
the parameter names are resolved how you would expect it. But beware
that all 
methods of the impementation get exposed by the WSDL. If the
implementation 
extends some base classes, the inherited methods get exposed too.


> I have a jsr181-annotated service that I use XFire to expose.  The
> generated WSDL contains anonymous names for parameters of this
service. 
> For example, I have one service that looks like this:
>
> **************************
> <xsd:element name="retrieveBooks">
>
>       <xsd:complexType>
>       <xsd:sequence>
> <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true"
> type="xsd:string"/>
> <xsd:element maxOccurs="1" minOccurs="1" name="in1" type="xsd:int"/>
> <xsd:element maxOccurs="1" minOccurs="1" name="in2" type="xsd:int"/>
> <xsd:element maxOccurs="1" minOccurs="1" name="in3"
type="xsd:boolean"/>
> <xsd:element maxOccurs="1" minOccurs="1" name="in4"
type="xsd:boolean"/>
> <xsd:element maxOccurs="1" minOccurs="1" name="in5"
type="xsd:boolean"/>
> </xsd:sequence>
> ...
> **************************************
>
> Instead of these anonymous "in#" for names, is there a way I can
specify
> the name so that the WSDL will generate them appropriately?  I was
hoping
> it would take the name of the parameter as default.  Thanks in
advance!
>
> -los

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to