You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andrew Smith <as...@smithdot.com> on 2004/01/28 20:20:12 UTC
simple c-sharp client for my axis web service
I have an axis message style web service that works quite well with perl
and java clients. I was hoping to get a c# client to test .net interop.
Any C# experts know the equivalent of the following perl code?
-----------------------
use SOAP::Lite;
use SOAP::MIME;
open (FILE, $ARGV[0]);
while (<FILE>){ $xml .= $_; }
$data = SOAP::Data->name('msg')->value($xml)->type('xml');
my $HOST = "http://uid:pw\@soapserver.com/SoapEndpoint";
my $NS = "http://soapserver.com/ns";
my $soap = SOAP::Lite
->outputxml(1)
->readable(1)
->proxy($HOST)
->uri($NS);
my $som = $soap->MessageStyleMethod($data);
print $som;