Limitation of J2ME Web Service JSR 172 package #2

Continue from previous post that i mention the limitation of J2ME JSR 172. Apparently, not all data types in XML schema are supported in J2ME JSR 172. I am not sure why the specification did not mention the points.

Basically, according to JSR 172 specification, it doesn’t support several XML encoding format.  When i tried using Netbeans 6.1 to generate the stubs from the given WSDL file, it pop-up an error as it cannot validate these field as below against the JSR 172 specs:

Limitation that mention in JSR 172:


2.SimpleTypes enumeration and restriction

Limitation that JSR 172 did not mention:

1. XSD: Date, Choice, Duration, Time.

More useful information can be found on this IBM website.

Limitation of J2ME Web Service JSR 172 package.

Me and my team members currently work on Mobile application that require web services data. We found that J2ME had limited support of WSDL binding style. According to J2ME JSR 172 specification section 3.2.2 Operation mode, the only WSDL binding style is supported is document/literal.

If we trying to use RPC/literal, we will get error when we tried to generate stub with the WSDL file. It is pity that, the limitation of this package had limited the way WSDL bind the document into SOAP.

There are few options to overcome this, either use REST way or regenerate the WSDL file with document/literal binding style.