I get the exception "groovy.lang.MissingPropertyException: No such property: style for class: com.predic8.wsdl.http.HTTPBinding" when trying to generate SOAP message requests against the WSDL document found here: "
http://www.webservicex.net/stockquote.asmx?WSDL", with a Groovy script using GRAPE (so you can run it with the groovy command).
@Grab(group='com.predic8', module='soa-model-core', version='1.4.1', transitive=false)
@Grab(group='org.apache.httpcomponents', module='httpclient', version='4.2.2')
import com.predic8.wsdl.*
import com.predic8.wstool.creator.*
import groovy.xml.MarkupBuilder
// Use a ExternalResolver instance if you are behind a proxy
//def er = new com.predic8.xml.util.ExternalResolver(proxyHost: '
proxy.company.net', proxyPort: 8080)
def parser = new WSDLParser(/*resourceResolver: er*/)
def writer = new StringWriter()
def creator = new SOARequestCreator(wsdl, new RequestTemplateCreator(), new MarkupBuilder(writer))
wsdl.services.each { service ->
service.ports.each { port ->
def binding = port.binding
def portType = binding.portType
portType.operations.each { op ->
System.out.println(writer)
writer.buffer.length = 0
}
}
}
I'm running this script with Groovy 2.1.1.
The problem seems related to the style attribute found in the WSDL.
Bertrand.
PS: I'm preparing an article about groovy-wslite and Membrane SOA Model.