Hello Lotfi-
You can try to instantiate your derived class object from main ..
//take notice main is static
public static void main(String [] args) throws Exception
{
//some OO classes
//Create the service (but I could have very easily have created MyService which
extends Service)
System.out.println("Creating the service thru new Service..");
Service service = new Service();
//Create the call from the service
System.out.println("Creating the call from the service");
Call call = (Call) service.createCall();
//Critical that the endpoint reflect the deployed service
System.out.println("About to call call.setTargetEndpointAddress(endpoint)
where endpoint = "+endpoint);
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
System.out.println("About to call call.setOperationName(method) =
"+method);
call.setOperationName( method );
call.addParameter("POP_SERVER", XMLType.XSD_STRING,
ParameterMode.IN);
call.setReturnType( XMLType.XSD_STRING );
// Object ret = (Object)
System.out.println("Invoking the Service with 13 Args");
String ret = (java.lang.String)call.invoke( new String [] {
POP_SERVER,
DOC_FAX_REPL_NO,
EIGHT_HUNDRED_FAX_NUMBER,
M_MODULE_CODE,
OUT_POP_SERVER,
OUT_NAME,
OUT_EDISCHARGE_ENABLED,
OUT_ACTIVE,
OUT_DOCUMENT_FAX,
OUT_TODAY,
OUT_TODAY_MON,
OUT_TOMMORROW,
OUT_TOMMORROW_MON
});
.........
}
HTH
Martin --
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed. If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy. Thank you.
>
> Hellooo,
>
> I work with axis 1.2, jdk1.4. , Eclipse 1.2 and ActiveBpel
>
> It proves that AXIS does not support polymorphism, I try to avoid it, so, it
> seems also inconceivable to avoid inheritence.moreover, I had problems
> using inheritence with extends balise on the xsd (it can comes from
> ActiveBpel)
>
> The question is; does axis 1.2 enable an alternatve solution of
> polymorphism? How can i use cleanely inheritence?
>
> thanks..
> Regars.
>
> --
> View this message in context:
> http://www.nabble.com/quation-about-axis-and-polymorphism-tf2192560.html#a6067692
> Sent from the Axis - User forum at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>