-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolve tags without "xs" and "xsd" namespaces. #8
Comments
Hello, You are very welcome, it is nice to know that this project seems to be helping people other than me :) Your suggestion seems pretty straightforward and at first glance it doesn't bring any problems so I should be able to perform a new release this weekend. Thanks for the issue and input. Best Regards, |
I was messing with the I haven't tested it yet, but I think that it would solve my second point, It is possible to create a InputStream from a String |
Hello, I've performed a new release, 1.0.17, which allows to pass new configurations in the XsdParser constructor. This should fix your points 1 and 3. In regards to the InputStream, I can't recall precisely but I think I ended up not using it because I was getting some kind of problem by using it. Regarding your second point, can you explain it further? |
Thank you for the speedy release. My second point is the following: When parsing a WSDL, I need to strip all the "types" tag content to a different file, that's because XsdParser only accepts a filePath, which works but is kinda undesirable. The "ideal" way for me would it be able to accept a Maybe an API that accepts a Edit: Also, I tested the new release just now, it works perfectly. Thank you very much |
@LouizFC I noticed that you are not a XsdParser stargazer yet. Could you please give a star to increase popularity. Thanks |
Greetings.
I have a project where I need to consume a lot of WSDL files and invoke some operations dynamically (without generating classes for it)
After I found this project, I don't need to resolve types myself anymore, so I thank you from the bottom of my heart.
The only things that I need to workaround are:
<schema>
inside the WSDL comes as "simple tags", that is, instead ofxsd:complexType
I have onlycomplexType
. I solved this by pre-processing the xml and putting the correct tags.XSDParser
only accepts a filePath string.I wanted to know: is there are any plans to address something similar to my problem?
I took a look at the source code, and I came with some conclusions that could help me:
In
XSDParserCore
, move bothparseMappers
andxsdTypesToJava
to aDefaults
(or a better name) class, and allow users to pass their customparseMappers
andxsdTypesToJava
toXSD Parser
, if none is passed (or nulls), the default ones are used.That would solve problem 1 and 3, but I don't know the full implications of this decision.
The text was updated successfully, but these errors were encountered: