Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15

Thread: Using xmlBeans

  1. #11

    Default Finally - I got there!

    I have finnaly solved the problem with a little help from a colleague. The problem was the adapter class I specified in the spring-ws config:

    Code:
    	<bean id="xmlbeansMarshaller"
    		class="org.springframework.oxm.xmlbeans.XmlBeansMarshaller" />
    	<bean		class="org.springframework.ws.server.endpoint.adapter.MarshallingMethodEndpointAdapter">
    		<property name="marshaller" ref="xmlbeansMarshaller" />
    		<property name="unmarshaller" ref="xmlbeansMarshaller" />
    	</bean>
    the second bean declaration I had should not be there: once I took this out it worked fine

    I can't remember where I took the example from, but hopefully if anyone else does the same they will end up on this thread and get the answer quickly....

    Good luck
    ~ mARK aNDREWS ~

  2. #12
    Join Date
    Mar 2009
    Posts
    6

    Default XMLBeans example

    hi All,
    I m working with Spring Web Services using XML beans , Active MQ configuration where can I find the better example of both , I would prefer the full example .
    I hope some one helps me ...

    Regards,
    pranay

  3. #13

    Smile Spring webservices...

    I use Psring webservices quite frequently, but have never used Active MQ. I may be able to help you out with an example for the Spring WS with xmlBeans...
    ~ mARK aNDREWS ~

  4. #14
    Join Date
    Mar 2009
    Posts
    6

    Default

    Hello ma_crice ,
    Thanks a lot It will be very nice of you if you give me an complete example of WS using xmlbeans,
    presently I m getting this error

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'partyService' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.apache.xerces.parsers.XML11Configuration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguratio n.

    I m attaching the config file
    extention change to .txt

    The attached config file has some commented code but it doesnt make any difference ,
    I have reverted my code to some back settings but still it did not work , I gess some settings with tomcat ?
    Attached Files Attached Files
    Last edited by pranayjoshi; May 14th, 2009 at 12:33 PM.

  5. #15

    Default

    please can any one send me sample example on spring web services using xml beans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •