groovyws

Axis2 with complexTypes in Groovy

萝らか妹 提交于 2019-12-25 03:25:07
问题 So I'm having a couple of ANT scripts using Groovy to process complex calculations normal ANT can't do (at least afaik). I'm trying to access an Axis2 web service using a SOAP-envelope via Groovy. The request and response is pretty simple, except for two complexType attributes (one in the request, one in the response). The first thing I've stumbled across was Groovy Soap . It is quite easy to use, you simply instantiate a SoapClient and call the web service method. Unfortunately it cannot

Grails - No class def found error when calling web service

断了今生、忘了曾经 提交于 2019-12-24 04:45:12
问题 Updated to reflect new error message after changes Howdy, I am trying to call a web service from Grails, but keep running in to errors. Here's what my class looks like: import groovyx.net.ws.WSClient ... def serviceUrl = "http://www.w3schools.com/webservices/tempconvert.asmx?WSDL" def proxy = new WSClient(serviceUrl.toString(), this.class.classLoader) serviceResult = proxy.FahrenheitToCelsius("80") println serviceResult ... I am encountering a grails runtime exception: Error 500: Executing

With CXF (actually GroovyWS), how do I generate a SOAP header with one child node having a text node?

故事扮演 提交于 2019-12-23 20:21:25
问题 I'm creating a Groovy client for a .net SOAP service that requires a soap header that looks like this: <soap:Header> <HeaderInfo xmlns="http://foo.bar.com/ns"> <token>abc-unique-token</token> </HeaderInfo> </soap:Header> I found the faq for adding headers to CXF messages and it gets me almost there, but not quite. The example they give for option 4 looks like this: List<Header> headers = new ArrayList<Header>() Header header = new Header(new QName("http://foo.bar.com/ns", "HeaderInfo"), "abc

Is there a groovyws.jar with all his dependences?

帅比萌擦擦* 提交于 2019-12-12 17:32:26
问题 I'm using Grails and want to use groovyws to call an web-service. But my groovyws.jar (0.5.2) have MANY dependences that I can't solve. Is there any jar with all dependences included? Note: I tried put in BuildConfig.groovy , this dependencies { 'org.codehaus.groovy.modules:groovyws:0.5.2' } but I'm getting error: Error executing script Compile: loader constraint violation: when resolving overridden method "org.apache.xerces.jaxp.SAXParserImpl.getParser()Lorg/xml/sax/Parser;" the class loader

GroovyWS and complex requests

这一生的挚爱 提交于 2019-11-30 13:23:06
问题 I've faced with a problem of sending complex requests with GroovyWS. This is sample request generated by soapUI: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dex="http://www.temp.com/com/dex" > <soapenv:Header/> <soapenv:Body> <dex:executeRequest> <!--Optional:--> <a>?</a> <!--Optional:--> <b>?</b> <!--Optional:--> <parameters> <!--Zero or more repetitions:--> <parameter> <!--Optional:--> <key>?</key> <!--Optional:--> <value>?</value> </parameter> <

GroovyWS and complex requests

吃可爱长大的小学妹 提交于 2019-11-30 07:15:14
I've faced with a problem of sending complex requests with GroovyWS. This is sample request generated by soapUI: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dex="http://www.temp.com/com/dex" > <soapenv:Header/> <soapenv:Body> <dex:executeRequest> <!--Optional:--> <a>?</a> <!--Optional:--> <b>?</b> <!--Optional:--> <parameters> <!--Zero or more repetitions:--> <parameter> <!--Optional:--> <key>?</key> <!--Optional:--> <value>?</value> </parameter> </parameters> <!--Optional:--> <c>?</c> <!--Optional:--> <d>?</d> </dex:feedrequest> </soapenv:Body> </soapenv