cancel
Showing results for 
Search instead for 
Did you mean: 

how to access complex data type objects in webdynpro

Former Member
0 Kudos

Hi

Need help on the detailed procedure to access the complex data type objects.

I am importing an external wsdl file, its request and response have complex data type objects , how do i access the same as the values are nested in them.

The structure of request and response at my end is as below:

request(I level)

--complextypeobject(II level)

-


requestheader(III level)

-


field1

-


field2

...

...

request

--response

-


messages

-


resp1

-


resp2

....

....

Any help would be highly appreciated.

Thanks and Regards,

Amar Bhagat Challa.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

here you go

WS Structure

Request_MI_PortWellOB_MI_PortWellOB

|-- MT_PortWellOut

|--agency ( attr)

|--user (attr)

|-- well ( node)

|-- borehole

|-- downhole

|-- interval

|-- surface

// code to set complex type

wdContext.nodeRequest_MI_PortWellOB_MI_PortWellOB().bind(new Request_MI_PortWellOB_MI_PortWellOB());

// port well object

Request_MI_PortWellOB_MI_PortWellOB oPWRequest = new Request_MI_PortWellOB_MI_PortWellOB();

ComplexType_DT_PortWell oPWParameters = new ComplexType_DT_PortWell();

oPWRequest.setMT_PortWellOut(oPWParameters);

wdContext.nodeRequest_MI_PortWellOB_MI_PortWellOB().bind(oPWRequest);

DT_PortWell oPWInputbean =

this.wdContext.nodeRequest_MI_PortWellOB_MI_PortWellOB().nodeMT_PortWellOut().currentMT_PortWellOutElement().modelObject().getOriginalBean();

// oPWInputbean.setTEST("test");

// well object

DT_CWR_Well oWParameters = new DT_CWR_Well();

// all object

// surface

DT_CWR_Surface oSParameters = new DT_CWR_Surface();

ComplexType_DT_CWR_Surface s = new ComplexType_DT_CWR_Surface();

// Borehole

DT_CWR_BoreHole[] oBParameters = new DT_CWR_BoreHole[wdContext.nodeBoreholedetail().size()];

// Downhole

DT_CWR_DownHole[] oDParameters = new DT_CWR_DownHole[wdContext.nodeDownholedetail().size()];

// Interval

DT_CWR_Interval[] oIParameters = new DT_CWR_Interval[wdContext.nodeIntervaldetail().size()];

// add all into well object

oWParameters.setSURFACE(oSParameters);

oWParameters.setBOREHOLE(oBParameters);

oWParameters.setDOWNHOLE(oDParameters);

oWParameters.setINTERVAL(oIParameters);

// oPWParameters.setWELL(oWParameters );

oPWInputbean.setWELL(oWParameters);

oPWRequest.setMT_PortWellOut(oPWParameters);

wdContext.nodeRequest_MI_PortWellOB_MI_PortWellOB().bind(oPWRequest);

wdContext.currentMT_PortWellOutElement().setUSERID("user");

wdContext.currentMT_PortWellOutElement().setAGENCY("agency");

Rahul

Answers (0)