I just did "new Client(new File("enterprise.wsdl).toURL())".

Its got to be some classpath issue in my estimation where you're either using xfire-1.1beta or xmlschema 1.0. Maybe try xmlschema 1.0.2?

http://www.apache.org/dist/maven-repository/org/apache/ws/commons/XmlSchema/1.0.2/XmlSchema-1.0.2.jar

- Dan

tog wrote:
Hi Dan,
Sure I did as you mentioned. Any way I will redo the test as soon as I get rid of my corporate proxy and will tell you. Would you mind to share the code of your test so that I can compare to my groovy
code ?

cheers
tog

On 5/3/06, *Dan Diephouse* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi Guillaume,
    I just tried the wsdl again and it works fine for me. Did you update
    your XmlSchema dependency to 1.0.1?
    - Dan

    tog wrote:
    > Dan,
    > it looks like I still have a problem withs saleforces wsdl. I am
    using
    > only 1.1-RC1 but I don't think it matters to much since it
    > includes the changes you made for my latest post.
    > Here is the trace. Any idea ?
    > Thanks
    > 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>
    > <http://enterprise.soap.sforce.com>}login
    >         at
    > org.codehaus.xfire.wsdl11.parser.WSDLServiceBuilder.isWrapped
    > (WSDLServiceBuilder.java:465)
    >         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 groovy.net.soap.SoapClient.<init>(Unknown Source)
    >         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:1378)
    >         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)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    >         at
    >
    
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >         at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke (Method.java:585)
    >         at
    >
    
org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke(ReflectionMetaMethod.java:67)
    >         at
    >
    
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:657)
    >         at
    groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:350)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod (Invoker.java:156)
    >         at
    >
    org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java
    > :104)
    >         at
    >
    org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java
    :516)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke
    > (NativeMethodAccessorImpl.java:39)
    >         at
    > sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke
    > (ReflectionMetaMethod.java:67)
    >         at
    >
    
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:657)
    >         at
    > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:490)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:136)
    >         at
    >
    
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
    >         at
    > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod
    > (ScriptBytecodeAdapter.java:85)
    >         at salesforce.main(salesforce.groovy)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    >         at
    > sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.java
    > :39)
    >         at
    >
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke
    > (ReflectionMetaMethod.java:67)
    >         at
    >
    
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java
    :657)
    >         at
    > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:490)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:136)
    >         at
    >
    
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
    >         at groovy.lang.GroovyShell.runMainOrTestOrRunnable
    > (GroovyShell.java:354)
    >         at groovy.lang.GroovyShell.run (GroovyShell.java:279)
    >         at groovy.lang.GroovyShell.run(GroovyShell.java:208)
    >         at groovy.ui.GroovyMain.processOnce(GroovyMain.java:450)
    >         at groovy.ui.GroovyMain.run(GroovyMain.java :276)
    >         at groovy.ui.GroovyMain.process(GroovyMain.java:262)
    >         at groovy.ui.GroovyMain.main(GroovyMain.java:138)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
    Method)
    >         at
    >
    
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    >         at
    >
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at
    >
    org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:131)
    >         at
    > org.codehaus.groovy.tools.GroovyStarter.main
    (GroovyStarter.java:160)
    > java.lang.NullPointerException
    >         at groovy.net.soap.SoapClient.invokeMethod(Unknown Source)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java :161)
    >         at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod
    > (InvokerHelper.java:104)
    >         at
    >
    
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod(ScriptBytecodeAdapter.java
    :85)
    >         at salesforce.run(salesforce.groovy:9)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
    Method)
    >         at
    >
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
    :39)
    >         at
    >
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at
    > org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke
    (ReflectionMetaMethod.java:67)
    >         at
    org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke
    > (MetaClassHelper.java:657)
    >         at
    groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:350)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:156)
    >         at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod
    > (InvokerHelper.java:104)
    >         at
    >
    org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:516)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke
    > (NativeMethodAccessorImpl.java:39)
    >         at
    >
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke
    > (ReflectionMetaMethod.java:67)
    >         at
    >
    
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java
    :657)
    >         at
    > groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java:490)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:136)
    >         at
    >
    
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)
    >         at
    > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethod
    > (ScriptBytecodeAdapter.java:85)
    >         at salesforce.main(salesforce.groovy)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
    Method)
    >         at
    >
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
    > :39)
    >         at
    >
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at org.codehaus.groovy.runtime.ReflectionMetaMethod.invoke
    > (ReflectionMetaMethod.java:67)
    >         at
    >
    
org.codehaus.groovy.runtime.MetaClassHelper.doMethodInvoke(MetaClassHelper.java:657)
    >         at
    > groovy.lang.MetaClassImpl.invokeStaticMethod
    (MetaClassImpl.java:490)
    >         at
    > org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:136)
    >         at
    >
    
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:104)

    >         at groovy.lang.GroovyShell.runMainOrTestOrRunnable
    > (GroovyShell.java:354)
    >         at groovy.lang.GroovyShell.run(GroovyShell.java:279)
    >         at groovy.lang.GroovyShell.run(GroovyShell.java :208)
    >         at groovy.ui.GroovyMain.processOnce(GroovyMain.java:450)
    >         at groovy.ui.GroovyMain.run(GroovyMain.java:276)
    >         at groovy.ui.GroovyMain.process(GroovyMain.java:262)
    >         at groovy.ui.GroovyMain.main(GroovyMain.java:138)
    >         at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native
    Method)
    >         at
    >
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
    :39)
    >         at
    >
    
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    >         at java.lang.reflect.Method.invoke(Method.java:585)
    >         at
    > org.codehaus.groovy.tools.GroovyStarter.rootLoader
    (GroovyStarter.java:131)
    >         at
    > org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:160)


    --
    Dan Diephouse
    Envoi Solutions
    http://envoisolutions.com <http://envoisolutions.com>
    http://netzooid.com/blog




--
Dan Diephouse
Envoi Solutions
http://envoisolutions.com
http://netzooid.com/blog

Reply via email to