Showing posts with label methods. Show all posts
Showing posts with label methods. Show all posts

Wednesday, March 28, 2012

web service

Is there any limit to the number of methods you can put into a web service?
Could you for example have 200 methods or more? We are working on a massive
system that we would like to use web services to provide functionality to
remote users... thanks!Have you considered Remoting (whicn can be hosted within IIS) instead of
WebServices?
If your clients are .Net, the remoting would be favored.
If your clients are .Net (and others, asp, vb6, java), then WebServices
would be preferred.
See
9/27/2005
Leveraging Dot Net Remoting To Keep Your "Secret Code" Safe
http://sholliday.spaces.live.com/blog/
or
[url]http://secretg.net/QAD_Remoting.asp[/url]
among other sites.
..
If you're using .Net 3.0, you have more options.
"Smokey Grindle" <nospam@.dontspamme.com> wrote in message
news:euY4o4jlHHA.4628@.TK2MSFTNGP06.phx.gbl...
> Is there any limit to the number of methods you can put into a web
service?
> Could you for example have 200 methods or more? We are working on a
massive
> system that we would like to use web services to provide functionality to
> remote users... thanks!
>
Would remoting work with Compact Framework also? We were planning on having
some PocketPC apps with of course reduced functionality and then .NET apps
running on the workstations.. (nothing that isn't .NET 2.0 native) Thanks!
"sloan" <sloan@.ipass.net> wrote in message
news:%23yP$hlklHHA.4840@.TK2MSFTNGP04.phx.gbl...
> Have you considered Remoting (whicn can be hosted within IIS) instead of
> WebServices?
> If your clients are .Net, the remoting would be favored.
> If your clients are .Net (and others, asp, vb6, java), then WebServices
> would be preferred.
>
> See
> 9/27/2005
> Leveraging Dot Net Remoting To Keep Your "Secret Code" Safe
> http://sholliday.spaces.live.com/blog/
> or
> [url]http://secretg.net/QAD_Remoting.asp[/url]
> among other sites.
> ..
> If you're using .Net 3.0, you have more options.
>
>
> "Smokey Grindle" <nospam@.dontspamme.com> wrote in message
> news:euY4o4jlHHA.4628@.TK2MSFTNGP06.phx.gbl...
> service?
> massive
>

Monday, March 26, 2012

web service availability checking

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...On Jul 19, 6:06 pm, AVL <A...@.discussions.microsoft.com> wrote:
> hi,
> i need to check the availability of my web service...
> how can i do that.
> i dont want to call any of the methods present in web service to test
> availability..
> i just want to ping to the web service...how can i do that...
hi,
type you web service url in explorer address bar...if you get response
you service is ok
and if you want to see wsdl just type http://...your_url?wsdl
nahid

web service availability checking

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...On Jul 19, 6:06 pm, AVL <A...@.discussions.microsoft.comwrote:

Quote:

Originally Posted by

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...


hi,
type you web service url in explorer address bar...if you get response
you service is ok
and if you want to see wsdl just type http://...your_url?wsdl
nahid

Saturday, March 24, 2012

web service on a standalone (with no localhost)

is it possible to include a web service dll with your application and
call its' methods without having an internet or localhost connection?
I realize the whole point of web services is the connect thru a server
(remotely or locally), but say you've created a big web service dll
and would like to include it in an application that would run on a
customer pc with no IIS running? is it possible with or without
work-arounds?

thanks...Eych,

No, you'll have to take the code and use it in the application without it
being defined as a web service.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche

"Eych" <eycheych@.hotmail.com> wrote in message
news:9a8dd489.0311201129.7b14b4c9@.posting.google.c om...
> is it possible to include a web service dll with your application and
> call its' methods without having an internet or localhost connection?
> I realize the whole point of web services is the connect thru a server
> (remotely or locally), but say you've created a big web service dll
> and would like to include it in an application that would run on a
> customer pc with no IIS running? is it possible with or without
> work-arounds?
> thanks...
thanks, I figured that'd be the case...however, someone was saying
that I could add the dll that's automatically created by building the
project as a regular reference and use the web service that way...I
tried, but I don't have access to the methods in my web service, just
some generic ones (New, Finalize, Dispose, etc.)

"S. Justin Gengo" <sjgengo@.aboutfortunate.com> wrote in message news:<edRLFi6rDHA.1888@.TK2MSFTNGP10.phx.gbl>...
> Eych,
> No, you'll have to take the code and use it in the application without it
> being defined as a web service.
> --
> Sincerely,
> S. Justin Gengo, MCP
> Web Developer / Programmer
> Free code library at:
> www.aboutfortunate.com
> "Out of chaos comes order."
> Nietzche
>
> "Eych" <eycheych@.hotmail.com> wrote in message
> news:9a8dd489.0311201129.7b14b4c9@.posting.google.c om...
> > is it possible to include a web service dll with your application and
> > call its' methods without having an internet or localhost connection?
> > I realize the whole point of web services is the connect thru a server
> > (remotely or locally), but say you've created a big web service dll
> > and would like to include it in an application that would run on a
> > customer pc with no IIS running? is it possible with or without
> > work-arounds?
> > thanks...
Eych,

I just found this article and thought of your question.

The article is about how you can use cassini web server to run an asp.net
app from a cdrom. Not that you would want to run your web service from a
cdrom, but if you can run a web site from a cdrom you should be able to use
a similar technique to run it from a file on the hard drive...

http://www.microsoft.com/belux/nl/m...ostaspnet2.mspx

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

Free code library at:
www.aboutfortunate.com

"Out of chaos comes order."
Nietzche

"Eych" <eycheych@.hotmail.com> wrote in message
news:9a8dd489.0311210616.47b14c71@.posting.google.c om...
> thanks, I figured that'd be the case...however, someone was saying
> that I could add the dll that's automatically created by building the
> project as a regular reference and use the web service that way...I
> tried, but I don't have access to the methods in my web service, just
> some generic ones (New, Finalize, Dispose, etc.)
>
> "S. Justin Gengo" <sjgengo@.aboutfortunate.com> wrote in message
news:<edRLFi6rDHA.1888@.TK2MSFTNGP10.phx.gbl>...
> > Eych,
> > No, you'll have to take the code and use it in the application without
it
> > being defined as a web service.
> > --
> > Sincerely,
> > S. Justin Gengo, MCP
> > Web Developer / Programmer
> > Free code library at:
> > www.aboutfortunate.com
> > "Out of chaos comes order."
> > Nietzche
> > "Eych" <eycheych@.hotmail.com> wrote in message
> > news:9a8dd489.0311201129.7b14b4c9@.posting.google.c om...
> > > is it possible to include a web service dll with your application and
> > > call its' methods without having an internet or localhost connection?
> > > I realize the whole point of web services is the connect thru a server
> > > (remotely or locally), but say you've created a big web service dll
> > > and would like to include it in an application that would run on a
> > > customer pc with no IIS running? is it possible with or without
> > > work-arounds?
> > > > thanks...

Thursday, March 22, 2012

Web service stopped working

Hi,I have two web applications that run on the same server. Oneapplication publishes couple of web service methods. The otherapplication consumes this web service. Everything was working fine.Last week we moved our applications to a new server, behind a firewall.Ever since I get this error message from the second application thatconsumes the web service "The underlying connection was closed: Unableto connect to the remote server." Is there any firewall setting that iscausing this?Thanks.Well, try turning the firewall off... does it keep happening?

Hi,

I got the same problem so I deleted the web reference and added it again and it started working fine :)

The problem is that ASP.NET 2.0 built in server uses different ports to access the server. So, the port that you used yesterday might not be valid today.


I can't turn off the firewall and test it. its a hardware firewall,I don't have access to it. If I can be sure its the firewall blockingsome port, I can ask the ISP guys to open up the port.

I tried deleting and adding the reference. It did not help.


I would try using a packet analyzer or port monitor to see what ports the service is trying to use.

Web Service/Page Methods , ASPX page and GridView

We have a Grid View in a page that displays nicely formatted data (a
Status Report).
In another application we are sending out Alert emails {windows app}.

Now I want to attach the content of the Grid View Control (HTML) to
the email.

Is this possible to achieve this with Web Service/Page Method?In article <1187899772.288218.245240@.z24g2000prh.googlegroups. com>,
probashi@.hotmail.com says...

Quote:

Originally Posted by

>
We have a Grid View in a page that displays nicely formatted data (a
Status Report).
In another application we are sending out Alert emails {windows app}.
>
Now I want to attach the content of the Grid View Control (HTML) to
the email.
>
Is this possible to achieve this with Web Service/Page Method?


In a windows app, if you add all of the proper references to the
System.Web DLL's, you can create an instance of the GridView,
programatically set properties/call methods and then call
"RenderControl" to generate the HTML for the control.

--
Patrick Steele (patrick@.mvps.org)
http://weblogs.asp.net/psteele

web services

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...do a http get of the service, it should return the wsdl (which is
discovered by reflection). you could also add a ping method that did
more testing.
-- bruce (sqlwork.com)
AVL wrote:
> hi,
> i need to check the availability of my web service...
> how can i do that.
> i dont want to call any of the methods present in web service to test
> availability..
> i just want to ping to the web service...how can i do that...
>
Probably a HEAD request is the one that will return the least amount of
indication and still show that the service ASMX page is available.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com
"AVL" wrote:

> hi,
> i need to check the availability of my web service...
> how can i do that.
> i dont want to call any of the methods present in web service to test
> availability..
> i just want to ping to the web service...how can i do that...
>
Hi,
Peter Bromberg [C# MVP] wrote:
> Probably a HEAD request is the one that will return the least amount of
> indication and still show that the service ASMX page is available.
> -- Peter
I did an example of that some time ago for the JavaScript newsgroup:
http://www.galasoft-lb.ch/myjavascr...e/check-url.txt
demo here:
http://www.galasoft-lb.ch/myjavascript/IsUrlActive/
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Hi again,
Laurent Bugnion, MVP wrote:
> Hi,
> Peter Bromberg [C# MVP] wrote:
> I did an example of that some time ago for the JavaScript newsgroup:
> http://www.galasoft-lb.ch/myjavascr...e/check-url.txt
> demo here:
> http://www.galasoft-lb.ch/myjavascript/IsUrlActive/
Sorry, try rather that one:
http://www.galasoft.ch/myjavascript/IsUrlActive/
XmlHttpRequest can only ping the domain of origin for security reason.
galasoft-lb.ch and galasoft.ch are both pointing to the same server, BUT
the client doesn't know this, and throws an error when galasoft-lb.ch
tries to ping galasoft.ch...
Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

web services

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...do a http get of the service, it should return the wsdl (which is
discovered by reflection). you could also add a ping method that did
more testing.

-- bruce (sqlwork.com)

AVL wrote:

Quote:

Originally Posted by

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...
>


Probably a HEAD request is the one that will return the least amount of
indication and still show that the service ASMX page is available.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
bogMetaFinder: http://www.blogmetafinder.com
"AVL" wrote:

Quote:

Originally Posted by

hi,
i need to check the availability of my web service...
how can i do that.
i dont want to call any of the methods present in web service to test
availability..
i just want to ping to the web service...how can i do that...
>


Hi,

Peter Bromberg [C# MVP] wrote:

Quote:

Originally Posted by

Probably a HEAD request is the one that will return the least amount of
indication and still show that the service ASMX page is available.
-- Peter


I did an example of that some time ago for the JavaScript newsgroup:

http://www.galasoft-lb.ch/myjavascr...e/check-url.txt
demo here:
http://www.galasoft-lb.ch/myjavascript/IsUrlActive/
HTH,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch
Hi again,

Laurent Bugnion, MVP wrote:

Quote:

Originally Posted by

Hi,
>
Peter Bromberg [C# MVP] wrote:

Quote:

Originally Posted by

>Probably a HEAD request is the one that will return the least amount
>of indication and still show that the service ASMX page is available.
>-- Peter


>
I did an example of that some time ago for the JavaScript newsgroup:
>
http://www.galasoft-lb.ch/myjavascr...e/check-url.txt
>
demo here:
http://www.galasoft-lb.ch/myjavascript/IsUrlActive/


Sorry, try rather that one:
http://www.galasoft.ch/myjavascript/IsUrlActive/
XmlHttpRequest can only ping the domain of origin for security reason.
galasoft-lb.ch and galasoft.ch are both pointing to the same server, BUT
the client doesn't know this, and throws an error when galasoft-lb.ch
tries to ping galasoft.ch...

Greetings,
Laurent
--
Laurent Bugnion [MVP ASP.NET]
Software engineering, Blog: http://www.galasoft.ch
PhotoAlbum: http://www.galasoft.ch/pictures
Support children in Calcutta: http://www.calcutta-espoir.ch

Monday, March 12, 2012

Web Services - Remoting and Asynchronous in Webmatrix?

Hi, I need to build an E-Commerce shopping cart which will be Asynchronous ... so I guess I will need Remoting and Asynchronous methods from web services ... my question is ... is that a MUST that I have to use Visual Studio.NET? Can I just use webmatrix?You can use Notepad if you like, as long as you do it right. If you need to create Assemblies, all the command line tools you need are free, and comes with the .Net SDK.

But then again, VS.Net will save you hours (days) of unnecessary work. You may find it expensive, but it's worth every penny.
Hi, I do have a copy of VS.NET CDs from my friend ... but, I can't even get through step 1 ... it said I dun have several software or something ... it's Enterprise version ... but I only need to use my IP address as a server ... so I selected Remote server and follow the lnk to how to setup a remote server ... but doesn't work ... still not allowed me to go on to steps 2, 3, etc. What should I do???
VS.Net consists of several CDs. The first you are required to run is Component Update. If you don't have this or any of the other CDs of, you cannot install VS.Net.

"Hi, I do have a copy of VS.NET CDs from my friend"

Do you own a license for this copy of VS.Net?
hello .. I have the original CD with me ... but its' my friend's ... does it make it diff that I can't get through step 1?
Having the original, as opposed to a copy I shouldn't imagine will make a difference, but you'll still need to license it. If you've already got a license, then I beleive you can get new media from MS, for a small fee (That way you're garaunteed to get a complete set of disks).

Alternatively, you could trySharpDevelop. It's a bit simpler than VS, but still very similar in look and feel, still does everything you're likely to need to do, and more importantly, it's free.