Re: SOAP::Lite format
Jonathan Stowe <[email protected]> Sat, 29 Mar 2003 11:59:59 +0000
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 26 Mar 2003, Chung wrote:
> Thank you for your advance, Scott Seely
>
> I modify my program as below:
> ********************************************************
> use strict;
> use SOAP::Lite +trace => 'all';
>
> my $code = "A0003";
> my $service = SOAP::Lite
> ->service('http://XXXXXXX.com/WebServices/Demo/demo.asmx?wsdl');
> my $result = $service->getPrice($code);
>
> print $result->{Id}, "\n";
> print $result->{Date}, "\n";
> print $result->{MM}, "\n";
> print $result->{Price}, "\n";
> print $result->{session}, "\n";
> ********************************************************
>
> But the result also incorrect . >_<
>
An alternative to that suggested by Scott might be that you should supply
the SoapRpcMethod Attribute to the getPrice() method in your C# code: e.g.
[SoapRpcMethod]
[WebMethod]
public <whatever> getPrice(<whatever>)
{
}
.Net webservices by default use document literal encoding as I
understand it.
See also http://tinyurl.com/8edn for more on this stuff.
/J\
--
Jonathan Stowe |
<http://www.gellyfish.com> | This space for rent
|
===================================
This list is hosted by DevelopMentorĀ® http://www.develop.com
You may be interested in Guerrilla Web Services .NET, 14 April 2003, in Torrance, CA
http://www.develop.com/courses/gwsdotnet
View archives and manage your subscription(s) at http://discuss.develop.com