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

Reply
New Contributor
XODIS
Posts: 3
Registered: ‎01-25-2012
My Device: 9800

Proxy Generation and Multiple Platforms (Domino/Exchange/Office365)

We are working on a Windows based cross platform (Domino/Exchange/Office 365) BES product, using the BAA API or BWS in C# with .net 4.0. It seems pretty straightforward to generate the wsdl to connect to either Domino or Exchange, but when we generate it to connect to both of them, we're getting collisions. This can be separated out by using namespaces, but that would then result in our API code being duplicated for each platform. To generate the proxies, we're using:

wsdl.exe /sharetypes /out:BAASProxyShared.cs /namespace:BAASProxyShared https://%1/baaws/core/wsutil?wsdl 
wsdl.exe /sharetypes /out:BAASProxyExchange.cs /namespace:BAASProxyExchange https://%1/baaws/core/ws?wsdl https://%1/baaws/dispatcher/ws?wsdl https://%1/baaws/emailexchange/ws?wsdl 
wsdl.exe /sharetypes /out:BAASProxyDomino.cs /namespace:BAASProxyDomino    https://%2/baaws/core/ws?wsdl https://%2/baaws/dispatcher/ws?wsdl https://%2/baaws/emaildomino/ws?wsdl 

where %1 is the Exchange url and %2 is the Domino url.

So the question is: does anyone have a C# example of how to connect to Domino BES, Exchange BES and Office 365 (This should be the same as Exchange BES), with the WSDL command used to generate the proxies?

Alternatively, has anyone figured out how to authenticate with the BES WS using .net 4.0 WCF web services? It works on the wsutil WS, which doesn't require auth, but the others fail.


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

Re: Proxy Generation and Multiple Platforms (Domino/Exchange/Office365)

Hi there,

 

If you're targeting BES versions 5.0.3 and higher then the simple solution would be to use BWS instead of BAA. BWS is mail platform agnostic, so the same calls will work regardless of the BES being targeted.

http://supportforums.blackberry.com/t5/BlackBerry-Enterprise-Server/Using-Alternate-Languages-with-t...

 

Regards,

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
XODIS
Posts: 3
Registered: ‎01-25-2012
My Device: 9800

Re: Proxy Generation and Multiple Platforms (Domino/Exchange/Office365)

Garrett,


Thanks for the quick reply.  We will give this a try.  Can you tell me anything about the authentication methods supported in the BlackBerry cloud solution?  I know the BAA and BWS API is exposed but it looks like it uses a different authentication model (Perhaps Windows Live)?  Are there any articles or samples for this?

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

Re: Proxy Generation and Multiple Platforms (Domino/Exchange/Office365)

BWS and BAA are not curently supported for the BES Cloud Service offerings.

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
XODIS
Posts: 3
Registered: ‎01-25-2012
My Device: 9800

Re: Proxy Generation and Multiple Platforms (Domino/Exchange/Office365)

So we switched to BWS and we were able to make substantial progress. THANK YOU SO MUCH.  However we did run into an interesting issue connecting to one of the servers.

 

The HTTP request is unauthorized with client authentication scheme 'Basic'. The authentication header received from the server was 'Basic realm="EJBServiceEndpointServlet Realm"
Any idea as to what this would mean.  I have not been able to find any articles on it.

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

Re: Proxy Generation and Multiple Platforms (Domino/Exchange/Office365)

Glad to hear BWS is working out for you :smileyhappy:

 

This error doesn't appear to be anything specific to BWS. What line in your code results in this error? What is the URL being used?

Garett
@garettBeuk
--
Goodbye everybody!