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

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 soapExtensionReflector 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 SoapExtensionReflector or the necessary
Web.config tags to direct the web service (soapExtensionReflectorTypes)

thanks,
--
Duffman

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

Welcome to the MSDN newsgroup.

From your description, you're using the SoapExtensionReflector 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
SoapExtensionxxx components, they're used to customize Soap protocol
specific service description elements. So in the SoapExtensionReflector's
override methods, the "ServiceDescription" 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 serviceDescription content in the
method:

============================================
public class HttpsReflector : SoapExtensionReflector
{
public override void ReflectMethod()
{

StreamWriter sw = new StreamWriter("d:\\temp\\log_rm.txt",
false, Encoding.UTF8);
ServiceDescription description =
ReflectionContext.ServiceDescription;
sw.WriteLine("*********************************");

XmlTextWriter xtw = new XmlTextWriter(sw);

description.Write(xtw);

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

This makes the existing ServiceDescription 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
"wsdlHelpGenerator" element , like:

<system.web>
<webServices>
<wsdlHelpGenerator href="docs/MyServiceHelpPage.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 SyncSessionlessHandler class(derived
from WebserviceHandler...). 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
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
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...
14
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...
3
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. ...
4
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...
0
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...
3
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: ...
2
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...
0
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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
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...

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.