473,715 Members | 4,902 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Updating Post and Get WSDL HTTPS

Hello,

I am working with dynamically created WSDL's and I need to change the
transaction urls from http to https in the WSDL without redirecting customers
to a different location. (I'm using vs 2003) I was able to find helpful
information about the soapExtensionRe flector that works great for the Soap
calls http://forums.asp.net/thread/1160212.aspx

But I need the same sort of fix for the Post and Get transactions and there
doesn't seem to be anything like the SoapExtensionRe flector or the necessary
Web.config tags to direct the web service (soapExtensionR eflectorTypes)

thanks,
--
Duffman

can't get enough of that wonderful Duff
May 18 '06 #1
4 3478
Hello Duffman,

Welcome to the MSDN newsgroup.

From your description, you're using the SoapExtensionRe flector derived
class to customize the ASP.NET webservice's autogenerated WSDL document.
You've been able to change the soapbinding's service address from "http://"
to "https://", however, that didn't work for http protocol specific
bindings (GET or POST), correct?

Based on my research, behavior you met is due to the design of the
SoapExtensionxx x components, they're used to customize Soap protocol
specific service description elements. So in the SoapExtensionRe flector's
override methods, the "ServiceDescrip tion" instance we get doesn't contains
any non-SOAP protocol related elements (such as httpGET or httpPOST...). We
can verify this by flushout all the serviceDescript ion content in the
method:

=============== =============== ==============
public class HttpsReflector : SoapExtensionRe flector
{
public override void ReflectMethod()
{

StreamWriter sw = new StreamWriter("d :\\temp\\log_rm .txt",
false, Encoding.UTF8);
ServiceDescript ion description =
ReflectionConte xt.ServiceDescr iption;
sw.WriteLine("* *************** *************** **");

XmlTextWriter xtw = new XmlTextWriter(s w);

description.Wri te(xtw);

sw.Close();
}
=============== =============== ===

This makes the existing ServiceDescript ion extension components unable to
customize the "http" binding's WSDL elements.

BTW, as for httpGET or httpPOST, they're non-WSDL standard binding
protocols, just for simple test through webbrowser. And generally
client-side proxy generation tool (like the wsdl.exe in .net framework ...)
won't take care of it. Therefore, if you do not use this protocol in your
client-server application, we can hidden its service description through
the <protocols> setting , like:

<webServices>
<protocols >
<remove name="HttpGet"/>
</protocols>
In addition, another optional currently available is completely replace the
WSDL document page with our own custom page through the
"wsdlHelpGenera tor" element , like:

<system.web>
<webServices>
<wsdlHelpGenera tor href="docs/MyServiceHelpPa ge.aspx"/>
</webServices>

Thanks & Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

May 19 '06 #2
Hi Duffman,

How are you doing on this issue or does the information in my last reply
helps a little? If there's still anything we can help, please feel free to
post here.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
May 24 '06 #3
Hello,

We were able to get a work around that handled most of the problem. Rather
than use the SoapReflector we put together an http module that intercepts
requests for the wsdl and disco files and searches for the http to locations
and changes them to https. This worked great for setting and updating web
references and post/get transactions.

The only unresolved issue is that the auto generated test page for each
transaction builds a post request to the http location rather than the https
location.

thanks,
--
Duffman

can't get enough of that wonderful Duff
"Steven Cheng[MSFT]" wrote:
Hi Duffman,

How are you doing on this issue or does the information in my last reply
helps a little? If there's still anything we can help, please feel free to
post here.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights

May 24 '06 #4
Thanks for your followup Duffman,

Glad that you've implemented such a bright workaround :-). As for the test
page, it does become a pain in your case since the test page's postback is
processed by the ASP.NET's internal SyncSessionless Handler class(derived
from WebserviceHandl er...). This class use the internal Protocol
class(specific to httpGet or POST) for test page's method invokation and so
far the framework hasn't provided extension points for us.

Anyway, if there is anything else we can help about webservice developing,
please feel free to post here.

Regards,

Steven Cheng
Microsoft Online Community Support
=============== =============== =============== =====

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
May 25 '06 #5

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

Similar topics

1
2427
by: easoft | last post by:
Hi I have a problem, I have a wsdl file, I try this import(c#) -> error. but this file is good in wsdl to php, and wsdl to java
1
6400
by: billa1972 | last post by:
Hi, I am trying to hook into Yellow Freight's rating webservice. Below is the wsdl. When i try and create a proxy file with wsdl.exe i get the following errors, see below. Also, when i reference this wsdl in .NET it seems to do it fine, yet there are no objects to reference except RateQuoteBeanService. In the WSDL it looks like there should be getRateQuote, and QUOTEREQUEST, etc.
14
2953
by: el_sid | last post by:
Our developers have experienced a problem with updating Web References in Visual Studio.NET 2003. Normally, when a web service class (.asmx) is created, updating the Web Reference will utilise the disco file to update the Corresponding proxy file and reflect the changes made to the web service. However, the results of doing this with out params is that the results seem
3
20065
by: GavinM | last post by:
I have the same question as andreas.w.h.k asked on 1/5. Our configuration is as follows: The client must use the URL https://clustername.xyz.com/webservice.asmx to access this web service. clustername.xyz.com resolves to a virtual IP address on a hardware load balancer which is listening for requests on port 443.
4
3419
by: WebDev2 | last post by:
I have a web service created via Visual Web Developer Express Edition on a IIS Server with .NET 2.0 installed. The test page displays just fine when the URL of the .asmx page is entered into a browser i.e. "http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx" The WSDL displayed when accessing the .asmx via http://www.mydomain.com/Extranet/WebServices/TestWebServ.asmx?wsdl file has the wrong address location. It displays ...
0
1803
by: jewelstone | last post by:
Hi guys, Here's the thing. On one server (Oracle iAS 10.1.2.0.2), let's call it A, we have an application, ssl is configured on this app. server, so we access the application via https. On another server (Oracle iAS 10.1.2.0.2), let's call it B, we have a web service, wsdl. We want server A to access server B via SSL, and that server B will know that it was server A that approached it. On server A we have a certificate, whose purposes are -...
3
32149
by: John K | last post by:
I am trying to eliminate the capability of displaying the details of a web service by disabling WSDL generation in the web.config file. I have made the following changes to the web.config: <webServices> <wsdlHelpGenerator href="helpPage.aspx"/> <protocols> <remove name="Documentation" /> </protocols> </webServices>
2
4061
by: Andrew Robinson | last post by:
I need to make a web service call using an HTTPS POST. XML data is returned in the body of the HTTPS reply. What is the best way to do this with asp.net web services? I am very comfortable in the world of asp.net and C# but have done nothing with web services or XML. My first incling is to stream an XML document to an HTTP Request object and then stream the response back to an XML document but guessing there is a better way? Thanks,
0
1974
by: g-forsmo | last post by:
Hi! I am trying to implement a web service after a wsdl generated from BEA Web logic. I have used a tool called WSCF - Schema-Based Contract- First Web Services to generate a web service from a given wsdl. That works, but when I test my web service I can't get the right port name and binding as in the wsdl from Web logic. When opening a web browser and write...
0
8821
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9340
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9196
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9103
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6646
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4738
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3175
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 we have to send another system
2
2539
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2118
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.