[jira] Created: (XFIRE-547) Generated collection structures don't appear on WSDL

View: New views
20 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

[jira] Created: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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


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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://jira.codehaus.org/browse/XFIRE-547?page=comments#action_71023 ]
           
Rick Sears commented on XFIRE-547:
----------------------------------

I'm trying to become more familiar with the code, but I think the issue may stem from this area of the JaxbTypeCreator class:

    public Type createType(Method m, int index)
    {
        Class clazz = null;
        if (index > -1)
        {
            clazz = m.getParameterTypes()[index];
        }
        else
        {
            clazz = m.getReturnType();
        }
       
        if (isJaxbType(clazz))
        {
            return createJaxbType(clazz);
        }
        else
        {
            return nextCreator.createType(m, index);
        }
    }

Calling m.getReturnType on a method that returns a List<Bar> would only return List as the class, and then the subsequent call to isJaxbType would return false for the java.util.List class.  I've seen this mentioned before in JIRA issue XFIRE-85, but that did not seem to deal with the JAXB version of the code.

Hope this helps.

> 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: JAXB 2.0, JAX-WS
>    Affects Versions: 1.1, 1.1.1
>         Environment: Java 5
>            Reporter: frederic dreyfus
>         Assigned To: Dan Diephouse
>
> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://jira.codehaus.org/browse/XFIRE-547?page=comments#action_71025 ]
           
Rick Sears commented on XFIRE-547:
----------------------------------

Another note.  It seems that the Java5TypeCreator handles all the generic support for the Aegis binding, but the JaxbTypeCreator does not extend from this class or have a reference to this creator to help it resolve return types that use generics.  Don't know if there is a way to configure the JaxbTypeCreator externally to utilize some of the functionality of the Java5TypeCreator, but if there is i'd love to try it out.

> 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: JAXB 2.0, JAX-WS
>    Affects Versions: 1.1, 1.1.1
>         Environment: Java 5
>            Reporter: frederic dreyfus
>         Assigned To: Dan Diephouse
>
> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

    [ http://jira.codehaus.org/browse/XFIRE-547?page=comments#action_84008 ]
           
mark larman commented on XFIRE-547:
-----------------------------------

This could be a different manifestation of the JIRA issue XFIRE-526 where an ArrayOfString is referenced but not declared.

> 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: JAXB 2.0, JAX-WS
>    Affects Versions: 1.1, 1.1.1
>         Environment: Java 5
>            Reporter: frederic dreyfus
>         Assigned To: Dan Diephouse
>
> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://jira.codehaus.org/browse/XFIRE-547?page=all ]

Dan Diephouse updated XFIRE-547:
--------------------------------

    Fix Version/s: 1.2.4

OK, looking into this.

> 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: JAXB 2.0, JAX-WS
>    Affects Versions: 1.1, 1.1.1
>         Environment: Java 5
>            Reporter: frederic dreyfus
>         Assigned To: Dan Diephouse
>             Fix For: 1.2.4
>
>
> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

     [ http://jira.codehaus.org/browse/XFIRE-547?page=all ]

Dan Diephouse updated XFIRE-547:
--------------------------------

    Fix Version/s:     (was: 1.2.4)

I can't reproduce this in the latest release. Have you tried using a 1.2.x build?

Here is my test service:

@WebService
public class CollectionService {
        public Collection<Foo> getFoos() {
                return null;
        }
}

> 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: JAXB 2.0, JAX-WS
>    Affects Versions: 1.1, 1.1.1
>         Environment: Java 5
>            Reporter: frederic dreyfus
>         Assigned To: Dan Diephouse
>
> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87216 ]

Frédéric Desmoulins commented on XFIRE-547:
-------------------------------------------

Same problem for me on:

Java 6 (build 1.6.0-b105)
jaxws-2.1fcs
XFire 1.2.4

With XFire Settings:
JaxbServiceFactory
JaxbTypeRegistry
Jsr181WebAnnotations

Java sample:
WebMethod:
List<Person> getUsers() {...}

Generated Schema:
<xsd:element name="getUsersResponse">
            <xsd:complexType>
               <xsd:sequence>
                  <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" type="ns1:ArrayOfPerson"/>
               </xsd:sequence>
            </xsd:complexType>
</xsd:element>


But "ns1:ArrayOfPerson" is not declared in the WSDL.

> 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
>
> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Diephouse updated XFIRE-547:
--------------------------------

    Fix Version/s: 1.2.5

Hi Frederic - any chance you could attach your WSDL to this issue with your configuration? Or you could also send it to me privately dan AT envoisolutions dot com. Thanks

> 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
>
>
> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frédéric Desmoulins updated XFIRE-547:
--------------------------------------

    Attachment: FakeService.java

The service

> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frédéric Desmoulins updated XFIRE-547:
--------------------------------------

    Attachment: FakeService.wsdl

WSDL with ArrayOfString

> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frédéric Desmoulins updated XFIRE-547:
--------------------------------------

    Attachment: spring-xfire.xml

Simplified Spring configuration.

> 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


[jira] Updated: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frédéric Desmoulins updated XFIRE-547:
--------------------------------------

    Attachment: web.xml

web.xml

> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87768 ]

Frédéric Desmoulins commented on XFIRE-547:
-------------------------------------------

Hi Dan,

Thanks for your quick reply!
You'll find 4 attached files generating the ArrayOf* problem.

Regards

> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89375 ]

Tom Lambrechts commented on XFIRE-547:
--------------------------------------

This issue also accoures with array type return parameters.

> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89375 ]

Tom Lambrechts commented on XFIRE-547:
--------------------------------------

This issue also accoures with array type return parameters.

> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89952 ]

Dan Diephouse commented on XFIRE-547:
-------------------------------------

I think I see the issue, Jsr181HandlerMapping does not set up the correct wsdlbuilder for you when you use the JaxbTypeRegistry. I committed changes in SVN so that you can set an appropriate service factory that will do this though:

<bean id="handlerMapping" class="....Jsr181HandlerMapping">
  <property name="serviceFactory"><bean class=".org.codehaus.xfire.jaxb2.JaxbServiceFactory"></property>
...
</bean>

> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89952 ]

Dan Diephouse commented on XFIRE-547:
-------------------------------------

I think I see the issue, Jsr181HandlerMapping does not set up the correct wsdlbuilder for you when you use the JaxbTypeRegistry. I committed changes in SVN so that you can set an appropriate service factory that will do this though:

<bean id="handlerMapping" class="....Jsr181HandlerMapping">
  <property name="serviceFactory"><bean class=".org.codehaus.xfire.jaxb2.JaxbServiceFactory"></property>
...
</bean>

> 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ 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


[jira] Commented: (XFIRE-547) Generated collection structures don't appear on WSDL

by JIRA jira@codehaus.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ http://jira.codehaus.org/browse/XFIRE-547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_89995 ]

Dan Diephouse commented on XFIRE-547:
-------------------------------------

Good catch! Fixing now.

> 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

< Prev | 1 - 2 | Next >