on 07-26-2007 11:10 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.