This is my .NET Web Service. AuthHeader is a class that contains two strings, username and password.
For the kSOAP call, I just included the function executeWebService(). This is my code.
As for JSR172, I did not create any stubs of the Web Service because I don’t have a WTK with me.
I found this tutorial about JSR172 and how to implement it, and that’s how I did it. If you want to read about it, its title is "J2ME Web Services Specification" from Sun Microsystems. I could not upload it in this post because it does not allow .pdf files.
I’ve used almost all classes that I could in trying to create a web service client using JSR172. I’ve used javax.xml.rpc, javax.xml.namespace.QName and javax.microedition.xml.rpc. The only class I haven’t used so far is the javax.xml.parsers. But I don’t know what’s the use of this in my problem. Is there really no available api that I can use to add these SOAP headers in JSR172? I really have to hardcode the SOAP message like you said in your earlier post?