cancel
Showing results for 
Search instead for 
Did you mean: 

Web Service Error.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Answers (3)

Answers (3)

Former Member
0 Kudos

Deleted and Recreated the web service.

Former Member
0 Kudos
Former Member
0 Kudos
Former Member
0 Kudos

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