开发者

Is it required to generate java classes to use spring-ws client

I want to use spring ws to create the webservice client. I have seen some documentation. In all using jaxb marshalling and unmarshalling. But to start of need to create java classes from xsd. I tried to download the elcipse plugin for this. The location in java.net is not showing any thing to download. Sourceforce net showing the link to download. But that plugin is not working. I have tried wsimpor开发者_开发技巧t, but it is generating only .classes?

My question is if i want to use spring ws, is it required to generate .java classes? If so where can i find the elipse plugin or how to generate the classes? Is there any other way we can do without generating these classes?

If you use jboss, use wsconsume.bat to generate these classes


Spring-WS lets you work with several different representations of the message payloads, JAXB is just one of them. You can also use (for example) raw DOM objects if you choose, or a few other options.

If you already have a WSDL, then wsimport should so the job nicely, it generates .class files for your schema. You don't need the .java files also, strictly speaking, you can develop just fine without them, and Spring-WS has no use for them. It is easier if you have them, though, and wsimport has -keepgenerated flag (or something like that) that stops it deleting the .java files once it's finished.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜