×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    3

    Error in WSDL Stub Generation for Java using WTK 2.5.2

    Ladies and Gentlemen,

    I have a webservice on the internet that is unsecure (HTTP) and I can access it using Visual Studio (Add Web Reference) or Java by generating stubs using Netbeans .. no problem with that at all.

    The problem comes when I want to generate stub java for J2ME. I use the "Stub Generator" utility that comes with Sun's Wireless Tool Kit 2.5.2 but I always get a stub generation error as shown in the attached files.

    Can you kindly suggest whether I should:
    - modify WSDLs (somehow) so the Stub Generator can generate stubs without problems.
    - Use another stub generator (for J2ME) other than the one that comes with WTK 2.5.2

    in either case please suggest how?

    P.S. As a workaround, I tried to generate stubs with Netbeans for a normal J2SE application and it generated successfully .. however, when I tried to use them in J2ME, the preverifier complained that (java.util.List) and other J2SE type that aren't available in J2ME are used in the compiled stubs .. so it didn't work.

  2. #2
    Registered User
    Join Date
    Mar 2009
    Posts
    3

    Re: Error in WSDL Stub Generation for Java using WTK 2.5.2

    The Error message says (Stub Generator Error):

    Stub Generation Failed
    warning: ignoring port "SessionManagerClientSoap12": no SOAP address specified
    warning: ignoring port "SessionManagerClientSoap12": no SOAP address specified
    error: the following naming conflicts occured: SessionManager.LogonResponse_Type

  3. #3
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Error in WSDL Stub Generation for Java using WTK 2.5.2

    Hi there,

    "P.S. As a workaround, I tried to generate stubs with Netbeans for a normal J2SE application and it generated successfully .. however, when I tried to use them in J2ME, the preverifier complained that (java.util.List) and other J2SE type that aren't available in J2ME are used in the compiled stubs .. so it didn't work."

    If you use NetBeans Mobility Pack, you can generate the right stubs for Java ME with no problems (JSR-172).

    http://www.forum.nokia.com/Resources...NetBeans.xhtml

    Creating a Java ME Web Services (JSR-172) Client
    http://www.netbeans.org/kb/55/quickstart-mobility.html

    Give it a try!

    Best,
    Juarez Alvares Barbosa Junior - Brazil

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    38

    Re: Error in WSDL Stub Generation for Java using WTK 2.5.2

    Hi,

    I also have error when I try to generate the stub from a WSDL file:
    Stub Generation Failed
    error: Operation insert parameter incident.business_stc is an invalid type: 'java.math.BigInteger'

    In the WSDL file, the business_stc's type is defined as integer:
    <xsd:element maxOccurs="1" minOccurs="0" name="business_stc" type="xsd:integer" />

    I should not modify the WSDL file because it's from a public web service, I don't think the WSDL file itself has any mistake.

    Could someone please kindly tell me what is wrong?
    I'm using eclipse, i cannot try the workaround of juarezjunior.

    Many thanks in advance.

  5. #5
    Registered User
    Join Date
    Sep 2009
    Posts
    38

    Re: Error in WSDL Stub Generation for Java using WTK 2.5.2

    Hello again,

    I tried NetBeans Mobility Pack to generate the stubs for Java ME, but I also got the error when NetBeans validate my wsdl file.
    The error is as follow:
    "Unsupported tag in element business.stc"
    It shows the same error with different elements, I can see that all these elements have the type "integer".

    Could some one please help me out of this?
    I really don't know what to do now ((((

  6. #6
    Registered User
    Join Date
    Sep 2009
    Posts
    38

    Re: Error in WSDL Stub Generation for Java using WTK 2.5.2

    For the update:

    If I change inside my WSDL file by replacing every 'integer' type by 'string' type, I can generate the Stub without any error.

    The question is: Why 'integer' cannot be accepted?

    Looking forward to your advise.
    Thank you.

Similar Threads

  1. How to integrate wtk 2.5.2 with Nokia S60 SDK?
    By hennry2000 in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2009-05-12, 17:21
  2. WTK 2.5.2 不能集成 Nokia S60 SDK的问题
    By hennry2000 in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 0
    Last Post: 2008-12-03, 10:04
  3. wsdl generation error
    By george0095 in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2008-12-01, 20:55
  4. Send SMS using WTK 2.5.2
    By somanna in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2008-10-13, 11:07

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×