spring-guides / gs-consuming-web-service

Consuming a SOAP web service :: Learn how to create a client that consumes a WSDL-based service
http://spring.io/guides/gs/consuming-web-service
Apache License 2.0
136 stars 164 forks source link

Binding files, conflicts #19

Closed AMetnik closed 7 years ago

AMetnik commented 7 years ago

Hey, is it possible to get an updated guide that also includes if property and element has the same name in a complextype ?

Basicly how to use binding files in this current setup.

gregturn commented 7 years ago

Can you elaborate?

AMetnik commented 7 years ago

Yes thanks for replying

I'm using your guide, and it seems very nice, and all worked nicely with your SOAP. But my target is a much more "advanced" SOAP, and amongst others they have this complextype: (you can obtain their wsdl here: )

</s:sequence> </s:extension> </s:complexContent> </s:complexType>

Which has both a an s:attribute and s:element by the name Udenlandsk, which is perfectly ok in xml, but Jaxb will translate these into the same named property, unless we somehow use a binding file as well, I just can't figure out how.

So I looked around, and seems this way to do things is "deprecated" and there is now a new way to do it, https://github.com/jacobono/gradle-jaxb-plugin though i cannot get that to work neither :-(

Would you like more information?

dsyer commented 7 years ago

It's not really a problem with the guide, or even with Spring, then is it? You should look to StackOverflow for general JAXB usage questions.

AMetnik commented 7 years ago

@dsyer That you are completely correct in, that it is not really a "problem" with the guide.

Merely a suggestion for improvement, apologizes if it was not clear for the get go.

Though believe me, I've looked a stackoverflow. But I'm reading and reading, but thanks anyways. -eod