Hi,

I am trying to use GroovySOAP to use webservices with complex types :

import groovy.net.soap.SoapClient
def proxy = new SoapClient("
http://localhost:6981/BookServiceImplInterface?wsdl";)
Book book = new Book(title:"Groovy in Action", author:"Dierk", isbn:"123")
proxy.addBook( book )

Book.groovy :
class Book {
 String author
 String title
 String isbn
}

groovySOAP registers the types with a xfire TypeMapping : the registered
class is here book.getClass().
it works fine with already compiled classes (if Book.class is in my
classpath) but with only Book.groovy I get :

org.codehaus.xfire.fault.XFireFault: Couldn't get property {
http://ast.groovy.codehaus.org}typeClass<http://ast.groovy.codehaus.org%7dtypeclass/>from
bean
[EMAIL PROTECTED]: Book].

what is this ClassNode and why is the result different when I use
Book.groovy instead of Book.class ??? (why does Xfire try to register a
ClassNode instead ok a Book ?)

Cheers,

Reply via email to