cancel
Showing results for 
Search instead for 
Did you mean: 

Error in webService model

Former Member
0 Kudos

Hi Experts ,

I have WSDL file on my Loal system . I have created WebService Model for this file (using WSDL source as Local file system).

Following is the code I have return to execute the model object.

Request_Dept is the name of context model node.

Request_Dept req = new Request_Dept();

wdContext.nodeRequest_Dept().bind(req);

req.setDept(1250);

req.setLoc(0001);

try {

wdContext.currentRequest_DeptElement().modelObject().execute();

wdContext.nodeResponse().invalidate();

String result = null ;

result = wdContext.currentResultElement().getValue();

if (result == null )

{

result = "No Output";

}

String msg = "Email Web Service returned " + result ;

But when I am running the application I am not able to see any data . Is somthing missing?

Thanks in advance,

Dhanashree

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi

did give the http proxyhost and http proxyport

go to your model in the webdynpro explorer.expand it.go to the logical port.check the checkbox usehttp proxy

and give details for proxyhost and proxy port.

regards

saravana

Former Member
0 Kudos

Hi ,

Its giving size as zero even which is incorrect.

Thanks in advance,

Dhanashree

former_member185029
Active Contributor
0 Kudos

hi Dhanashree,

this means there is no problem in execution.

Please check the parameters you are passing are correct.

That is the only possibility that I see why there is no data.

Ashutosh

former_member185029
Active Contributor
0 Kudos

Hi

just try to print

wdContext.nodeResultElement().size();

Make sure that it is not comming as null.

Ashutosh