Hi Tog,
What XFire version are you using? I'm guessing that there might be a
problem with imports (which I fixed in beta-1). The other thing is that
it might be using rpc-encoding, but I can't say as I haven't used it.
If beta-1 doesn't work can you create a JIRA issue and attach the WSDL?
Thanks,
- Dan
tog wrote:
Hi Dan,
I tried My GroovySOAP client with the WSDL provided by SalesForce.
Here is the following stack trace I get ...in case you have an idea of
what's is going on. I am using version 1.1 beta and the dynamic client.
cheers
tog
$ groovy salesforce.groovy
log4j:WARN No appenders could be found for logger
(org.codehaus.xfire.transport.DefaultTransportManager).
log4j:WARN Please initialize the log4j system properly.
org.codehaus.xfire.XFireRuntimeException: Couldn't find schema for
part: {urn:enterprise.soap.sforce.com
<http://enterprise.soap.sforce.com>}login
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped
(WSDLServiceBuilder.java:463)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.visit(WSDLServiceBuilder.java:326)
at
org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.build(WSDLServiceBuilder.java
:166)
at
org.codehaus.xfire.client.Client.initFromDefinition(Client.java:254)
at org.codehaus.xfire.client.Client.<init>(Client.java:226)
at org.codehaus.xfire.client.Client.<init>( Client.java:236)
at
org.codehaus.groovy.gsoap.SoapClient.<init>(SoapClient.java:256)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java
:494)
at
org.codehaus.groovy.runtime.MetaClassHelper.doConstructorInvoke(MetaClassHelper.java:506)
at
groovy.lang.MetaClassImpl.doConstructorInvokeAt(MetaClassImpl.java:1382)
at groovy.lang.MetaClassImpl.invokeConstructorAt
(MetaClassImpl.java:567)
at
org.codehaus.groovy.runtime.Invoker.invokeConstructorAt(Invoker.java:189)
at
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorAt(InvokerHelper.java:127)
at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeConstructorAt(ScriptBytecodeAdapter.java:123)
at salesforce.run(salesforce.groovy:8)
--
Dan Diephouse
(616) 971-2053
Envoi Solutions LLC
http://netzooid.com