Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Reg Unwrapped Style in Martin Kalin's Book

 
Ranch Hand
Posts: 186
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Friends,

In Page 56 of Martin Kalin's Java Web Services Up & Running, the following point is given:

Here are some downsides of the document style:

• In the unwrapped variant, the SOAP message does not carry the name of the service operation, which can complicate the dispatching of messages to the appropriate program code.

The request XML generated for both wrapped and unwrapped variants are same. I'm not able to understand that why unwrapped style does not carry the name of the service operation. The port types are generated differently for wrapped & unwrapped styles. But the request XML carries the same operation name in the WSDL for both the styles. Request you all to clarify why the unwrapped style SOAP message doesn't carry the service operation name.

Thanks & Regards,

Regards,
Vijay
 
Ranch Hand
Posts: 1756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For unwrapped style, only the parameters are sent to the service. The drawback is we should not have methods with the same set of parameters. For example, if method 1 has two integers, then method 2 should not have two integers. That will create an ambiguity.

Unwrapped style is for backward compatibility with JAX-RPC.
By default, JAX-WS uses wrapped style.
 
I'm a lumberjack and I'm okay, I sleep all night and work all day. Lumberjack ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!