Sure you can do this.
In you services.xml file you must following code to your service definition:
<service>
.....
<method name="yourMethodName" >
<returnType>
<parameter name="yourResponseName" />
</returnType>
</method>
I've never tested this:) but it should work.
You can also use aegis mapping file :
<mappings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://xfire.codehaus.org/schemas/1.0/mapping.xsd">
<mapping>
<method name="yourMethodName">
<return-type mappedName="book" />
</method>
</mapping>
</mappings>
On 5/14/07, Matt Sanders <[EMAIL PROTECTED]> wrote:
Is there any way to customize the <out> element produced by Aegis when
using the ?wsdl auto-generation process?
WSDL Snippet from ?wsdl (Is there a way to change name="out" to name="Test") :
<xsd:element name="findTestResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="1"
name="out" nillable="true" type="ns1:Test" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
I am attempting to use the services.xml to quickly expose a DAO method
as a web service to familiarize myself with XFire. I know that the
tag emitted can be changed when using annotations and a binding
framework that supports them. I got it to work by using annotations
with JAXB 2 service factory. However, would rather do everything with
the xml file.
Java with annotation :
@WebResult(name = "Test")
public Test findTest(Integer id) {
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
--
-----
When one of our products stops working, we'll blame another vendor
within 24 hours.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email