Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / April 2005

Tip: Looking for answers? Try searching our database.

Assistance Making SOAP Calls to Remote PHP Host

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TC - 07 Apr 2005 20:11 GMT
Hello,

I am trying to make some SOAP calls from within a Windows Forms app using
C#.  Previously, these calls were used in VB6 using the SOAP SDK.

For example, let's say that I have the following URL for my SOAP calls:

      http://mysoapsite.com/mysoapsite/soap.php

I wish to call a SOAP method named:

      create_user

and I have 4 text elments that I wish to send named:

      username
      password
      firstname
      lastname

Can someone please provide a sample of how it is done in .Net?  If you have
your own simple sample, that's obviously fine too.

Thanks & Regards,

TC
SA - 07 Apr 2005 20:37 GMT
TC:

The first thing to try is to *not* use WSE if you don't need the WS-Security
and other standard specs that it provides. For simple SOAP calls, the
standard .NET way should do just fine.

In any case, even with WSE, obtain the WSDL of the service and let VS.NET
generate the proxy classes for you. That is the easiest way. It's not
guaranteed to work, because Interop unfortunately is not always smooth.

Once you have generated the proxy classes, you can call the web service just
like you call any other local object.

HTH,

Signature

Sven.

> Hello,
>
[quoted text clipped - 22 lines]
>
> TC
TC - 07 Apr 2005 21:12 GMT
Hey Sven,

You are a savior!

It is soooo much easier to make SOAP calls under .Net.

Wow!

Thanks for the tip.  It totally put me in the right direction.

Regards,

TC

> TC:
>
[quoted text clipped - 40 lines]
>>
>> TC
TC - 13 Apr 2005 08:09 GMT
Hey Sven,

I am now having trouble reading the results of SOAP methods.  Any advice?

Basically, when sending to the server, the following works great:

        MySoap.MethodName(arg1, arg2);

However, let's say that I need to read the result or an XML file that is
returned?  Then what?

I've seen some samples that using all of the following:

       HttpWebRequest, ISoapMessageSerializer, XmlTextWriter, StreamWriter,
HttpTransport and SoapMessage

Is this because I need to use RPC/encoded message.  Why wouldn't I have to
use this with all messages?

Regards,

TC

> Hey Sven,
>
[quoted text clipped - 55 lines]
>>>
>>> TC

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.