473,414 Members | 1,606 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,414 software developers and data experts.

SOAP Extensions

I have a simple SOAP Extension which does nothing but to log the SOAP message
to a file. This works fine when I use the webservice by adding a
webreference and using the class. However my application breaks when I call
the webservice using HttpWebRequest/HttpWebResponse. I tried setting
HttpWebRequest's contenttype to application/x-www-form-urlencoded and also to
SOAP. Could somebody please tell me where I'm going wrong?
Nov 23 '05 #1
3 4162
Hello techieTex,
You need to set the headers correctly for the http message for one...
setting SoapAction etc. Also content type should just be text/xml

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I have a simple SOAP Extension which does nothing but to log the SOAP
message to a file. This works fine when I use the webservice by
adding a webreference and using the class. However my application
breaks when I call the webservice using
HttpWebRequest/HttpWebResponse. I tried setting HttpWebRequest's
contenttype to application/x-www-form-urlencoded and also to SOAP.
Could somebody please tell me where I'm going wrong?

Nov 23 '05 #2
Hi Dilip
Thanks for the reply. My request properties are like this:
request = (HttpWebRequest) WebRequest.Create(url);
request.Method = "SOAPAction";
request.AllowWriteStreamBuffering = true;
request.ContentType = "SOAP";
request.ContentType="text/xml";
In this case I get this error: "The remote server returned an error: (501)
Not Implemented."

Could u please tell me how to set the headers properly.
"Dilip Krishnan" wrote:
Hello techieTex,
You need to set the headers correctly for the http message for one...
setting SoapAction etc. Also content type should just be text/xml

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I have a simple SOAP Extension which does nothing but to log the SOAP
message to a file. This works fine when I use the webservice by
adding a webreference and using the class. However my application
breaks when I call the webservice using
HttpWebRequest/HttpWebResponse. I tried setting HttpWebRequest's
contenttype to application/x-www-form-urlencoded and also to SOAP.
Could somebody please tell me where I'm going wrong?


Nov 23 '05 #3
Hello techieTex,
Request.Method can only be GET or POST

may need to add another header called SoapAction and set the value

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip
Thanks for the reply. My request properties are like this:
request = (HttpWebRequest) WebRequest.Create(url);
request.Method = "SOAPAction";
request.AllowWriteStreamBuffering = true;
request.ContentType = "SOAP";
request.ContentType="text/xml";
In this case I get this error: "The remote server returned an error:
(501)
Not Implemented."
Could u please tell me how to set the headers properly.

"Dilip Krishnan" wrote:
Hello techieTex,
You need to set the headers correctly for the http message for one...
setting SoapAction etc. Also content type should just be text/xml
HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
I have a simple SOAP Extension which does nothing but to log the
SOAP message to a file. This works fine when I use the webservice
by adding a webreference and using the class. However my application
breaks when I call the webservice using
HttpWebRequest/HttpWebResponse. I tried setting HttpWebRequest's
contenttype to application/x-www-form-urlencoded and also to SOAP.
Could somebody please tell me where I'm going wrong?

Nov 23 '05 #4

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

Similar topics

3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
6
by: Guest | last post by:
Hi, I unerstand that if you choose IIS to host your .Net Remotingcomponents with HTTP channel and SOAP formatter, you get thebuilt-in security and configuraion features of IIS. Also we canexpose it...
2
by: A.M | last post by:
Hi, Using an IIS/ASP.NET webservices and WinForms clients, Is there any way to spy SOAP interactions between client and server? I want to see the xml text of SOAP requests and reponses. ...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
3
by: Jon Paugh | last post by:
Hi, If I have two soap extensions, one to encrypt data, and the other to compress data, which should have higher priority on the client, and on the server? The information I have indicates...
8
by: Mark | last post by:
Hi... I used wsdl.exe to generate some wrapper classes from someone's soap web service, and I'm looking for some way to look at what the soap request packet actually looks like. The webservice...
6
by: A.M-SG | last post by:
Hi, We are developing a SmartClient application and we are planning to expose business objects layer to SmartClient application by using ASP.NET SOAP web services.
31
by: Bryan Dickerson | last post by:
Ok, simple question: from a VB.Net web service (as I've said before, I'm a newbie to SOAP), how would I get the SOAP body into a string? My boss and I concur that it, at least from our...
7
by: Andy Kendall | last post by:
Hi, This article states the following in relation to ASP.NET default test harness web pages. "These test pages can be used to invoke your WebMethods, but the test harness does this by making...
15
by: =?Utf-8?B?ZG91Zw==?= | last post by:
I hadn't had a class yet and I had some MS help on this to set up, but I wrote a .Net WS that creates a proxy class response using SOAP. Works fine. And in kind of a good way, the IDE has hidden...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
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
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...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.