cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Webservice Usage.

Former Member
0 Kudos

Dear Experts,

I am new to webservice. I have created a model using Adaptive Webservice option. I had configured a WSDL file location and Destinations for this thing.

After this i had created a object of model, and i am passing some parameters to run this webservice but i am getting following error. Please find the program that i am using and that error below -

try{

Testmodel mod = new Testmodel();

Request_ZHRESS_STATION_REQUISITION inp = new Request_ZHRESS_STATION_REQUISITION(mod);

wdContext.nodeRequest_ZHRESS_STATION_REQUISITION().bind(inp);

wdContext.currentRequest_ZHRESS_STATION_REQUISITIONElement().setSERVICEID("12");

wdContext.currentRequest_ZHRESS_STATION_REQUISITIONElement().setYYMOD("DIS");

wdContext.currentRequest_ZHRESS_STATION_REQUISITIONElement().setYUSERTYPE("EMP");

wdContext.currentRequest_ZHRESS_STATION_REQUISITIONElement().modelObject().execute();

}

catch(Exception e)

{

}

But at the line where i am passing SERVICEID as a parameter its throwing error -

Attribute name 'SERVICEID' not defined for model class 'Request_ZHRESS_STATION_REQUISITION'

but i checked thsat its there and its coming from autocompleteion facility also.

Please suggest me some solution.

Thanks in advance,

Roshan Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member186016
Active Contributor
0 Kudos

Hi,

Is WSDL file local ?

May be it differs with Web Service specification at the service host ?

This parameter might not be present in Web Service hosted but is specified in local WSDL file.

Please check this.

Regards,

Ashwani Kr Sharma

Former Member
0 Kudos

Dear Ashwini,

I have published my Webservice to my server. Its not present as a local file. Its on a Server, I have tested it from server also.

While creating the model i have given the location of this webservice present at server.

When i checked the ROOT context node of Model all the parametera that i am passing is available there. But when i am using them they are thorowing desrcibed error.

Please Help!

Thanks in advance

Roshan Gupta