Comments (6)
shouldn't mywsdlfile be mywsdlfile.wsdl? Try saving the file again and then rename to xyz.wsdl
from wsc.
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.
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.
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.
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.
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)
- com.sforce.ws.ConnectionException: Unexpected element. Parser was expecting element 'urn:partner.soap.sforce.com:currencySymbol' but found 'urn:partner.soap.sforce.com:chatterExternal' HOT 3
- Problem with apache-maven-3.8.1 HOT 1
- Support OAUTH 2.0 JWT Bearer auth flow for server to server integrations
- Provide a way to get original(raw) response for non-SOAP/HTML content in response HOT 2
- Getting error "Encountered HTML Content when looking for http://schemas.xmlsoap.org/soap/envelope/:Envelope"
- ConnectionException does not show exception message when calling getMessage() HOT 1
- Can't build jar API 54 HOT 1
- commons-logging:1.2 log4j 1.2.17 vulnerability
- Unexpected element. Parser was expecting element 'http://schemas.xmlsoap.org/soap/envelope/:Fault' but found 'urn:partner.soap.sforce.com:describeSObjectResponse' HOT 2
- Upgrade from older versions (v37)
- Unable to initialize main class HOT 1
- Help with import after building the .jar HOT 1
- Add field enum to aid in querying
- Getting NoSuchMethodError on new EnterpriseConnection HOT 1
- Why is the Force Tooling API not maintained in MvnRepository? HOT 1
- Unable to complete the pull-request CLA signing process HOT 1
- Update WSDLC Documentation
- Issues with geolocation fields and picklist value sets HOT 1
- getBirthDate() returns java.util.GregorianCalendar with wrong timezome HOT 3
- Error calling Salesforce endpoint from external system using soap api, UnexpectedErrorFault
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsc.