473,397 Members | 2,084 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

SOAP - howto?

Hello,
at first - I'm newbie in C#, I came from the world of PHP.
In "my world" there is SOPA Client call wery simple and clear.
Something like this:

<?php
$client = new SoapClient("http://services.xmethods.net/soap/delayed-quotes.wsdl");

// getQuote is taken from WSDL specification
print($client->getQuote("ibm"));

?>

Does something like this exists in C#?

thanx
--
Mirek Novak
Nov 16 '05 #1
4 2660
Mirek,

Absolutely. You can use the WSDL.EXE utility on the command line,
passing it the URL of the WSDL file to create a proxy class you can call.
If you have VS.NET, then you can add a web reference (right click on the
references folder), enter the URL for the WSDL file, and it will create the
proxy classes and add them to your project.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"mirek" <mi***@auto.cz> wrote in message
news:e7****************@TK2MSFTNGP09.phx.gbl...
Hello,
at first - I'm newbie in C#, I came from the world of PHP.
In "my world" there is SOPA Client call wery simple and clear.
Something like this:

<?php
$client = new
SoapClient("http://services.xmethods.net/soap/delayed-quotes.wsdl");

// getQuote is taken from WSDL specification
print($client->getQuote("ibm"));

?>

Does something like this exists in C#?

thanx
--
Mirek Novak

Nov 16 '05 #2
Nicholas Paldino [.NET/C# MVP] napsal(a):
Mirek,

Absolutely. You can use the WSDL.EXE utility on the command line,
passing it the URL of the WSDL file to create a proxy class you can call.
If you have VS.NET, then you can add a web reference (right click on the
references folder), enter the URL for the WSDL file, and it will create the
proxy classes and add them to your project.

Hope this helps.


Well, thanx,

but what will happen, when WSDL changes? Should I create new proxy manually?

M.
Nov 16 '05 #3
Mirek,

If the WSDL changes, yes, you will have to create a new proxy. The
proxy is a way of creating strongly typed interfaces to the web interfaces,
so if you change the contract, you have to change the proxy. This is the
downside of strong-typing anything. You must abide by the contract.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Mirek Novak" <mi*********@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
Nicholas Paldino [.NET/C# MVP] napsal(a):
Mirek,

Absolutely. You can use the WSDL.EXE utility on the command line,
passing it the URL of the WSDL file to create a proxy class you can call.
If you have VS.NET, then you can add a web reference (right click on the
references folder), enter the URL for the WSDL file, and it will create
the proxy classes and add them to your project.

Hope this helps.


Well, thanx,

but what will happen, when WSDL changes? Should I create new proxy
manually?

M.

Nov 16 '05 #4
Thank you very much for your time.
Now I have to study WSDL :(
For PHP code, there is no such WSDL generator :(

M.
Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: bigbinc | last post by:
I have setup a soap machine on linux and similar configuration works properly. on a windows mahcine, I get these erros on the addressbook, samples, any ideas. I am pretty sure my classpaths are...
2
by: Artur | last post by:
Hi Newsgroup, im currently working on programming a asp.net application consuming an Webservice hosted on Apache/Axis. I have generated WSDL and Proxy classes from VisualStudio.net. But when...
8
by: xmail123 | last post by:
Hi, As was pointed out whatever you return from a WebMethod needs to be serializable to SOAP. An ArrayList is not serializable. I will be needing to return other data types from web methods. ...
4
by: MP | last post by:
Hi group, I got a problem, in the past I developed in Java a Servlet that just waits for a connection and when connected it does some things ;-) Nice isnt it. The same functionality I want to...
0
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
1
by: Gregor D. | last post by:
Hi, I want to consume an Apache Webservice with a C# .NET Client. Everything works fine, but I'm having problem with the deserialization of the complex type "Item" that is included in the...
2
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
1
by: dalh | last post by:
Hi all, I'm developing an asp.net app that connect to a webservice. - I've installed an P7k certificate in the IIS-website configuration. When running my code, I have following error:...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
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...
0
agi2029
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,...
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.