Skip to Content
author's profile photo Former Member
Former Member

While Consuming a WebService in JSP Dyn Page - There is an Error

Hi Friends,

I have a web service created in ASP.NET web Service.

And I have Consumed the Web Service using WSDL URL.

I need to write a code to refer that class in the JSP DynPage

I have created like this in DoIntialization

MyServiceName obj=(MyServiceName) PortalRuntime.getRuntimeResources().getService(MyServiceName.KEY);

int a = 10;

int b = 20;

obj.Add1(a,b);

but it shows an error

"The method Add1 Method(Add1 Method) is the type. MySErviceName is not Applicable for the arguements(int,int)"

Please Help me in this regard.

Thanks in Advance

Thanks & Regards,

Palani

Add a comment
10|10000 characters needed characters exceeded

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 11:15 AM

    Hi,

    Check the argument type of method Add1( ) in webservice. It may not belong to type of int.

    hope this helps.

    Rds,

    Shanthakumar.

    Assign points for useful answer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 11:12 AM

    hi..

    I cant sure, but try like this..

    MyServiceName obj=(MyServiceName) PortalRuntime.getRuntimeResources().getService(MyServiceName.KEY);

    int s=obj.Add1(10,20);

    print the <b>'s'</b> value

    regards,

    Chinnadurai R

    [points r welcome]

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      Thanks for you reply.

      But here the Problem is,

      While calling that Add1 method, we are receiving that error.(Refer to Post1).

      Please Let me know the solution for this.

      Thanks & Regards,

      Palani

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 11:59 AM

    Hi,

    check the arguement type in obj.Add1(<b>a,b</b>). whether it is (int,int) or (Add1 method). check that and let me know.

    Rds,

    Shanthakumar.

    Assign points for the helpful answers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 12:46 PM

    Hi,

    obj.Add1(Add1 parameters) --> arguements are not int type. so u cannot give int values.

    first publish the WSDL file. and use that published WSDL file.

    I think u will not get error by doing this.

    let me know whether it works or not.

    Rds,

    Shanthakumar.

    Assgin points for helpful answer

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ShanthaKumar,

      No the arguements are of int type only.

      When we used it in ABAP and .NET it shows like this add1(int a, int b) in intellisense.

      Whether this will change to java.

      If we cannot give int values then tell me what values we can give.

      Please let me know how to publish a WSDL file.

      Rgds,

      Palani

  • author's profile photo Former Member
    Former Member
    Posted on Sep 06, 2007 at 01:20 PM

    Hi,

    you have to publish/deploy .Net webservice on webserver (IIS). Only then you would be able to access it using URL.

    Once the web service is available and accessible using URL (eg. http://yourserver/mywebservice.asmx?wsdl) then you can consume it from any other external application.

    Rds,

    Shanthakumar.

    Assign points for helpful answer.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Palani,

      Even i have the same problem.

      Did you get any solution for your problem, Please share it with me.

      I have method called GetList(), It doesn't take any parameters at all.

      But when try to check it even in web service checker it is asking for input parameters of type Getlist.

      I dont know why it is asking like that?

      Any Ideas?

      Regards

      Bala

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 03:05 PM

    Hi Palani,

    Even i have the same problem.

    can you please tell me, how you resolved it?

    Regards,

    Bala

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 18, 2008 at 06:26 PM

    you just put a new instance of type that show in help screen of nwds.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.