Hi, I need to call a CGI script which should be a web service from .NET environment.
I got an example in perl but I'm unable to trasform it into .NET (C#). Can anybody help me with this? -
use SOAP::Lite;
-
-
die "Usage: perl call-ws.pl file.xml\n" unless $ARGV[0];
-
open F,$ARGV[0] || die "Could not read file $ARGV[0]\n";
-
my $val ="";
-
while (<F>) {
-
$val.= $_;
-
}
-
close F;
-
-
$val = SOAP::Lite
-
-> proxy('http://212...../Xml/external.cgi')
-
->outputxml('1')
-
->uri(AdXML)
-
->XMLrequest("domain?", "username", "password", $val);
-
-
sub SOAP::Transport::HTTP::Client::get_basic_credentials {
-
return 'username' => 'password';
-
}
-
-
-
$val =~s/>/>\n/g;
-
$val =~ s/\&/\&/g;
-
$val =~ s/\</</g;
-
$val =~ s/\>/>/g;
-
-
print "Server response =$val\n";
-
Thanks
0 1025 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Nick |
last post by:
Hi there,
I despearately need to get IIS working with ASP.NET, but I still can't
see any "Web Service Extensions". My previous question regarding this ended
in the decision to uninstall .NET Framework 1.1 then reinstall,
unfortunately this seems to have done nothing.
I've tried calling aspnet_regiis in a number of ways but that seems to
do nothing either, even though it says that uninstallation and installation
completes...
|
by: samadams_2006 |
last post by:
I'm trying to get a simple VB.NET "Web Application" (not a regular
application) to work with an Access Database. Seems simple enough, but
I cannot seem to get it working. If anyone has a simple example that
they can send me it would be very much appreciated. Drop me an email
at: samadams_2006@yahoo.ca
Thanks...
|
by: sham |
last post by:
Hi to all,
Sorry for the repost. I asked this question about 2 weeks ago and I have had
no reply. I tried on the IIS group, but still no luck.
Basically, we have a web service that has now been re-written using Asp.net.
The old web service calls were made using :
http://MyCompany/soap/NewsService (i.e. without any extension).
What I need to do is "redirect" http://MyCompany/soap/NewsService to
|
by: Ken |
last post by:
Hello- I am following this article to publish a Crystal Report, inside
a VS.Net project, as a web service -
http://msdn2.microsoft.com/en-us/library/aa288396(VS.71).aspx
When I right click on the Crystal report I find that the "Publish as
Web Service" option is missing. Do I need to install a VS.Net
component to make this option available?
Any clues on other ways to generate the asmx file to create a publish
the crystal report as a web...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |