473,512 Members | 15,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4164
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
7213
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
2403
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
2578
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
9775
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
2858
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
6108
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
2107
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
2786
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
1620
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
4078
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
7252
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7371
Oralloy
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,...
0
7432
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...
1
7093
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
7517
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
3230
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...
0
1583
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 ...
1
791
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
452
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.