Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.