
Learning Web Service 2
September 6, 2008I found a nice blog http://www.myarch.com/create-jax-ws-service-in-5-minutes. As I educated myself with this article:
http://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/, I came up a question against wsdl used in the myarch blog or more like against the article. Myarch blog uses literal style, and I think it is natural; however, the article tells that literal wrapped is better in terms of interoperatability in vendors: especially, Java side and Microsoft side. However, as JAXB is used, literal wrapped way does not make sense in terms of generated class naming. If we use literal wrapped style, generated class via JAXB will be based on the method name. In the case of myarch, if we use literal wrapped style, instead of Person, it will be Add, which does not make sense. Also, literal wrapped style has a problem, which introduces a certain naming convention in wsdl file. I wonder this article has a flaw in the analysis of literal style; especially, it says about literal as follows. “The operation name in the SOAP message is lost. Without the name, dispatching can be difficult and sometimes impossible”. Why then does literal style exist?
いいブログを見つけるhttp://www.myarch.com/create-jax-ws-service-in-5-minutes 。自分の勉強で、この記事をhttp://www.ibm.com/developerworks/webservices/library/ws-whichwsdl/, 勉強する。で、ある問題が持ち上がる。それは、ブログからか、記事か?Myarchは、LiteralのStyleをWSDLで使っている。それは自然だと思う。しかしその記事では、Literal Wrappedのほうがいいという。特にベンダー間のJavaとマイクロソフトのWeb Serviceにおいて。しかし、JAXBを使うと、Literal Wrappedはうまくいかない。というのも、JAXBのJavaクラスが、おかしな名前がつけれらるからだ。Myach の例でいくと、Personではなくて、Addになってしまう。それに、Literal Wrapped Styleは、名前の付け方でWSDLがきめられるのは、きわめて問題だ。この記事の解析に問題があるのかな?とくに、それは、Literal Styleについてこういっている。“サービスオペーレーションの名前が、SOAPのメッセージの中に存在しない。名前なしでは、そのWeb Serviceを実行するのが難しいか不可能だ”と。そうだとしたら、どうして、Literal Style が存在するのかと?