[
http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89976
]
Tom Lambrechts commented on XFIRE-547:
--------------------------------------
Dan,
I don't use the Jsr181HandlerMapping but the XFireHttpServer.
I found an other issue in the JaxbWSDLBuilder that causes that Arraytypes and
other basic types are not included in the wsdl
The fix below fixes the fact that the ArrayType is not included in the WSDL
public void addDependency(org.codehaus.xfire.wsdl.SchemaType type)
{
if (!hasDependency(type))
{
if (type instanceof JaxbType)
{
JaxbType jaxbType = (JaxbType) type;
if (types.contains(jaxbType)) return;
classes.add(jaxbType.getActualTypeClass());
namespaces.add(jaxbType.getSchemaType().getNamespaceURI());
types.add(jaxbType);
}
// FIX!!!!! when !hasDependency(type) and not instanceof JaxbType (for example
all aegis basic types as arrayType) we still want to add it to the WSDL!
else
super.addDependency(type);
// END FIX!!!!!
}
else
{
super.addDependency(type);
}
}
> Generated collection structures don't appear on WSDL
> ----------------------------------------------------
>
> Key: XFIRE-547
> URL: http://jira.codehaus.org/browse/XFIRE-547
> Project: XFire
> Issue Type: Bug
> Components: JAX-WS, JAXB 2.0
> Affects Versions: 1.1, 1.1.1
> Environment: Java 5
> Reporter: frederic dreyfus
> Assigned To: Dan Diephouse
> Fix For: 1.2.5
>
> Attachments: FakeService.java, FakeService.wsdl, spring-xfire.xml,
> web.xml
>
>
> When trying to expose a service that returns a collection of type T :
> Collection<T> doStuff()
> The generated WSDL makes a reference to ArrayOfT but has no corresponding
> schema.
> This occurs when using the org.codehaus.xfire.jaxws.JAXWSServiceFactory and
> the org.codehaus.xfire.jaxb2.JaxbServiceFactory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email