Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems to generate stub

 
antonio rodriguez ayuso
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello to all,

I�m working with J2ME Wireless Toolkit, and I have got a Web Service named PreinscriptionServiceIF. This service have 3 methods, "aceptado", "preinscribir" and "sendPDF". When I generate the Stub:

warning: Operation aceptado is of the wrong encoding SOAP style/use (rpc/encoded). Document/literal only. Skipping generation of operation.
warning: Operation preinscribir is of the wrong encoding SOAP style/use (rpc/encoded). Document/literal only. Skipping generation of operation.
warning: Operation sendPDF is of the wrong encoding SOAP style/use (rpc/encoded). Document/literal only. Skipping generation of operation.
C:\WTK22\apps\clientMobilePreinscription\src\connector\PreinscriptionServiceIF_ Stub.java:14: connector.PreinscriptionServiceIF_Stub is not abstract and does not override abstract method sendPDF(java.lang.String,java.lang.String) in connector.PreinscriptionServiceIF
public class PreinscriptionServiceIF_Stub implements connector.PreinscriptionServiceIF, javax.xml.rpc.Stub {
^
1 error
error: compilation failed, errors should have been reported

I hope that somebody can help me.

thank to all.

Antonio.
 
Marcin Zduniak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your WS use differen encoding style from the one that generator supports (it supports document/literal, and your WSDL is in rpc style i suppose). As far as I know www.ksoap.org support rpc style web services, so maybe it will help you (but it hasn't any stub generator, you must implement invocation code by yourself).

Regards.
 
antonio rodriguez ayuso
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks you.

I have used KSOAP, but when I compile:

cannot found "import org.ksoap.*"

I am using J2ME WIRELESS TOOLKIT, the library KSOAP (the complete directory "org") I have copied it in <Home_Toolkit>/apps/MyClient/lib.

You know if I must insert something in CLASSPATH?

Thanks again.
 
Marcin Zduniak
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, I remember that I download also:
kxml2 and xmlpull to make ksoap2 working correctly.

Regards.

Originally posted by antonio rodriguez ayuso:

You know if I must insert something in CLASSPATH?

[ June 14, 2005: Message edited by: Marcin Zduniak ]
 
antonio rodriguez ayuso
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello again.

I have copied librarys in <home_toolkit/apps/MyClient/lib>, and have updated CLASSPATH, but I obtain errors such:

C:\WTK23\apps\clientMobile\src\clientMobileMIDlet.java:6: package org.ksoap does not exist
import org.ksoap.*;
^
C:\WTK23\apps\clientMobile\src\clientMobileMIDlet.java:7: package org.ksoap.transport does not exist
import org.ksoap.transport.HttpTransport;


Also I have copied librerys to other folders of <home_toolkit>.

Possibly the CLASSPATH problem. You can indicate to me like was your CLASSPATH?

Thank you very much by help me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic