Giter Club home page Giter Club logo

Comments (6)

ajaysolleti avatar ajaysolleti commented on August 20, 2024

shouldn't mywsdlfile be mywsdlfile.wsdl? Try saving the file again and then rename to xyz.wsdl

from wsc.

thanneru avatar thanneru commented on August 20, 2024

Yes, that's a .wsdl file. I just didn't put the full name of the file here in the issue. The issue is still there.

On Sep 28, 2014, at 7:30 AM, Ajay Solleti [email protected] wrote:

shouldn't mywsdlfile be mywsdlfile.wsdl? Try saving the file again and then rename to xyz.wsdl


Reply to this email directly or view it on GitHub.

from wsc.

ajaysolleti avatar ajaysolleti commented on August 20, 2024

I just use it like this and it works as expected
$JAVA_HOME/bin/java -classpath target/force-wsc-32.1.1-uber.jar com.sforce.ws.tools.wsdlc enterprise.wsdl enterprise.jar

Are you trying to compile a custom apex wsdl? If so, you might need to check that. Try to analyze the stacktrace more and look for the entry which links to the actual wsdl file for issues.

from wsc.

thanneru avatar thanneru commented on August 20, 2024

Ok I found the root cause for the issue. If I don't give the parameter, then it's working fine like you mentioned.

But If I give the last parameter as mentioned with wsdlc usage:
com.sforce.ws.tools.wsdlc wsdl-file jar-file dest-dir

then I am getting the StringIndexOutOfBoundsException from the Generator.java as you can see in my initial stack trace:
com.sforce.ws.codegen.Generator.generateJarFile(Generator.java:235)

So, is the parameter no longer supported? If so, may be we can change the usage to print accordingly. Let me know if you want me to issue a pull request for the same.

Thanks for looking in to this issue.

from wsc.

ajaysolleti avatar ajaysolleti commented on August 20, 2024

No, the usage is correct. It might be an issue with the actual value of your parameters. Could you share the exact values you are using?

from wsc.

thanneru avatar thanneru commented on August 20, 2024

Here it is:

java -classpath build\force-wsc-32.1.1-uber.jar com.sforce.ws.tools.wsdlc SFEnterpriseWSDL.wsdl sf-ws-client.jar lib
Picked up _JAVA_OPTIONS: -Djava.net.preferIPv4Stack=true
[WSC][wsdlc.main:71]Generating Java files from schema ...
[WSC][wsdlc.main:71]Generated 548 java files.
[WSC][wsdlc.main:71]Compiling to target 1.6...
warning: [options] bootstrap class path not set in conjunction with -source 1.6
1 warning
[WSC][wsdlc.main:71]Compiled 551 java files.
[WSC][wsdlc.main:71]Generating jar file ... sf-ws-client.jar
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String ind
ex out of range: -9
at java.lang.String.substring(String.java:1875)
at com.sforce.ws.codegen.Generator.generateJarFile(Generator.java:235)
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:118)
at com.sforce.ws.tools.wsdlc.run(wsdlc.java:149)
at com.sforce.ws.tools.wsdlc.main(wsdlc.java:71)

from wsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.