none
Android Java soap communcation with WCF service producing ArgumentNullException Parameter: actors

    Question

  • We have successfully managed to get android talk to a wcf service with basicHttpBinding with a library called ksoap2. The next challenge which we thought would be simple was applying some security. After reading some articles we realized that standard wcf binding wouldn't work we tried out the customUserNameBinding by Yaron Naveh here running both soap11 and soap12.

    Problem is we has runned in to an Exception from wcf that says "ArgumentNullException: Value cannot be null. Parameter name: actors". We understand that this exception comes from System.Servicemodel.dll and a method called FindHeader(..) and the two articles we found that mentions it says it is a bug in framework? Can someone confirm that? Is there a solution?

    /Håkan

    Wednesday, September 28, 2011 1:27 PM

Answers

  • I highly suggest you to build a REST service. It's actually very simple. You can find a lot of resources on http://wcf.codeplex.com/. Android (and some other popular devices such as iPhone) does not support SOAP natively, but they do support REST. If you use a third party library to work with SOAP service, you're on your own risk.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog
    • Marked as answer by Håkan E Thursday, September 29, 2011 6:54 AM
    Thursday, September 29, 2011 3:55 AM

All replies

  • I highly suggest you to build a REST service. It's actually very simple. You can find a lot of resources on http://wcf.codeplex.com/. Android (and some other popular devices such as iPhone) does not support SOAP natively, but they do support REST. If you use a third party library to work with SOAP service, you're on your own risk.
    Lante, shanaolanxing This posting is provided "AS IS" with no warranties, and confers no rights.
    Windows Azure Technical Forum Support Team Blog
    • Marked as answer by Håkan E Thursday, September 29, 2011 6:54 AM
    Thursday, September 29, 2011 3:55 AM
  • Thanks for pointing us to the right direction. Once more this is another example how important it is to keep taking courses and try to keep up with all new features and frameworks although all projects that must be delivered always is prio 1.
    Thursday, September 29, 2011 6:59 AM