webservices and int mapping

Discussion in 'Java' started by vertigo, May 18, 2004.

  1. vertigo

    vertigo Guest

    Hello
    I have apache soap, as webservices serwer.
    Everyhing works fine, except methods which have int type
    as parameter or return value. When i try to run such
    method either from .NET client (thru WSDL) or
    java client (directly) i receive:

    Mypackage.Myclass.Test5(int) -- no signature match.

    Why ? What do i miss ?
    Here is my webservice server code:

    package Mypackage;

    public class Myclass {

    public String Test(String s)
    {
    return "Test successful";
    }
    public int Test2(String s)
    {
    return 0;
    }
    public String Test3(short i)
    {
    return "Test successful";
    }
    public void Test4()
    {
    return;
    }
    public String Test5(int i)
    {
    return "dsads";
    }
    public String Test6(long i)
    {
    return "dsads";
    }

    }
    Only method String Test(String) is working.

    and here is my descriptor:
    <isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
    id="UrnMyclass">
    <isd:provider type="java" scope="Application"
    methods="Test2 Test Test3 Test4 Test5">
    <isd:java class="Mypackage.Myclass" static="false"/>
    </isd:provider>
    </isd:service>

    on the server side everyhing compiles and deploys correctly.

    Could anybody help ?

    Thanx
    Michal
     
    vertigo, May 18, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Schnoffos
    Replies:
    2
    Views:
    1,221
    Martien Verbruggen
    Jun 27, 2003
  2. Hal Styli
    Replies:
    14
    Views:
    1,646
    Old Wolf
    Jan 20, 2004
  3. arun
    Replies:
    8
    Views:
    457
    Dave Thompson
    Jul 31, 2006
  4. aling
    Replies:
    8
    Views:
    958
    Jim Langston
    Oct 20, 2005
  5. Replies:
    9
    Views:
    436
    James Kanze
    Apr 17, 2007
Loading...

Share This Page