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
eparsons
Posts: 9
Registered: ‎10-25-2013
My Device: Bold
My Carrier: AT&T

505 HTTP Version not supported

New to BB Webservices, but have done some WCF and other interfacing with Web services in general.  Using VStudio 2010, C#, .Net 4.0 and trying both using the Proxy classes, and separately Service References within Visual Studio.

 

Both approaches get the same results, but I'll keep my question related to the Service References. 

 

So I create the service ref for the utility service and it all just works (albiet not much in the utility classes)  I copy the samples, nearly verbatum.  I get the Active Directory authenticator, the encoded username, set the app config binding to authenticate Basic.  Utility works fine.

 

BWSClient (created by the service reference) is parallel in concept to the BWSService object in the proxy classes, but always returns a "505 - HTTP Version Not Supported." from the server.  All research points to "I'm asking for HTTP 1.1, and BES only supports 1.0 or less" 

 

Is this really the case, and if so, does anyone know where to set HTTP version in either the proxy classes or service reference?  (BTW, I have been granted "Security" rights in the test environment.)

 

Thanks in advance, all.

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: 505 HTTP Version not supported

Which call exactly is returning the 505? It would seem odd that the getEncodedUsername would succeed but another call would fail due to requiring a different HTTP version.

 

Also:

What values are you setting in your METADATA?

What URL is the above call being made to (feel free to generacize)?

Does the BWS#echo() call complete successfully?

 

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
eparsons
Posts: 9
Registered: ‎10-25-2013
My Device: Bold
My Carrier: AT&T

Re: 505 HTTP Version not supported

Thanks for the reply Garett.  Unfortunately (or not depending on perspective) I can't give a lot of detail as you hint at companies not allowing public disclosure things.  Let's see how I can get thru that.

 

  1. Calls to the anonmously enabled UTILITY service go through fine.
  2. Only calls to either BWS or BAACore are met with "please authenticate" and when I return the authentication elements, that's when it complains.
  3.  As far as I've tested, all calls fail, but specifically, I've tried Echo, GetSystemInfo on the BWS, and getUser on the BAACore.
  4.  The BWS would be the /enterprise/admin/ws.  The BAACore is baaws/core/ws.
  5.  Locale ="en_US"
  6. ClientVersion ="4.0.30319.1" (but I get the same result with 6.2.0)
  7. OrgUid ="0"

 

I just found that the original call has an..."Accept-Encoding: gzip, deflate" while the second (with authentication) call is "Accept-Encoding: gzip, deflate,gzip, deflate"  Which seems odd.

 

 

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: 505 HTTP Version not supported

In your response you state that you are using BAA and BWS, these are in no way compatible and BAA is actually removed from any BES higher than version 5. The URLs in use should be:

https://<servername>/enterprise/admin/ws?wsdl

and
https://<servername>/enterprise/admin/util/ws?wsdl

 

How are you setting up your authenticator?

How did you create your proxy? Did you use the steps in the guide?

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
eparsons
Posts: 9
Registered: ‎10-25-2013
My Device: Bold
My Carrier: AT&T

Re: 505 HTTP Version not supported

Again, thanks for the reply.

 

As you can see in the original post, I have been attempting both the sample code as in the guide, as well as a Service Reference which seems to be the more accepted method in Visual Studio to create and use any Web Service at this point.

 

In both cases, the WSDL is used to create proxy classes.  So, I would have to assume that a web reference to BAA would be pulling a WSDL from the server given by that team and supported by that server.  I'm not attempting version specific calls, so that can be tabled for now.

 

Regardless, the error "HTTP Version not supported" is an HTTP/1.1 in response to an HTTP/1.1 request (found with the help of Fiddler).  It would seem that RIM is returning one of those "It's really not that error according to the RFC, but we have some other problem that we don't have an appropriate error message to return, so this should be good enough for our developers community."  It happens, I know.  But it is a frustrating path when the message is misleading.

 

 

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: 505 HTTP Version not supported

[ Edited ]

If you try using a BAA WSDL then the results will be unreliable. Please only use BWS. The samples as well as all of our documentation will keep BWS and BAA completely separate and not mix the two.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
eparsons
Posts: 9
Registered: ‎10-25-2013
My Device: Bold
My Carrier: AT&T

Re: 505 HTTP Version not supported

I'm not mixing the two, only using them as comparison for troubleshooting.  If a service is exposed, then any process discovering should (given proper credentials) be able to use it.  Otherwise, remove the service exposure.

 

Regardless of the service, returning an "HTTP version not supported" when the request and response are the same version is just bad form.  It is like me telling you in English that I don't speak English.

 

Thanks for your time, but you're not offering any viable explanation or solution/workaround.  I do appreciate your effort, but was hoping someone else had hit this hurdle before and recognized the problem.

 

Thanks again for your responses.

Please use plain text.
BlackBerry Development Advisor (Retired)
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: 505 HTTP Version not supported

I can't say I've ever seen this, and have worked on just about every version of BAS.

 

With respect to my previous posts, I want to stay focused on BWS and the previous messages were unclear as to which interface was being targeted. I have never seen an HTTP 505 response which makes me think there may be an issue with the way the service is configured on your server... You would need to engage server support (the BES Board) for further support troubleshooting, or TSupport if you have an active contract.

Garett
@garettBeuk
--
Goodbye everybody!
Please use plain text.
New Contributor
eparsons
Posts: 9
Registered: ‎10-25-2013
My Device: Bold
My Carrier: AT&T

Re: 505 HTTP Version not supported

Thanks Garett

Please use plain text.
Contributor
mscheuner_nowhow
Posts: 11
Registered: ‎08-08-2013
My Device: Q10
My Carrier: Swisscom

Re: 505 HTTP Version not supported

I happened to stumble over this error, too, just a few days ago. What ended up being the reason was that I was using a wrong "encoded" user name from the BWSUtil web service - I had passed in wrong input data, and thus the resulting encoded user name (which is then used for subsequent BWS calls) was wrong, and I got this rather confusing error as a result.

 

Marc

Please use plain text.