WCF / ASMX :: Webservice With Repeating Parameters In Query String

Mar 3, 2011

I am consuming a web service in .aspx with a added web reference that links to http://www.webservicex.net/stockquote.asmx After this, I can get the result from
ebServiceX.StockQuote ws = new WebServiceX.StockQuote();String xmlString = s.GetQuote("XOM"); I am wondering how I can call the web service like GET, http://www.webservicex.net/stockquote.asmx/GetQuote?symbol=XOM+BAC

View 1 Replies

Similar Messages:

WCF / ASMX :: How To Pass The Parameters Into Webservice Method

Jan 4, 2011

i am working in the webservice project. I have one project when i run it then shows the text box for parameters and return the result after passing the parameters.

But another webservice does not allow me to enter the paramerters when execute then list of methods displayed and then show the soap xml when click at any method.

what difference found in both webserivces are Excuting-one that have the Text boxes: Test: "To test the operation using the HTTP POST protocol, click the 'Invoke' button."

2nd One Not provide the parameter text boxes: Test: "The test form is only available for methods with primitive types as parameters"

Dont know how to fix that. Because i want to debug the webservice and as i am unable to provide the parameter then how can i fix it.

how can i pass the parameters in the 2nd webservice as it has different information mentioned above.

View 1 Replies

WCF / ASMX :: Passing Parameters To Webservice Method?

Nov 13, 2010

i have the following method, however i want to pass methods to it, i know how to do it the usual way, however when it comes to Webservices/API's what is the correct way to do it. Here is my method so far;


View 1 Replies

WCF / ASMX :: Webservice Custom Objects As Input Parameters?

Nov 9, 2010

I have a fundamental question to ask about web services. I'm currently writing a service that has custom classes (lots of them). Let's say a car is one example. For some reason I was thinking that the service should expose these objects. However once I created a site to consume the service, it looks as though the classes are not meant to be exposed. It looks like the best practice is to take in a string which may be xml or not and convert that string into the object in the service code.(especially for error handling or input validation)

For example, if I had the web method:

public car getCar(int carId)
//code here to return car object

This will take a car ID and return a car object. It also shows all the elements in the SOAP request and response objects (as well as the WSDL) which can be to external developers. However, when trying to consume the service from a website (or reference it in my code), I then need access to the Car class (which implies i need to expose it through the services as well?).

View 5 Replies

WCF / ASMX :: Webservice Returns Xml As A String?

Nov 22, 2010

i work with visual studio 2005 and asp net 2.0 and i must to create a webservice who returns a xml as a string

this string must be use by an application java as i know ..

ok i can create the asmx and my web method who run a sql command BUT how i can return a xml as a string ?

View 3 Replies

WCF / ASMX :: Fill A String From A File In A Webservice?

Nov 11, 2010

I have a path to a file, say "~xsdFile.xsd".The content of this file I want to set into a string.

I use the following code:


The problem I get if I use this webservice twice in 10 seconds I get the following error: "Cannot acces files because another process is using it".

View 2 Replies

Configuration :: Passing Query String To Webservice?

Jun 10, 2010

I would like to pass a query string for example [URL]to my webservice below. I would like to get that "id" and pass it to the getmsg method.

public string GetChatMsg(string sGUIDParam)

View 8 Replies

C# - FormMethod - Get And Query String Parameters?

May 28, 2010

I am working on a website in asp.net mvc. I have to show a view where user put some search values like tags and titles to search. I want to use the same Index method for that. I have make my form to use formMehod.Get to send the parameters as querystring.

public ActionResult Index(string title, string tags, int? page)
if (string.IsNullOrEmpty(title)
return View(null);

View 3 Replies

Query String Parameters With No Values?

Jun 28, 2010

I am trying to set up a page that has two behaviors. I'm seperating them by URL: One behavior is accessed via /some-controller/some-action, the other is via /some-controller/some-action?customize. It doesn't look like the Request.QueryString object contains anything, though, when I visit the second URL...I mean, the keys collection has one element in it, but it's null, not 'customize'. Anyone have any ideas about this or how to enable this. I'd like to avoid manually parsing the query string at all costs :).

View 2 Replies

Web Forms :: How To ReturnUrl With Query String Parameters

Dec 29, 2010

I am trying to redirect the user to login page with ReturnUrl and with querystring parameters which are already in the url there.But it is getting only first querystring parameter and not others. here is the code:Response.Redirect("~/login.aspx?ReturnUrl="+Request.RawUrl);it is showing correct in login.aspx after redirect but not returning as per querystring parametersI ave also tried other methods e.g.:


View 2 Replies

How To Encrypt Query String Parameters In .NET Website

Jul 13, 2010

In one of my ASP.Net websites, I have to provide a link to the user in which all query string parameters should be encrypted.What I am thinking is to use the command "aspnet_regiis" (as used to encrypt web.config data), pass output as a query string inside published url.When the user clicks that link, I first decrypt the string and then fetch the original data for the query string.Am right in doing this? Is there any good technique to encrypt and decrypt query strings?

View 4 Replies

MVC :: Query String Parameters And View Model Fields?

Feb 15, 2010

i just noticed that if my controller has a parameter with a name that matches the name of a field in my view model, and the view emits the value of the model's field, the value emitted is that passed in the query string, not the one set by the controller. is this by design?

here is what i mean:

my view model:

public class MyViewModel
int id;
string name; [code]....

sending a request to "create?id=1234" emits "1234" in the hidden field instead of "1".

View 5 Replies

Web Forms :: Query String Parameters Make App At Risk?

Feb 1, 2010

I'm writing an Asp.Net WebForms app where I am calling an edit page an passing in the data about the record to be edited using query string parameters in the URL.Like:


On a previous page in the app, I have presented the user with a GridView of screened items he can edit based on his account privileges, and I call the edit page with these above parameter list, and the page know what to do.

View 6 Replies

Query String Parameters Make Application At Risk?

Feb 1, 2010

I'm writing an Asp.Net WebForms app where I am calling an edit page an passing in the data about the record to be edited using query string parameters in the URL.Like:http://myapp.path/QuoteItemEdit.aspx?PK=1234&DeviceType=12&Mode=EditOn a previous page in the app, I have presented the user with a GridView of screened items he can edit based on his account privileges, and I call the edit page with these above parameter list, and the page know what to do. I do NOT do any additional checking on the target page to validate whether the user has access to the passed in PK record value as I planned to rely on the previous page to filter the list down and I would be fine

View 7 Replies

Access File System Through Query String Or Parameters?

Feb 11, 2011

I have been given a task of reproducing the issue/testing the unauthorized access to file system through request.param and query string.

For instance i have something like this. request.querystring("blah");

How could somebody pass "../../../b1/b2" in the query string and access file system.

This may be related to cross site scripting.

View 1 Replies

Submit Repeating / Multiple Items To Stored Procedure Via Webservice

Mar 7, 2010

I am trying to what i think is an easy task, but so far i have came up empty.

What i want to do is take a repeating table on a form i have and submit the employee IDs to a database using a web service.

I know how to submit them one by one, but i am thinking there is an easier way to do this instead of send the value to the web service, submit thee data, and then go till the last record.

I am currently using this:

<WebMethod(Description:="sends employee id to database")> _
Public Function SendMultiple(ByVal strEmployeeID as string) As String
Dim sqlCon As New SqlConnection()
Dim sqlCmd As New SqlCommand()
sqlCon.ConnectionString = "connection string information"
If sqlCon.State = ConnectionState.Closed Then
End If
sqlCmd.CommandText = "spInsertMultiple"
sqlCmd.Connection = sqlCon
sqlCmd.CommandType = CommandType.StoredProcedure
Dim Parameter0 As SqlParameter = New SqlParameter("@EmployeeID", strEmployeeID)
Parameter0.Direction = ParameterDirection.Input
Dim dr As SqlDataReader
dr = sqlCmd.ExecuteScalar
Dim strReturnedValue As String = "hello"
Return strReturnedValue
End Function

View 6 Replies

Forms Data Controls :: How To Add Optional Parameters In Query String

Jan 30, 2010

I have a data grid with a lot of information on it - to easily filter the data, I would like to be able to pass parameters to it. My problem is that I do not want the parameters to be required. So if I just put 1 or 2 of them in the query string, I would like for it to return all of the data related to those two parameters.I am using a data grid & stored procedures:My Stored Procedure looks like this:


View 1 Replies

Ignoring Specific Query String Parameters In Custom Sitemapprovider

Nov 15, 2010

I've written my own staticsitemapprovider which builds a dynamic site map. The problem I have is that sometimes pages will have additional parameters in the query string which I need to ignore. Public Overrides Function FindSiteMapNode(ByVal rawUrl As String) As SiteMapNode

Dim startpos As Integer = 0
Dim endpos As Integer = 0
If rawUrl.Contains("pagetype=") Then
startpos = rawUrl.IndexOf("pagetype=")
endpos = rawUrl.IndexOf("&", startpos) + 1

View 1 Replies

Make Permanent 301 Redirect Work When There Are Parameters In The Query String?

Jul 22, 2010

I moved some of my old asp pages to new aspx website. In all of the old pages i used (for file example.asp):

Response.Status = "301 Moved Permanently";

The problem is that when the page domain.com/example.asp?param=value&param2=value2 is requested - the redirect ain't working...

View 1 Replies

Web Forms :: How To Encrypt And Decrypt Query String Parameters In Web Application

Jun 19, 2012

I amĀ passing value from one page to another page using query string so tell me easy way to implement the encrypted query string .

View 1 Replies

Web Forms :: Bind Multiple Query String Parameters From Database When Working With Eval

Aug 26, 2012

I have the following Repeater, I need to bind multiple querystring parameter inĀ  HREF

<li class="current">
<a href="house.aspx?H_name=all"></a>
<asp:Repeater ID="rptMenu" runat="server">


View 1 Replies

SQL Server :: Select Query Is Repeating Records

Jan 3, 2011

I have an SQL 2005 db with a table named "industry_suppliers."

I've created a query to enable someone to search this table using 3 parameters.

The results need to be grouped by "product_description" (which is essentially a category). When displayed on an .aspx page, for example, the results need to look like this:


Acme Apple Company
Bradbury Orchards
A1 Citrus Company
Belfast Growers, Inc
Bradbury Orchards

Notice how "Bradbury Orchards" is repeated under both categories. This is the result I want, EXCEPT in cases where someone wants to filter the search results by category. Let's say someone wants to search just for apple suppliers. The problem I'm having is that any record that appears under apples will also get listed again under any other categories associated with that record. So, searching for apple suppliers, the results are this:

Acme Apple Company
Bradbury Orchards
Bradbury Orchards

I'm having trouble figuring out how to revise my query to avoid this problem.


View 4 Replies

DataSource Controls :: Repeating A Nested (or Sub) Query For Multiple Categories?

Jul 10, 2010

I'm trying to design a page that displays all suppliers by their location. I'd quite like this to work from a query that will automatically include new locations added in the future.

At the moment my design has a table that holds 'locations' with locationID and locationName fields. In my 'suppliers' table I also have a locationID to join them.

I'm not sure how to query the database to return all the suppliers in location 1, then all in location 2. (Or even sure of the terms I need to Google to get some examples!) For example:

Location 1
Supplier 1
Supplier 2
Location 2
Supplier 3
Supplier 4

View 3 Replies

WCF / ASMX :: Passing Variable From Dropdownlist.selectedvalue To Asmx Webservice

Nov 10, 2010

On my page I have a dropdown for country.

On my asmx service I want to get the value of the dropdownlist to filter the next input which will be state/providence.

My code on the asmx:


I want to add another clause to the WHERE statement to restrict Country = @Country so I will need to get that value to the web service.

View 2 Replies

WCF / ASMX :: Bulk Insert Data Into Asmx Webservice?

Feb 24, 2011

I have datatable consist of 20 records and i want to bulk insert into sqlserver through the asmx webservice. Can anybody guide to me or provide Sample BusinessLogic and webservice code.

View 1 Replies

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