cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with input field type from WSDL

Former Member
0 Kudos

Hi,

I have created a model from a WSDL file and try to create a form view with a couple of input fields. One of the input parameters I got from the WSDL of Java Native Type BigInteger and I cannot create an input field for it.

How can I solve this?

Eugen.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Eugen,

You cant directly bind a BigInteger to Input Field.

Instead declare a seperate value attribute of type long and map it to the input field.

You can bind the long value and in the code

typecast it to BigInteger by using BigInteger.valueOf(long) and setting the model attribute value...

I guess this wil solve your problem

Regards

Bharathwaj

Former Member
0 Kudos

im facing somewhat similar problem

i hv created a webservice in XI 3.0. Here im accessing a RFC through XI 3.0.

Now, using java proxy generation facility of XI 3.0 i hv generated the code for tht web service. Then in web dynpro i developed a j2ee application using the generated code. my requirement begins now....... i hv my frontend as web dynpro n through this frontend i want to access that application so tht all the data present in tht j2ee application gets populated in a table on the corresponding view in web dynpro. i tried to use the web service model and written some code but still im unable to successfully do it. i get a message in the integration server of XI 3.0 but the table doesnt get populated. This is the case when my web service doesnt need any input. in other case where my web service needs input, i take the value of input field from the model node, but when i run the application the input fields are deactivated, please help me out in this problem.

Former Member
0 Kudos

The input field is getting deactivated only because you havn't created an element. For that i would need the information regarding the context node and all.

Kindly provide more information regarding the context node and also how do you try to populate the table

Former Member
0 Kudos

im creating a data link between model and component

The component context has the following hierarchy

Request_GetWbsDetailsInput_getWbsDetailsInput

getWbsDetailsInput

selected_wbs

project

wbs

Response

Result

e_wbs_element_table

now im creating a data link between view n component

my first view takes the input so its context contains

Request_GetWbsDetailsInput_getWbsDetailsInput

getWbsDetailsInput

selected_wbs

project

wbs

the table is in my second view. its context is

Request_GetWbsDetailsInput_getWbsdetailsInput

Response

Result

e_wbs_element_table

now i specify the value of input fields from the first view context as project and wbs

In the wdInit() of component i write the following code

Request_GetWbsDetailsInput_getWbsDetailsInput wbs = new Request_GetWbsDetailsInput_getWbsDetailsInput();

wdContext.nodeRequest_GetWbsDetailsInput_getWbsDetailsInput().bind(wbs);

try

{

wbs.execute();

wdThis.wdGetContext().currentE_WBS_ELEMENT_TABLEElement().setWBS_ELEMENT_DESCRIPTION("abc");

}

catch (Exception e) {

// TODO: handle exception

e.printStackTrace();

}

wdContext.nodeResponse().invalidate();

Former Member
0 Kudos

The proper reply:

im creating a data link between model and component

The component context has the following hierarchy

Request_GetWbsDetailsInput_getWbsDetailsInput

-


getWbsDetailsInput

-


selected_wbs

-


project

-


wbs

-


Response

-


Result

-


e_wbs_element_table

now im creating a data link between view n component

my first view takes the input so its context contains

Request_GetWbsDetailsInput_getWbsDetailsInput

-


getWbsDetailsInput

-


selected_wbs

-


project

-


wbs

the table is in my second view. its context is

Request_GetWbsDetailsInput_getWbsdetailsInput

-


Response

-


Result

-


e_wbs_element_table

now i specify the value of input fields from the first view context as project and wbs

In the wdInit() of component i write the following code

Request_GetWbsDetailsInput_getWbsDetailsInput wbs = new Request_GetWbsDetailsInput_getWbsDetailsInput();

wdContext.nodeRequest_GetWbsDetailsInput_getWbsDetailsInput().bind(wbs);

try

{

wbs.execute();

wdThis.wdGetContext().currentE_WBS_ELEMENT_TABLEElement().setWBS_ELEMENT_DESCRIPTION("abc");

}

catch (Exception e) {

// TODO: handle exception

e.printStackTrace();

}

wdContext.nodeResponse().invalidate();

Former Member
0 Kudos

Try the following

wbs.setProject(new String())

wbs.setWbs(new String())

if they are String values

also

instead of wbs.execute() try

wdcontext.current<nodename>.execute()

Do send in your feedbacks

Regards

Noufal