|
rp_suman wrote: Is there any restriction for number of functions inside web service?
AFAIK, there is no restriction for that. How many function do you have so far?
rp_suman wrote: if add one more function, it is not running.
Are you getting the error or something?
|
|
|
|
|
Hi I got the problem,
There are two functions,
In CPP file, one function's class name before the scope resolution operator was incorrect[letter case was different] and thats why did not compile correctly.
Thank you very much for your help!!
Best Regards,
Suman
|
|
|
|
|
No there is no restriction on having functions in web service. I think it must me the way you implemented those functions might have some problem.. please verify reading some documentation on the same, to chk whether you hav implemented them correctly.
Pankaj Chamria,
Software Programmer.
|
|
|
|
|
Hi Thanks for the help!! I have fixed it already.
Best Regards,
Suman
|
|
|
|
|
Hi all,
i am getting following error
System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.CheckFinalStatus()
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.Net.HttpWebRequest.GetResponse()
at UseWebApplication.WebForm1.btnSendSoap_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\UseWebApplication\WebForm1.aspx.vb:line 63
while passing soap request in web service like
<soap:envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:body>
<receivexmlfromcytric xmlns="http://localhost/WpmsDeCtWebSrv/WpmsDeCtWebSrvService.asmx">
<request>
<check1>Check1Data</check1>
<check2>check2Data</check2>
</request>
</receivexmlfromcytric>
</soap:body>
</soap:envelope>
If i pass only text in <Request> tag then it works fine but when i try to pass xml type data in <Request> tag then it shows the error.
Can't i pass xml type of request in soap messages.
I have written following code to access the webservice
Dim strUrl As String = "http://localhost/WpmsDeCtWebSrv/WpmsDeCtWebSrvService.asmx"
Dim req As HttpWebRequest = WebRequest.Create(strUrl)
Try
req.Headers.Add("SOAPAction", "http://localhost/WpmsDeCtWebSrv/WpmsDeCtWebSrvService.asmx/ReceiveXmlFromCytric")
Dim content As String = txtHttp.Text
req.ContentType = "text/xml; charset=utf-8"
req.Method = "POST"
Dim s As System.IO.Stream = req.GetRequestStream()
Dim sw As New System.IO.StreamWriter(s)
sw.Write(content)
sw.Close()
Dim res As HttpWebResponse = req.GetResponse()
s = res.GetResponseStream()
Dim sr As New System.IO.StreamReader(s)
Dim strresult As String = sr.ReadToEnd()
sr.Close()
txtResponse.Text = strresult
Catch ex As Exception
txtResponse.Text = ex.ToString
End Try
Please help to provide the solution.
Thanks
|
|
|
|
|
Title: Encountering HTTP Error 500
Issue:
The server was unable to send the html document to you due to an internal (server software) error.
Resolving 500 errors - general
This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of your Web server site to locate and analyse the logs which should give further information about the error.
Piyush Vardhan Singh
|
|
|
|
|
Hi,
thanx for your reply.
But Actualy its not a server problem as my request got completed if i send only string message.But when i try to pass nodes like xml in <request> tag only then it gives error, means i m unable to pass xml formated data in request tag.
Can we pass xml file as request in above code?
Any other solution pls.
|
|
|
|
|
Hello,
Can anybody help me regarding logic, how to check that perticular files have already installed or not in local system during installation of desktop application.
Actually i've created a desktop application. Now for that application, some microsoft.sqlserver files must be installed in the local system.
I want that during installtion of my desktop application, there should be a way for checking that .sqlserver files have installed. If not then, it prompt to the user that those files must be installed for this desktop application.
Please help me about this asap...
Thanx
Deep
|
|
|
|
|
If you are using ClickOnce, you can add the SQL server as the pre-requisition... No coding required.
If you wanna check the registry, you can also check this key. "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\MSSQLServer\CurrentVersion" too.
|
|
|
|
|
thanx Michael.
but can you explain me how will i check the registry during installation of my desktop application.
i will be very thankfull if you provide some example code for this..
Plz rply asap...
i am waiting for ur rply..
Thanx
Deep
|
|
|
|
|
I know that it can be done by using custom action in your installer class but I'm not very familiar with normal setup because I used to use ClickOnce in the most of my projects... so, if you want to know about custom action, you can search in google. ..net setup and deployment with custom action[^]
If you want to use Clickonce then you just need to check the pre-requisition button in publishing page..
|
|
|
|
|
thanx Michael,
I dont want to install anything during installation of my desktop application.
I just want that during installation, installer check that perticular files have been installed or not on the user's local system and prompt to the user that for this desktop application these files must be installed on your system.
After prompting this message, installation of my desktop application must be completed.
I think you are getting my problem.
Please provide help accordingly.
I am waiting for your reply..
Plz provide asap...
Thanx
Deep
|
|
|
|
|
Hello Friends,
I want to send the ImageUrl fetching from the database to the Javascript function
<img onmouseover="javascript:doTooltip(event,0,'<%# DataBinder.Eval(Container.DataItem,"Image") %>')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
But this piece of code throwing an Parser Error given below
The server tag is not well formed.
But if i give the path of a particular image then it works great....as given below
<img onmouseover="javascript:doTooltip(event,0,'Images/img1.jpg')" onmouseout="hideTip()" id="myImage1" name="myImage1" src='<%# DataBinder.Eval(Container.DataItem,"Image") %>' Runat="server" Height="125" Width="125" />
|
|
|
|
|
Does anybody not have a bit of time to solve my prob.......
|
|
|
|
|
how i can focus to the textbox after i seleceted a date from ajax calender control... iam placing the date from ajax calender control into the textbox
|
|
|
|
|
I don't see why a calendar control needs AJAX.
You write javascript to find the control with document.getElementById and you call it's focus() method. But, if you want to just write the date in there, in code, you don't need to focus on it, just set the text properties.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
How can i make my App flash enabled?
|
|
|
|
|
Depends what you mean. If you want to show a flash, you just embedd it with HTML. If Flash allows you to interact with javascript, you can use hidden fields to store stuff you want to send back to ASP.NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
What do you mean? Just embed it in your html...
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
|
|
|
|
|
Hi,
I need to add a search box in my web page, to search for different words / phrases in it.I do not want to use an external search engine (like picosearch, for example) but some code to add in the html file to allow me to search.I need to search WITHIN the webpage.can anyone give me the solution?
Thanks in advance
Regards,
Hiren
|
|
|
|
|
you can create a web user control for that !!!
|
|
|
|
|
|
hirennn wrote: can u just explain me how to do it?
Christian has given you an idea about implementing this. I reiterate, you need to index all the pages and store it in a database. Query the database and return URL. Alternatively, you can search website using Microsoft index services[^]
|
|
|
|
|
You need to create a database that indexes your web pages, and then search that. It needs to build indexes so that the page URLs you found are returned.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how to retrieve the web server name using asp.net(VB)?
Best Regards
|
|
|
|