Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Web Services


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Developer
Posts: 26
Registered: ‎12-01-2008
My Device: 9000
Accepted Solution

Authentication, findMailStoreUsers for Domino

Hi there, 

 

im quite new to the Administration API...

I successfully listed all my BlackBerry Users, now i wanna list my Domino users in order to create a new user (someday...).

 

I tried this:

 

try {
     dominoUrl = new URL("https://" + strBASURL + "/baaws/emaildomino/ws?wsdl");
} catch (MalformedURLException e) {
     return false;
}
_myDominoWSService = new BAAServiceEmailDomino(dominoUrl);

 and

 

Authenticator dominoAuthenticator=null;
		List<Authenticator> a = _myUtilWSStub.findAuthenticators("en_US");
		for(Authenticator itr:a) {
			if(itr.getName().equalsIgnoreCase("Domino mailbox")) {
				dominoAuthenticator = itr;
			}
		}
		myEncodeUsername = _myUtilWSStub.encodeUsername("admin", null, dominoAuthenticator.getAuthenticatorType(), dominoAuthenticator.getId(), "0");
		
		BindingProvider bp2 = (BindingProvider)_myDominoWSService.getEmailDomino();
		bp2.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, myEncodeUsername);
		bp2.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, password);

 

I played around with the username and password.

 

When i call

 

FindMailStoreUsersResult myResult = _myDominoWSService.getEmailDomino().findMailStoreUsers(criteria, sortByEnum, sortAscending, locale, null, pageSize);

 

I get the following error:

 

org.apache.cxf.interceptor.Fault: Could not send Message.
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:220)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:296)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:242)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:178)
	at $Proxy42.findMailStoreUsers(Unknown Source)
aused by: java.net.HttpRetryException: cannot retry due to server authentication, in streaming mode
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at java.net.HttpURLConnection.getResponseCode(Unknown Source)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1937)
	at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1865)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:593)
	at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	... 8 more

 

Maybe my try is totaly **bleep**, maybe im missing something.

Can anyone help me?

 

Thanks

 

Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Authentication, findMailStoreUsers for Domino

Hi there,

 

First thing, are you running BES version 5.0.3? If so I would strongly suggest stopping BAA development and instead switch over to BWS.

 

If you need to stick with BAA then you may want to check the username and password being used. Does this username and password allow you to login through the BAS console? Is this a BAS user account or do you actually have a Domino user account named "admin"?

Garett
@garettBeuk
--
Goodbye everybody!
New Developer
Posts: 26
Registered: ‎12-01-2008
My Device: 9000

Re: Authentication, findMailStoreUsers for Domino

Hi Garett, 

 

thanks for this information. Its a 5.0.3 server, so i can switch.

I already created my proxy classes.

Is there a development guide like the Blackberry Administration API guide?

 

 

Matthias

Highlighted
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: Authentication, findMailStoreUsers for Domino

Hi Matthias,

 

This is the guide to date:

http://supportforums.blackberry.com/t5/BlackBerry-Enterprise-Server/Getting-Started-with-BlackBerry-...

 

Cheers,

Garett
@garettBeuk
--
Goodbye everybody!
New Developer
Posts: 26
Registered: ‎12-01-2008
My Device: 9000

Re: Authentication, findMailStoreUsers for Domino

Thanks,

 

i found everything i needed in the article / api.

 

Matthias