Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > .NET Web Services
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
.NET Web Services Discussions about .NET XML Web Service technologies including ASMX files, WSDL and SOAP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the .NET Web Services section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old January 20th, 2005, 10:53 AM
Registered User
 
Join Date: Aug 2004
Location: , , India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Posting SOAP request to third party vendor

hi
How can i send a POST request to a third party vendor.
Here we dont have provision to use webservice. So we have to post the SOAp request to a site where they will be processing it and send back the response. So how can i do this.
regards
finny

Reply With Quote
  #2 (permalink)  
Old January 21st, 2005, 07:44 AM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Take a look at this thread:

http://p2p.wrox.com/topic.asp?TOPIC_ID=23831

There is some code in there that might help you. It uses the System.Net.WebRequest class.

-Peter
Reply With Quote
  #3 (permalink)  
Old January 21st, 2005, 09:23 AM
Registered User
 
Join Date: Aug 2004
Location: , , India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi
I referred the given url and tried coding in on my own.
There are no provisions for posting SOAP request. I have pasted my endpoint url in "txturl" . Error is returned. Also i have also not posted my SOAP request.
So kindly clarify me.
Thanks

Reply With Quote
  #4 (permalink)  
Old January 21st, 2005, 02:39 PM
planoie's Avatar
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The important points are the use of the System.Net.WebRequest and System.Net.WebResponse classes. With that you could write anything that makes HTTP calls. What you put in the call is up to you. If you want to put together a SOAP request then you just need to structure the request text in the accepted SOAP format.

Here's something you could try...

Create a web service on your own system. Then create a project that has a web reference to that web service. Then look at the proxy/stub class that .NET generates from the WSDL and you'll see exactly has MS makes SOAP requests.

I'm curious: You have to create a SOAP request for this task, yet you say you "dont have provision to use webservice". I don't get it. Web services are based on SOAP. Doesn't that make the SOAP interface that they are providing a web service?

-Peter
Reply With Quote
  #5 (permalink)  
Old January 24th, 2005, 03:16 AM
Registered User
 
Join Date: Aug 2004
Location: , , India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi
Let me try to explain clearly.
Normally we will be referencing a WebService from a webApllication.
The webService(.asmx) file will be working on the input parameters obtained from the WebApplicatication and return the required response.
All these happens only through SOAP. Isnt it.

But here I dont have a Webservice to refer. The vendor has no webService. He is just having a plain site www.domainname.com/xml/xml.asp. He instructed us to send a SOAP request to this site and he will be replying with the SOAP response.

I hope so i have explained clearly. Kindly advice me in this regard.

Thanks
finny

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Vendor Code: -1024 Dmitriy ASP.NET 2.0 Professional 5 January 15th, 2008 08:49 AM
What is a SOAP Request ? mscanand .NET Web Services 1 August 4th, 2007 11:40 AM
Chapter 15, POSTing a SOAP message ;example on 579 kbrown BOOK: Beginning XML 3rd Edition 3 August 25th, 2006 05:23 PM
API SOAP request harpua PHP How-To 0 September 13th, 2005 10:21 AM
Reading XML datastream returned from vendor marabunta Classic ASP XML 1 September 8th, 2003 09:23 AM



All times are GMT -4. The time now is 12:50 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.