eRiCk
eRiCk

Reputation: 43

Consume .NET WCF Service in Eclipse for Blackberry

does consume .NET WCF service is do-able in Eclipse for Blackberry?

been trying hard for 4 days now with no luck i'm stuck when trying to generate java Stub class for my WCF using Java ME 3.2 because my WCF contain .NET List as parameter and for unknown reason Java ME can't generate those stub for me :(

Why? any insight?

thx, erick

Upvotes: 0

Views: 334

Answers (1)

Shiraz Bhaiji
Shiraz Bhaiji

Reputation: 65391

There are several things that you could change / check:

  • Change your contract to use types that are valid across platforms. Change your .net lists to arrays.
  • Do not return a lists directly. create a return object that has a property which has a list.
  • Make sure that you are using a WCF configuration that is compatible with the calling platform, for example basic http binding.
  • Make sure that wsdl generation is turned on
  • Make sure that your service is running

You should test your service from a .net client first, to ensure that it is a compatibility problem.

If you have something like:

  public myItems[] GetData();

Try;

  [OperationContract]
  public myResponse GetData();


  [DataContract]
  public class myResponse()
  {
      [Datamember]
      myItems[] items { get; set; }
  }

Upvotes: 1

Related Questions