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

View Entire Topic
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