cancel
Showing results for 
Search instead for 
Did you mean: 

[Web Service] request arg is array

Former Member
0 Kudos

Dear all,

I insert multi-node in web service request.

-


Context in EduCusController:

-


Request_EducationWSViDocument_createEducationList

+arg1(0..n)

-majorField

-


In viewController

-


IArg1Node DestinationNode =wdThis.wdGetEduCusController().wdGetContext().nodeArg1();

for (int i = 0; i < 5; i++) {

ComplexType_EducationJB newejb=new ComplexType_EducationJB();

IArg1Element newElement =DestinationNode.createArg1Element(newejb);

newejb.setMajorField( i);

DestinationNode.addElement(newElement);

}

-


-


then i run

<b>executeRequest_EducationWSViDocument_createEducationList( );</b>

it have Exception : <b>Exception in method CreateEducationList ~</b>

Can anyone help me.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI WU,

will you provide complete stack trace of exception.

it will help to know further details about the probelm

With Regards

Naidu

Former Member
0 Kudos

HI Naidu,

how can i do to get complete more stack trace of exception.

-


public void executeRequest_EducationWSViDocument_createEducationList( )

{

//@@begin executeRequest_EducationWSViDocument_createEducationList()

//$$begin Service Controller(1148767839)

IWDMessageManager manager = wdComponentAPI.getMessageManager();

try {

wdContext

.currentRequest_EducationWSViDocument_createEducationListElement()

.modelObject()

._setHTTPDestinationName("Education_WS");

wdContext

.currentRequest_EducationWSViDocument_createEducationListElement()

.modelObject()

.execute();

wdContext.nodeResponseResult().invalidate();

} catch (Exception e) {

e.printStackTrace();

manager.reportException(e.getMessage(), false);

}

//$$end

//@@end

}

-


PS. i use Web Services Navigator insert multi-node, and it run OK.

Answers (1)

Answers (1)

monalisa_biswal
Contributor
0 Kudos

arg1 comes under Request_EducationWSViDocument_createEducationList node.

Before creating instance of arg1 you should have created instance of Request_EducationWSViDocument_createEducationList node.