Skip to Content
author's profile photo
Former Member

Error in generated code after importing WSDL model

hi all,

i encountered errors when creating custom controller linked to a webservice model.

-webservice model is taken from

-On applying template for custom controller, i got following errors in code generated.

--method <i>wdDoInit</i> implementation is missing complete path of the model element.

<i> //@@begin wdDoInit()

//$$begin Service Controller(-308771993)

wdContext.nodeRequest().bind(new <b>Request_TemperaturePortType_getTemp</b>());



---The above was fixed by giving complete path of model element.

<i>(new <b></b>Request_TemperaturePortType_getTemp()</i>

-And also model invoke method <i>executeRequest</i> has compilation errors.

<i> public void executeRequest( ) {

//@@begin executeRequest()

//$$begin Service Controller(190476535)




} catch(Exception ce) {

<b>// MessageManager manager = (MessageManager)wdThis.wdGetAPI().getComponent().getMessageManager();</b>

<b>// manager.reportException(ce.getLocalizedMessage(), false);</b>



-class <i>MessageManger</i> is not resolved. i commented exception handling if you notice.

i dont know if i missed something. thanks in advance for any guidance.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Apr 13, 2004 at 05:54 AM

    Hi Venu,

    the imports are not inserted in the controller code by the code generator. After applying the template, open the implementation of the controller code or click on one of the errors in the task view to navigate to the implementation and organize the imports. This is done by selecting <b>Source->Organize Imports</b> in the context menu of the code editor or by typing <b>SHIFT-CTRL-O</b>.

    Hope that helps.



    Add comment
    10|10000 characters needed characters exceeded