XFire
  1. XFire
  2. XFIRE-246

Provide support for typed OUT parameters (@WebParam Mode.INOUT and Mode.OUT)

    Details

    • Type: Wish Wish
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Provide support for typed OUT parameters.
      Like in javax.xml.rpc.holders.*

      Or I miss something ?

        Activity

        Hide
        Dan Diephouse added a comment -

        Have you tried out CVS head? I just added this a little while ago? I am not sure that INOUT works, but I know Mode.OUT does. I will be adding tests for INOUT soon.

        Show
        Dan Diephouse added a comment - Have you tried out CVS head? I just added this a little while ago? I am not sure that INOUT works, but I know Mode.OUT does. I will be adding tests for INOUT soon.
        Hide
        Dan Diephouse added a comment -

        just realized we don't have any instructions for this.... You have two options:
        1. use the org.codehaus.xfire.aegis.Holder class and specify a componentType for it in your mapping xml file (just like you would for a collection)
        2. Compile the JAX-WS module in xfire-sandbox and use the JAX-WS holder class.

        Show
        Dan Diephouse added a comment - just realized we don't have any instructions for this.... You have two options: 1. use the org.codehaus.xfire.aegis.Holder class and specify a componentType for it in your mapping xml file (just like you would for a collection) 2. Compile the JAX-WS module in xfire-sandbox and use the JAX-WS holder class.
        Hide
        Jara Cesnek added a comment -

        Great!

        I use annotations so first is not suitable.
        What about Holder<E> (java5) instead of
        many Holders ?

        Show
        Jara Cesnek added a comment - Great! I use annotations so first is not suitable. What about Holder<E> (java5) instead of many Holders ?
        Hide
        Jara Cesnek added a comment -

        Using org.codehaus.xfire.aegis.Holder without specify a componentType
        doesnt work and is interpreted as commom parametr object.

        Show
        Jara Cesnek added a comment - Using org.codehaus.xfire.aegis.Holder without specify a componentType doesnt work and is interpreted as commom parametr object.
        Hide
        Dan Diephouse added a comment -

        Regarding Holder<E> - there is the JAX-WS holder class which you can use. If you compile the jax-ws jar, etc... We're working on putting together an early access release of that stuff.

        Re your last comment - You need to specify the parameter as OUT or INOUT via annotatiosn for it to work.

        Show
        Dan Diephouse added a comment - Regarding Holder<E> - there is the JAX-WS holder class which you can use. If you compile the jax-ws jar, etc... We're working on putting together an early access release of that stuff. Re your last comment - You need to specify the parameter as OUT or INOUT via annotatiosn for it to work.
        Hide
        Jara Cesnek added a comment -

        Can you drop here comment after release working code for annotated OUT parameters with little example?

        Now
        java.lang.UnsupportedOperationException: To use holder types you must have an XML descriptor declaring the component type.
        on
        @WebMethod
        public void inoutTest(@WebParam(name="outTst",mode=Mode.INOUT) Holder outParam ) ;

        Something like this will be great (completely without additional XML config) :
        @WebMethod
        public void inoutTest(@WebParam(name="outTst",mode=Mode.INOUT) Holder<String> outParam ) ;

        Thanks!

        Show
        Jara Cesnek added a comment - Can you drop here comment after release working code for annotated OUT parameters with little example? Now java.lang.UnsupportedOperationException: To use holder types you must have an XML descriptor declaring the component type. on @WebMethod public void inoutTest(@WebParam(name="outTst",mode=Mode.INOUT) Holder outParam ) ; Something like this will be great (completely without additional XML config) : @WebMethod public void inoutTest(@WebParam(name="outTst",mode=Mode.INOUT) Holder<String> outParam ) ; Thanks!

          People

          • Assignee:
            Dan Diephouse
            Reporter:
            Jara Cesnek
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: