on 01-15-2009 11:49 PM
Hello,
I am getting error when I test web service:
faultcode=SOAP-ENV:Security
faultstring=call to method is not authorized by service provider
I am using UME API in the web service method.
Can anybody help me.
Thanks
Hi Tony,
From the error, it looks like there is some authorization issue.
You can refer to AWS FAQs at https://wiki.sdn.sap.com/wiki/display/WDJava/FAQ-Models-AdaptiveWebService (have some pointers SOAP related)
Kind Regards,
Nitin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I deleted the project and re-created it. It is working now. Now, I have a nil response:
Here is what I see in the NWDS (web services checker):
getOfficeListResponse
|
>response
Here is my web service method:
public String[] getOfficeList(String userID){
try {
IUser user = UMFactory.getUserFactory().getUser(userID);
String[] listOfGroups = null;
int length = 0;
Iterator iterator = user.getParentGroups(true);
while(iterator.hasNext()){
listOfGroups[length] = iterator.next().toString();
length++;
}
if(length == 0)
return null;
else
return listOfGroups;
} catch (UMException e) {
// TODO Auto-generated catch block
// e.printStackTrace();
return null;
}
}
Any bug in the code?
Can anybody let me know how to debug this web service method? I am new to web services (NWDS)
Thanks a lot!
Tony
Edited by: Tony on Jan 16, 2009 4:44 PM
Deleted and Recreated the web service.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tony,
Refer these links,
Regards,
Sunaina Reddy T
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tony,
Please have a look at the following llinks:
Similar error handling is explained here:
http://help.sap.com/saphelp_nw04/helpdata/en/10/661841a66af223e10000000a155106/frameset.htm
Hope it helps.
Regards.
Rajat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Rajat,
Thanks for all those pdf's. Unfortunately, none of them mention this error (tested from NWDS Enterprise Portal Web Services Checker):
Fault
> faultcode=SOAP-ENV:Security |
>faultstring=Call to Method is not authorized by the service provider
> faultactor=[host]java.lang.String" detail |
>error_Exception(prt0:PortalSOAPFault)
[host] is the environment where I am deploying this web service.
I get the same error when I test it from wsnavigator url "Call to Method <method> is not authorized by the service provider.
The web service method uses UME API to get the group list associated for the logged in user.
Thanks
Tony
Edited by: Tony on Jan 16, 2009 7:13 AM
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.