You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ku...@wipro.com on 2006/11/28 07:07:50 UTC

[Axis2]Issue with WSDL2Java

Hi,
 
I am using WSDL to java generate serverside code. But I am finding that
the method signature is not consistent with the WSDL file.
 
WSDL file used was
 
<wsdl:message name="ScheduleConferenceInput"> 

<wsdl:part element="xsd1:ConferenceBookingDetails" name="a"/>

<wsdl:part element="xsd1:ListOfParticipant" name="b"/>

</wsdl:message>

<wsdl:message name="ScheduleConferenceResult">

<wsdl:part element="xsd1:Result" name="c"/>

</wsdl:message>

<wsdl:portType name="ConferenceSchedulerPortType">

<wsdl:operation name="ScheduleConference">

<wsdl:input message="tns:ScheduleConferenceInput" /> 

<wsdl:output message="tns:ScheduleConferenceResult" />

</wsdl:operation>

</wsdl:portType>

But the skelton has following method signature 

public com.wipro.scheduler.xsd.Result ScheduleConference
(
com.wipro.scheduler.xsd.ConferenceBookingDetails param0
)
{
//Todo fill this with the necessary business logic
throw new java.lang.UnsupportedOperationException("Please implement " +
this.getClass().getName() + "#ScheduleConference");
}

 
Ideally it should have two param ConferenceBookingDetails,
ListOfParticipant.

I am using the below command for code generation

WSDL2Java -uri E:\webservice\conferencescheduler\wsdl\Scheduler.wsdl -ss
-sd -g -d adb  -o E:\webservice\conferencescheduler\generated_source -p
com.wipro.scheduler

 

I am not getting why the param ListOfParticipant is not seen in
ScheduleConference method.

Your help is very much appreciated.

 
_________________________________________________
Thanks & Regards,
Vinodh
 



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
 
www.wipro.com