Thanks Tim,

I using Spring and found that I could configure this
directly on the XFireExporter:

<bean name="/MyService"
         class="org.codehaus.xfire.spring.remoting.XFireExporter">
 <property ...
  ...
  <property name="style" value="rpc"/>
  <property name="use" value="literal"/>
</bean>

Since I am not using JSR181, I don't know where I would use the
"parameterStyle" you have mentioned.  I am guessing that this is
the same as the style="rpc"?

Anyway, it is working now.  :)


Regards,

Rob.


On 3/29/07, Tim Morrow 2 <[EMAIL PROTECTED]> wrote:


I'm sure you already came to this conclusion, but I'd suggest:

* Switch to Wrapped parameters (i.e. turn off Bare).  If using JSR181
annotations this would be via @SOAPBinding(parameterStyle=...).  Actually,
wrapped should be the default.

* Rather than using simple Long parameter types, you might create your own
classes for holding the Long value (e.g. ProductId, ManufacturerId).  But
that seems like you'd be doing the work of wrapped parameterStyle.

* Define multiple services with a single method on each.

Tim


Rob Dare wrote:
>
> I have exposed some Web Services using Spring and XFire and
> everything seems to be peachy.  I can see the WSDL, I can even
> consume the Web Services from a simple Flex2 application.
>
> I am having problems calling methods in my Services beans that have
> the same parameter signature as other methods.  For example:  I am
> exposing a ProductService, and it has the the methods getProduct(Long id)
> and getManufacturer(Long id) Manufacturer.  When calling these from my
> client, the XFire processor is not able to differentiate between the two.
>
> The same goes for methods without parameters.
>
> My problem is probably best highlighted by Alexander Ananiev's blog
> entry about differences in Web Service styles:
> 
http://myarch.com/wrappernon-wrapper-web-service-styles-things-you-need-to-know
>
> Can anyone shed some light into how to handle this?
>
> Thanks,
>
> Rob
>
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

--
View this message in context: 
http://www.nabble.com/Wrapper---Non-wrapper-style-tf3481942.html#a9744371
Sent from the XFire - User mailing list archive at Nabble.com.


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