Loading ...
Sorry, an error occurred while loading the content.

[soapbuilders] Accesing .NET service with SOAP::Lite client

Expand Messages
  • Khamesra, SandeepX
    For some reason I am not able to pass my parameter value to web service written in .NET is it a known problem or I am missing some thing. I am attaching my
    Message 1 of 1 , Apr 30, 2002
    • 0 Attachment

      For some reason I am not able to pass my parameter value to web service written in  .NET is it a known problem or I am missing some thing.

      I am attaching my code here

      There are 2 client code in perl which call the same web service..Both of them are giving the same problem..I have seen the wiredump the value is being passed correctly from SOAP:Lite

      ------------------------------------------------

      #!/usr/bin/perl

      use SOAP::Lite;

      # simple object interface

      my $s = SOAP::Lite

      ->uri('http://tempuri.org/')

      -> proxy('http://12.12.33.99/rms/HelloWorld.asmx')

      ->on_action(sub{join '',@_})

      ->on_debug(sub{print@_});

      $result = $s ->SayHelloWorld(SOAP::Data->name('hsoID' => 'yahoo'));

      print $result ;

      --------------------------------------------------------------------------------------------------

      --------------------------------------------------------------------------------------------------

      #!/usr/bin/perl

      use SOAP::Lite;

      my $string = SOAP::Data->name('hsoID' => 'Sandeep')->uri('http://tempuri.org/')->type('string');

      # using WSDL

      my $s = SOAP::Lite

      -> service('http://12.12.33.99/rms/HelloWorld.asmx?WSDL')

      ->on_action(sub {join '',@_})

      ->on_debug(sub{print@_});

      $result = $s->SayHelloWorld($string);

      print $result , "\n";

      -------------------------------------------------------------------

      here is the web service code

      --------------------------------------------------------------------

      <%@ WebService Language="C#" Class="HelloWorld" %>

      using System;

      using System.Web.Services;

      public class HelloWorld : WebService {

      [WebMethod] public string SayHelloWorld(string hsoID) {

      string str = hsoID;

      return str;

      }

      }

      ------------------------------------------------------------------------

    Your message has been successfully submitted and would be delivered to recipients shortly.