Posts Tagged kSOAP

Cum conectam o aplicatie MIDlet J2ME la un serviciu Web .NET folosind kSOAP 2

Serviciile web au avut si continua sa aiba un impact mare asupra dezvoltarii aplicatiilor Web deoarece acestea permit independenta totala între clientii si furnizorii de servicii. Locatia, platforma, limbajul de programare si arhitectura clientilor si a celor care ofera serviciile Web nu are niciun efect asupra lor. Tehnologiile Internet si standardele care au permis definirea si utilizarea serviciilor Web sunt Hypertext Transfer Protocol (HTTP), eXtensible Markup Language (XML), Remote Procedure Call (RPC), Web Services Description Language (WSDL), Simple Object Access Protocol (SOAP) si Universal Description, Discovery, & Integration (UDDI).

In acest articol vom vedea cum conectam o aplicatie MIDlet J2ME la un serviciu Web .NET folosind libraria kSOAP 2. Platforma Java 2 Micro Edition (J2ME) ofera suport pentru Web Services prin J2ME Web Services API (WSA), JSR 172, care ofera doua API-uri optionale: invocare de la distanta de servicii (JAX-RPC) si parsare XML (JAXP). Pentru urmatorul exemplu, vom folosi libraria independenta kSOAP 2, pentru ca are un impact minimal asupra performantei aplicatiei si este eficienta. Solutia este dezvoltata în NetBeans IDE, dar se poate folosi, de asemenea, Eclipse IDE.

Read the rest of this entry »

, ,

No Comments

How to connect to a .NET Web Service from a J2ME MIDlet using kSOAP 2

Web services had and continue to have a great impact on the development of Web applications because they allow total independence between clients and service providers. The location, the platform, the programming language and the architecture of both the clients and the services has no effect on each other. The Internet technologies and standards that allowed the implementation of Web services are HyperText Transfer Protocol (HTTP), eXtensible Markup Language (XML), Remote Procedure Call (RPC), Web Services Description Language (WSDL), Simple Object Access Protocol (SOAP) and Universal Description, Discovery, & Integration (UDDI).

In this article we will see how to connect to a .NET Web Service from a j2ME MIDlet using kSOAP2 library. The Java 2 Micro Edition (J2ME) Platform offers support for Web Services through the J2ME Web Services API (WSA), JSR 172, which provides two optional APIs: remote service invocation (JAX-RPC) and XML parsing (JAXP). For the next example, we will use the third party kSOAP 2 library because it is lightweight and efficient. The solution is developed in the NetBeans IDE but you could use also Eclipse IDE.

Read the rest of this entry »

, ,

8 Comments