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

Duncan Jauncey commented on XFIRE-1087:
---------------------------------------

+1: I've spent nearly a day trying to get this to work & still no luck.   I 
feel I'm missing something straightforward, where a little extra information 
would save everyone hours of trouble.   

Constructive criticism of the documentation: 

* Section 1 - presumably refers to the service that will be passing and/or 
returning your custom type?  Not completely transparent to a new user.
* Section 2 - writeObject - could do with an example here.  Should it be 
writing "<mytype>", then some xml representation, then "</mytype>", or is that 
handled for us?
* Section 2 - readObject - where does the read() method come from?   Do you 
need an XMLStreamReader when MessageReader appears to suffice?
* Section 2 - writeSchema - is this method optional?   What could it look like 
for a simple object wrapping a Long?
* Section 3 - where and when should this code be executed?  In the client, 
before calling a service, or is there some XFire initialization method into 
which it should hook?   Should it be executed in the service, or does the 
subsequent entry in services.xml do that for us?
* Configuration via services.xml - presumably this is mandatory?  When I try 
this, I get "Allocate exception for servlet XFireServlet
org.springframework.beans.factory.BeanDefinitionStoreException: Error 
registering bean with name 'TypeRegistrar' defined in class path resource" - 
with the same code as the example.   I'm suspecting that my XYZType class needs 
to be available to the client as well as the service, if so could the 
documentation make this clear?

I appreciate that CXF is the new way forward, but there are still a lot of us 
out there that have to use XFire for the foreseeable future and just a few 
pointers might save us all a heap of trouble.  Thanks!

> How To Register a Custom Type (A Full Example)
> ----------------------------------------------
>
>                 Key: XFIRE-1087
>                 URL: http://jira.codehaus.org/browse/XFIRE-1087
>             Project: XFire
>          Issue Type: Bug
>            Reporter: George Titan
>            Assignee: Dan Diephouse
>
> Hi
> I was wondering if someone out there has a working version of a custom type.
> The documentation is very very poor at best !!!!!!!
> Has anyone tried to use a custom type before?

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


Reply via email to