Skip to Content
0
Former Member
Nov 05, 2008 at 04:13 PM

SOAPFaultException with <wsse:Security> Tag consuming a Web-Service

86 Views

hello,

i'm trying to consume a Web-Service of a Document-Server implementing the new CMIS-Interface.

When i call the Service i get the exception:

javax.xml.ws.soap.SOAPFaultException: An error was discovered processing the <wsse:Security> header

my code (in an EJB 3.0 of NWCE 7.1 CE Server) is as follows:

@Stateless(name="DocRepBean")
public class AlfRepBean implements DocRepLocal {

	@WebServiceRef(name="RepositoryService")
	private RepositoryService rService;
	
	public String repServiceList ()
	{
		String result = "";
		RepositoryServicePort rPort = rService.getRepositoryServicePort();
		try
		{
			String rList = "";
			for (CmisRepositoryEntryType rEntry : rPort.getRepositories())
			{
				rList = rList + "REntry:ID="+rEntry.getRepositoryID()+";Name="+rEntry.getRepositoryName()+";URI="+rEntry.getRepositoryURI()+":";
			}
			result = rList;
		}
		catch (Exception ex)
		{
			result = "!Exeption:" + ex.toString();
			ex.printStackTrace();
                        // here the exception is thrown
		}
		return result;
	}
}

Is there maybee a problem with authentification? but how can i set user and password calling that service then?

Sorry for this maybe easy questions but i'm new in consuming other webservices.

regards

matthias hayk