Submitted by heartin on Wed, 11/04/2015 - 18:22
The @SOAPBinding annotation can be used to configure the soap binding styles.
You can use the @SOAPBinding annotation on the SEI and any of its methods. The settings of the method’s annotation takes precedence.
The @SOAPBinding annotation has three attributes: Style, Use and ParameterStyle.
Submitted by heartin on Wed, 11/04/2015 - 17:56
SOAP Binding can be done using two styles: DOCUMENT and RPC. This is denoted in the wsdl as style in the binding section.
The @SOAPBinding annotation can be used over an SEI (separate interface or class) to configure the soap binding styles, when developing a web service bottom up. Default is DOCUMENT. Annotate the SEI with @SOAPBinding(Style=Style.RPC) to get the RPC style. Generate a wsdl both with DOCUMENT and RPC styles and refer to them in parallel while going through these notes.
Submitted by heartin on Tue, 11/03/2015 - 07:14
-
Create a Web Service with a method that accept a String (as parameter) and Echo it back (return it).
-
Deploy the service on Glassfish application server
-
View and analyze the WSDL file and find the relationships with the class.
-
Test it using the Glassfish webservice tester
-
View and analyze SOAP request and SOAP response displayed by the tester.
Submitted by heartin on Tue, 11/03/2015 - 03:19
Submitted by heartin on Mon, 11/02/2015 - 19:59