Questions tagged [jsr172]

JSR 172 - J2ME Web Services API specification

JSR 172, the J2ME Web Services API (WSA) extends the Java ME platform to support web services. The API's optional packages standardize remote service invocation and XML parsing.

15 questions
6
votes
2 answers

Need some help in parsing this XML in J2ME platform

Below mentioned is my XML,
Shishir Shetty
  • 2,021
  • 3
  • 20
  • 35
5
votes
1 answer

What is the use of QName and Operator class?

Can anyone explain what is the use of QName, Operation and Stub class in J2ME by giving simple and understandable examples?
Amit
  • 13,134
  • 17
  • 77
  • 148
2
votes
1 answer

Web service problems in J2ME for Micromax and Samsung

Why can't Micromax and Samsung mobile call a web service and give Java error at installation time? My web service coded in WCF service and I use j2me. My code is public void startApp() { display = Display.getDisplay(this); try { …
RAJ PATEL
  • 554
  • 4
  • 12
2
votes
1 answer

Why is java.io.ObjectStreamException used in WTK stub generator for enums?

I am using a web service implemented in WCF which has enums defined in the interface. I am trying to call this from a Java BlackBerry client. I am using Eclipse to develop the Java application for BlackBerry. I am using the Sun Java Wireless…
chrish
  • 2,352
  • 1
  • 17
  • 32
2
votes
2 answers

Passing Byte array from Blackberry to .NET Webservice

I am trying to sent a byte array from my Blackberry application to a .NET webservice (asmx). I am using the Sun Java Wireless Toolkit (WTK) 2.5.2 to generate the webservice stubs to use within the Blackberry solution. The WTK project settings are…
Fermin
  • 34,961
  • 21
  • 83
  • 129
2
votes
1 answer

Java2 ME: Consuming web service

I'm currently using NetBeans IDE, so I want to host a WebService and consume it via J2ME. Everything goes well (from writing the web service class, deploying the web server, getting the URL for the WSDL, creating the Java ME Web Service Client, then…
matt
  • 2,857
  • 7
  • 33
  • 58
2
votes
2 answers

Stub files using a WSDL file in j2me

Is it possible to generate stub files using a "WSDL" file? I know how to generate stub files using wscompiler in j2me. I have a wsdl file is it possible to create stub files using it? I am using these stub files in my j2me application.
Mihir Palkhiwala
  • 2,586
  • 3
  • 37
  • 47
2
votes
0 answers

javax.microedition.xml.rpc.Operation.newInstance returns null - JSR172

I am using the Sun Wireless Toolkit 2.5.2 to generate web services client stubs. When running the generated code, the method Operation.newInstance method always returns null. The generated code is: Operation op = Operation.newInstance(_qname_a,…
John
  • 21
  • 2
2
votes
1 answer

what is the correct configuration to connect midlet to servlet

I created a midlet application that can import data from a data base (implemented with oracle in PC) and insert data to the same data base, so the application work very well in the emulator (Netbeans IDE). Device is supporting MIDP 2.1 and jsr 172:…
1
vote
0 answers

J2ME Stub generates an unknown exception with JPA Entity types

I created a web service stub using NetBeans 7.0 and when I try using it, it throws an unknown Exception. I don't even know what part of my code to show here, all I know is that bolded line generates an unknown Exception: public Businesses[]…
burntblark
  • 1,680
  • 1
  • 15
  • 25
1
vote
1 answer

How to generate JSR-172 stubs

Back in the old times, the Sun Java dev. toolkit (v2.x) used to have a stub generator tool, but no longer in 3.x versions. I can still use the old generator, but it is very picky when it comes to input WSDL files, and the errors generated do not…
Mister Smith
  • 27,417
  • 21
  • 110
  • 193
1
vote
0 answers

J2ME XML Parsing

I have another question about a "JDWP Error: 21" logged: Unexpected JDWP Error 21 I am trying to parse some XML I gather from a servlet into a J2ME MIDlet with the code below. So far unsuccessfully, I think due to the JDWP error on my…
Stephen Murby
  • 1,407
  • 3
  • 17
  • 37
1
vote
0 answers

airtime cost / Net access message in j2me while calling webservice

I have a j2me application with midp 1.0 It works completely in other devices like Nokia n8, Nokia 5233 but when I test this application on Sony Ericsson Aspen it's giving me warning message like Untrusted application your application wants to…
bindal
  • 1,940
  • 1
  • 20
  • 29
0
votes
1 answer

BlackBerry 8330 connection issue

I'm able to connect to a webservice and download the data using a variety of devices, such as the BlackBerry 9000 with OS 4.6 or greater. However, with the 8330 and OS 4.5.0.77 it doesn't work. I have not tried this code on any devices older than…
Dan Gifford
  • 886
  • 1
  • 9
  • 33
0
votes
1 answer

I'm getting a ServerException when I try to send objects from a BlackBerry to a Server via a webservice

I'm trying to send an array of objects wrapped in an array object wrapper to a WS via JSR172 WS calls. Using the generated stub, I'm able to download objects from the server, but I'm not able to upload objects to the server. This currently happens…
Dan Gifford
  • 886
  • 1
  • 9
  • 33