Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: GroovyWS
-
Labels:None
-
Environment:Windows XP; Java 1.6.0_03. GroovyWS 0.2
-
Testcase included:yes
-
Number of attachments :
Description
Unable to bind proxy to RPC/literal or RPC/encoded web services.
Sample WSCLient code shows failed binding.
import groovyx.net.ws.WSClient;
def proxy = new WSClient("http://api.google.com/GoogleSearch.wsdl", this.class.classLoader)
/*
java.lang.RuntimeException: Error compiling schema from WSDL at
:
undefined simple or complex type 'soapenc:Array'
at org.apache.cxf.endpoint.dynamic.DynamicClientFactory$InnerErrorListener.error(DynamicClientFactory.java:418)
at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.error(SchemaCompilerImpl.java:264)
*/
def key = "<Insert Google API key>"
def word = Massachussets
def data = ["key": key, "phrase": word ]
def result = proxy.doSpellingSuggestion(data)
// def result = proxy.doSpellingSuggestion(key, word)
println "Word $
=> : $
{result}"
Likewise against similar public RPC services:
http://ws.soatrader.com/easycfm.com/1.0/Captcha?WSDL
http://www.foreclosuredatabank.com/soapserver.php?wsdl
I'm having the same issue on the following:
http://api.productserve.com/v1/ProductServeService?wsdl
Have you been able to find a work around at all?