How To Call WCF Http Service Behind SiteMinder

Mar 10, 2011

I am trying to call WCF 4 Http Web Services which are hosted within an ASP.NET application. The Service is protected behind SiteMinder.

I was wondering how I could programmatically call the web service, and more specifically what information will I need to pass to be authorized within SiteMinder to access my resources.

I am making the request from the ASP.NET application running on the same server, so I have access to the authentication cookie.

View 1 Replies


Similar Messages:

AJAX :: Add Http Header When Use Call Web Service?

Aug 4, 2010

I have one ajax call web service, and want to add some http headers using javascript, can we do that use setrequestheader in ms ajax?This is my javascript

[Code]....

[Code]....

View 3 Replies

Jquery - Why 3 Extra HTTP Requests Are Done If You Use Ajax Call To A .net Web Service

Apr 4, 2011

When I was reading the blog Using jQuery to Consume ASP.NET JSON Web Services

I have seen this argument:

"By using jQuery to call the web service directly, we've eliminated over 100 KB of JavaScript and three extra HTTP requests. "

Why does the ASP.NET AJAX call to a .NET Web-Service needs 3 extra HTTP requests? What are those requests? (I wonder how jQuery manages the call with lesser HTTP requests in this case).

View 2 Replies

How To Pass Through Http Call With HTTP Handler

Jan 4, 2011

Background:

We are using the Facebook API and receive back URLs for profile image thumbnails. Unfortunately the protocol is restricted to just HTTP and it doesn't support HTTPS. The page on our site that hosts the thumbnails is always delivered via HTTPS, and if we use HTTP for the thumbnails the user will receive security warnings from their browser.

Solution:

Build an HTTP Handler that "passes through" the image from the Facebook URL, but allow the handler to be called via HTTPS. Before I started coding I thought I could something like this:

Response.OutputStream = WebRequest.Create(FacebookUrlForThumbnail)

but I ended up having to save the image to an object in memory than write the image to the Response.OutputStream using the image save function.

Current Code:

[Code]....

This seems inefficient but I can't find a way of using the HTTP Handler as I orginally intended. Is there way of accomplishing the goal without creating the image memory and just "passing through" the call?

View 3 Replies

Security :: SiteMinder Authentication - Redirect From One Application To Another?

Jun 4, 2010

I have a web application that is using siteminder for authentication.

I want to redirect to application that is siteminder enabled. This application might be using site minder forms authentication.

What parameters i need to pass to that application? And what details i will need of that application.

View 1 Replies

WCF / ASMX :: How To Call Synchronous Service Call For Combo Boxes

Mar 29, 2010

How to call Synchronous service call for combo boxes? As I know Synchronous calls do not create a good user experience because the application is hung waiting for the Web service call to return. Then it is my requirement.

View 1 Replies

Possible To Call An Web Service On Private Corporate Network From Web Service Located In Dmz

May 18, 2010

whether its possible to call an web service on a private corporate network from a web service located in a dmz?

View 2 Replies

WCF / ASMX :: How To Call Web Service Hosted In Window Service And Having End Point Over Tcp

Aug 4, 2010

i have created a normal web service and i want to host it outside IIS. one idea i got is to use window service as hosting environment. i have created a web service and hosted it window service and its window service is running now.would anybody please let me know that how can i call web service hosted in window service binded over soap.tcp. here is my sample code.

[Code]....
[Code]....

View 1 Replies

Security Risk With Internal HTTP Call?

Apr 21, 2010

Is there a security risk if an application called page.ashx called internal only page.ashx, can a hacker conclude that another page is called.I don't want anyone to access this page. it looks stupid I know, but it is a part of more complex problem.

View 3 Replies

WCF / ASMX :: HTTP Post To Web Service?

Sep 16, 2010

have a web service that I'm trying to consume from a console app through http post. I receive a 500 exception error from the xmlstring parm being passed to the web service. Add the following to web.config of the web service. Although it is not working in debug in vs 2008 as well.

[Code]....

[Code]....

[Code]....

the host file is setup for the web service as well.

[Code]....

View 6 Replies

Upload File To ASP Web Service With HTTP / 1.1 POST

Mar 23, 2011

I'm trying to upload a file to an ASP 2.0 web service through HTTP 1.1 POST from a client-side application. If my web service function is declared as

<WebMethod()>
Public Function UploadFile(ByVal file as Byte(), ByVal fileName as String) as String
...

The test form says the request should take this form:

POST address_of_service HTTP/1.1
Host: <host>
Content-Type: application/x-www-form-urlencoded
Content-Length: length
file=string&file=string&fileName=string

How do I get my binary file data into that form? I've tried just converting the file data to a string and putting it in the body (file=<string_data_here>) but I get HTTP 500 errors back, complaining about not being able to convert it to System.Byte. I've got HTTP POST working fine elsewhere in my application with plain string parameters. Also, out of curiosity, why is it showing the file parameter twice?

View 1 Replies

HTTP Connection Be Passed From IIS / ASP To Another Application Or Service?

Dec 20, 2010

I'm looking into building an ASP.NET MVC application that exposes (other than the usual HTML pages) JSON and XML REST services, as well as Web Sockets. In a perfect world, I would be able to use the same URLs for the Web Sockets interface as I do for the other services (and determine which data to return by what the user agent requests) but, knowing that IIS wasn't built for persistent connections, I need to know if there's a way that I can accept (and possibly even handshake) the Web Sockets connection and then pass the connection off to another service running on the server. I do have a workaround in mind if this isn't possible that basically involves using ASP.NET to check for the Web Sockets connection upgrade headers, and responding with a HTTP/1.1 302 Found that points to a different host that has my Web Sockets service configured to directly listen to the appopriate endpoint(s).

View 4 Replies

WCF / ASMX :: Connecting To Web Service Via Http Post?

Jul 22, 2010

My web service uses .Net Framework 2.0. An e-learning application reads and updates an Access database in the web service via Http Post commands. I test the e-learning application and the web service using the version of IIS 7 that came with Windows Vista. I run IIS using localhost in my browser.

All works well. But a friend is having trouble running the same test with my files on her IIS 6 server. So I'm developing a checklist of issues in setting up an IIS 6 server to run a web service. I plan to include all possible causes of problems including permissions, accounts that are needed, etc. Are there resources to which I can go for this checklist?

View 1 Replies

AJAX :: Http 417 Error While Calling A Web Service?

Apr 20, 2010

i got a this exception when i calling my web service in producction server.i already test the web service in server side and this don't have problemasbut when i calling the web service in the development site this throw a

(spanish)"Error de la solicitud con el código de estado HTTP 417: Expectation failed." or
(english)"The request failed with status code HTTP 417: Expectation failed."

View 3 Replies

Web Forms :: Service Unavailable - HTTP Error 503

Aug 18, 2015

I have hosted asp.net  application on bigrock hosting server . sometimes i am getting error . how to solve it ?

View 1 Replies

Is It Possible To Call Aspx Page Via HTTP Endpoint In SQL Server 2008/2005

Nov 22, 2010

Is it possible to call (Post to) a Method in a ASPX (Code behind) page via HTTP endpoint in Sql server 2008/2005.

View 1 Replies

WCF / ASMX :: Create Web Service With Http-post Method?

Sep 22, 2010

we need to expose a web service to the 3rd party vendor which can only call using POST protocol, NOT SOAP.So my question, is it better to build a web service or just simply .aspx page?Also is there any best practice documentation on this.

View 4 Replies

WCF / ASMX :: Read Http Custom Header From Web Service?

Oct 5, 2010

cant read http custome header "MSISDN" from my web service ... same code works on regular asp.net page. Can anyone shade a light on that subject ?

View 2 Replies

WCF / ASMX :: Catch Web Service Generated HTTP Traffic?

Jun 28, 2010

I am after a tool that allows me to catch HTTP traffic on my local machine that is generated through web service calls. I have tried Fiddler, but it doesn't seem to catch my web services that are sent via...

[Code]....

Maybe fiddler can be set up to allow this, I am not sure :-s If anyone knows, can you explain, or if anyone has used a tool on their local machine that can catch HTTP request/responses from the above code?

View 1 Replies

WCF / ASMX :: The Request Failed With Http Status 401 Unauthorized. Web Service?

Mar 16, 2011

I am trying to call webservice from my web application. The web application had integrated windows authentication. I've written custome principal class to do authorization. But when I give call to my web service with default credentials it gives me 'the request failed with http status 401 unauthorized.' error.

When I give call to my local webservice it is running fine (It also has integrated windows authentication) But when I add reference of same web service from QA server I am getting this error. Not sure what is happening. I also tried

WS.PreAuthenticate = false;
WS.Credentials = System.Net.CredentialCache.DefaultCredentials;

View 2 Replies

Mobiles :: How To Access Both Http And Https (with Invalid Certification) Php Web Service

Dec 13, 2010

I am new to windows Phone 7 application. Here is my requirment that follows,

1/ I have web service created in php using http. (ex: http://abc.com/allservices/api.php?Task=getData&Email=ab1@abc.com&Password=1234)

2/ if i call that url i can get response in xml foramt.

3/ if I type this url in browser adddress bar with changes the http to https. the browser ask me to continue with this url. If i click this i can get the same response in xml format with certification error.

4/ once again i do the same step, this time the browser don't ask me to continue. I don't why.

5/ From my Windows Phone 7 application is working fine when I use http.

6/ If i change the url http to https I want to get the same xml.

7/ But i get only Server Not Found exception .

8/ Is there any posible way can I acess the web server using Https with Certification error..

View 1 Replies

C# - IIS 7.5 Configuring Website To Support Http - Net.pipe To Invoke WCF Service?

Nov 11, 2010

In IIS 7.5 i configured my asp.net website for "http,net.pipe" in "Enable protocols".

Note:

net.pipe configuration is done to call another module within the website (SOA). Every thing worked fine with simple asp.net & net.pipe service invocation calling other module. But When i try to call RIA service from silverlight 4 i get the following error

The provided URI scheme 'net.pipe' is invalid; expected 'http'.
Parameter name: context.ListenUriBaseAddress

How can i configure my website to work in http & net.pipe configuration ?

View 1 Replies

Is It Possible To Manually Send HTTP Code 40x To Client From Web Service Method

Jan 13, 2011

I would like to manually send an HTTP 40x error code to client from a web method in c# asp.net web service.

Specifically I need to send 400 (Bad request) or 401 (Unauthorized).

I was thinking about the flow to look like:

if (a <= 0)
{
//send HTTP Error 400 - Bad request to client
return;
}

Is it possible? How?

View 1 Replies

Setup Wcf Service For Http And Https And Also Add Username / Password To Its Access?

Oct 25, 2010

I am kinda new to WCF and the setting up of service and have 2 questions. My first question I have a service that will be accessed via https on a web server. However locally on my local IIS7, it will be accessed via http as https is not available. How can I set up a service to be accessed by both?

My second question is regarding how I can set up a service that requires a username and password to be accessed. The service that I have in place I dont want methods within it to be accessed unless the calling application has the rights to do so?

Here is an example of the relevant area of my web.config file.

<system.serviceModel>
<bindings>
<webHttpBinding>
<!-- standard AJAX binding that supports SSL -->
<binding name="TransportSecurity">
<security mode="Transport" />

[Code].....

In this config, the service is set up for http only and not username/password applied to it.

View 1 Replies

WCF / ASMX :: HTTP Error: 404, When Attempt To Access Service HTTPS On Different Port?

Feb 9, 2010

we have a situation where we need to host two certificates on the same server and because we can't have two different certificates on the same server running off the same port we have assigned one certificate run through another port, which is 4443.

So the URL to our web app is now....

[URL]

If I punch this into a web browser I can access it fine, however, if I create a web reference using this URL in Visual Studio (2005) it can create the web reference fine and it builds ok. But whenever I call a web method on this service instance I get a HTTP 404 page not found Exception.

Is there any properties I need to set on the web service object to get this to work? I'm confused as to why it's not working.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved