Comments (13)
Can you give an example?
from wsdl2go.
I'm sorry for how long this took me.
If you replace nick-name with nickname, in the included file, the problem will work.
I messed around wtih wsdlgo/encoder.go so struct names wouldn't include the '-' character, which allowed your code to run.
from wsdl2go.
Alright, so this is mainly about removing -
from function names and variables but keeping them in the XML tags? PR?
from wsdl2go.
correct, attached export.go that worked with example file,
encoder.txt
created cleanString function (currently removes '-' and ' ')
Not sure how complete it is, but it was able to convert the previously attached file thanks!
from wsdl2go.
Yeah we need to fix this. @flavioayra just reported the same problem, finding "-" and "." in type/op names.
from wsdl2go.
Should be good now.
from wsdl2go.
@fiorix i am still seeing this issue with "." in the name, was this added to fix "." or just "-"
here is an example file. it is from the F5 Networks WSDL. unfortunately they use "." all over the place.
for refrence here is the error
generated bad code: 1182:16: expected type, found '.' (and 1 more errors)
1180
1181 // management.ResourceRecordPortType implements the ManagementResourceRecordPortType interface.
1182 type management.ResourceRecordPortType struct {
1183 cli *soap.Client
1184 }
1185
from wsdl2go.
I think I missed the "." in the regex that makes it a valid Go symbol:
Line 1243 in 8877781
from wsdl2go.
@fiorix in this case the "." is actually invalid in the type name, i think that problem is that it is not using the validGoSymbol
function when creating types
from wsdl2go.
PR?
from wsdl2go.
@fiorix I'm also seeing this as well.
For example:
$ wsdl2go < ParseAddress.wsdsl > ParseAddr.go
2022/10/03 12:04:06 generated bad code: 3:13: expected ';', found '-'
1 // Code generated by wsdl2go. DO NOT EDIT.
2
3 package plsp-public
...
This WSDL comes from: https://information.qld.gov.au/service/Addressing/ValidationService/PLSplusPublic/soap?wsdl
from wsdl2go.
#47 fixes a bunch of bugs I found with generating type names, method names and so on. This resolves my problem as well as the one found in this issue. I'm not happy with the code, but it generated valid Go code finally 😅
from wsdl2go.
FWW I achieved much better results by using the wsdlgen
cli utility found in this package:
from wsdl2go.
Related Issues (20)
- Client decoder HOT 2
- Character encoding issues HOT 3
- wsdl:part messages should use XML name from the referenced element HOT 1
- x509: certificate signed by unknown authority HOT 1
- Don't work <xsd:simpleType> in <xsd:element>
- Missing namespace directive HOT 2
- No return upon execution HOT 4
- auth header problem HOT 2
- What should be the server url?
- Command payload wants a `xmlns` attribute. HOT 2
- Add "DO NOT EDIT" comment to generated file
- Stack overflow when processing WSDL
- Crash if operations in wsdl don't have an output policy HOT 3
- Soapaction header in client is missing quotes around value
- Crash in genGoOpStruct due to invalid function name HOT 4
- Releases 1.4.5 and onward HOT 1
- wsdl2go not working HOT 1
- too many open files
- External namespaces insight body.
- WS-Security
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 wsdl2go.