soap tutorial

adriani.jws.template.marshalling.impl
Class TemplateSkeletonImpl

java.lang.Object
  extended by adriani.jws.template.marshalling.TemplateSkeleton
      extended by adriani.jws.template.marshalling.impl.TemplateSkeletonImpl

public class TemplateSkeletonImpl
extends TemplateSkeleton

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

logic

protected ServiceLogic logic
A reference to the service business logic class.


header_field

protected java.lang.String header_field
Value of the header field received in the SOAP request (optional): see authentication feature.


leadingName

protected java.lang.String leadingName
Beginning of each logging message produced by this class.

Constructor Detail

TemplateSkeletonImpl

public TemplateSkeletonImpl()
Method Detail

getInformation

public Information getInformation(User user)
Highest level SOAP implementation of the first web service method.
Notice that the 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).

Overrides:
getInformation in class TemplateSkeleton
Parameters:
user - the object wrapping the customer data (produced by the Axis2 wsdl2java tool)
Returns:
an Information object, as produced by the Axis2 wsdl2java tool

formateDate

public DateOut formateDate(DateIn dateIn)
Highest level SOAP implementation of the second web service method.
Notice that the 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).

Overrides:
formateDate in class TemplateSkeleton
Parameters:
dateIn - the object wrapping the input data (produced by the Axis2 wsdl2java tool)
Returns:
an DateOut object, as produced by the Axis2 wsdl2java tool

getServiceLogic

public ServiceLogic getServiceLogic()
Accessor method, used only during development by the SimpleClient class.

Returns:
the current instance of the ServiceLogic class

setHeaderField

public void setHeaderField(java.lang.String value)
Accessor method, used only during development by the SimpleClient class.

Parameters:
value - the string value of the header field

Build 19/03/2014

Morpheus Technologies - making the Zion software
Copyright © 2009-2014 Morpheus Technologies. All Rights Reserved