|
soap tutorial | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectadriani.jws.template.marshalling.TemplateSkeleton
adriani.jws.template.marshalling.impl.TemplateSkeletonImpl
public class TemplateSkeletonImpl
This class should have the same structure of the skeleton produced by the Axis2 wsdl2Java tool,
located in the marshalling
package.
Each time it's necessary to re-generate the sources in that package (usually in order to reflect a
change in the WSDL document) the original xxxSkeleton
it's overwritten with
an "empty" skeleton class.
For this reason hence it's convenient to keep the implementation code of the actual skeleton in
a different class (this very one) and merge it with the generated skeleton only when necessary.
Moreover, since the ServiceLogic
class uses the wrappers offered by the wrappers
package, this class should be responsible for conversion of the Eclipse ADBBean
java classes
into the proper wrapper classes, and viceversa.
Remark: this class MUST extend the original skeleton class, in order to allow the proper
xxxMessageReceiverInOut
class to cast the proper run-time object into a
valid skeleton instance.
This class should be invoked by calling an URL of the type:
http://localhost:8080/axis2/services/template/getInformation
Field Summary | |
---|---|
protected java.lang.String |
header_field
Value of the header field received in the SOAP request (optional): see authentication feature. |
protected java.lang.String |
leadingName
Beginning of each logging message produced by this class. |
protected ServiceLogic |
logic
A reference to the service business logic class. |
Constructor Summary | |
---|---|
TemplateSkeletonImpl()
|
Method Summary | |
---|---|
DateOut |
formateDate(DateIn dateIn)
Highest level SOAP implementation of the second web service method. |
Information |
getInformation(User user)
Highest level SOAP implementation of the first web service method. |
ServiceLogic |
getServiceLogic()
Accessor method, used only during development by the SimpleClient class. |
void |
setHeaderField(java.lang.String value)
Accessor method, used only during development by the SimpleClient class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ServiceLogic logic
protected java.lang.String header_field
protected java.lang.String leadingName
Constructor Detail |
---|
public TemplateSkeletonImpl()
Method Detail |
---|
public Information getInformation(User user)
User
input java object is created by the
TemplateMessageReceiverInOut
class when invoking the User.Factory.parse()
STATIC method (no one instantiate a User
object within the skeleton class).
getInformation
in class TemplateSkeleton
user
- the object wrapping the customer data (produced by the Axis2 wsdl2java tool)
Information
object, as produced by the Axis2 wsdl2java toolpublic DateOut formateDate(DateIn dateIn)
DateIn
input java object is created by the
TemplateMessageReceiverInOut
class when invoking the DateIn.Factory.parse()
STATIC method (no one instantiate a DateIn
object within the skeleton class).
formateDate
in class TemplateSkeleton
dateIn
- the object wrapping the input data (produced by the Axis2 wsdl2java tool)
DateOut
object, as produced by the Axis2 wsdl2java toolpublic ServiceLogic getServiceLogic()
SimpleClient
class.
ServiceLogic
classpublic void setHeaderField(java.lang.String value)
SimpleClient
class.
value
- the string value of the header field
|
Build 19/03/2014 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |