Showing posts with label call. Show all posts
Showing posts with label call. Show all posts

Wednesday, March 28, 2012

web Service

how to call a function from wed services to a windows application?Please explain more about what you want to do. You want to write a Web service that makes a call to a Windows application? What kind of Windows application? What are you trying to do?

Don
donkienly thanks for your reply.Lets make my question more specific.If i would like to do a calculator which is in the windows application where the calculation metod/function are all in the web services.
problems is I already created the web services but i cant call it out from in the windows application,while i write the function name in the windows application it shown me the error that the function is not a member of the web services.how can i avoid it?
Ah, gotcha. Have you added a Web reference to your project, assuiming you are using Visual Studio .NET? If not, you have to do that first, in the Solution Explorer window.

Let me know if you've done that, and we can go from there.

Don
Refer
Link
thanks i managed to fixed it
how if i would like to store the data from the web service to the client database(PDA) where the client is programed in windows application.

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

'web service call failed: 500' using ajax hovermenu and web service

Hi there,
I'm using a hovermenuextender attached to a templatefield of a
gridview, and everything seemed to work fine.. however I've moved on
to add dynamic attributes to the hovermenu. Now I get the error "web
service call failed: 500" in place of the output I want (on the
hovermenu's panel).
When accessing the web service I created (directly through the
browser) everything works fine..
here's my hovermenuextender dynamic attributes
DynamicContextKey='<%=eval("refnumber") %>'
DynamicServiceMethod="GetSearchDetails"
DynamicServicePath="Services.asmx"
DynamicControlID="lbdynamiccontent"
I'm guessing the path or method may be incorrect? I've put
services.asmx in the root folder and services.vb was slipped into the
app_code directory.
The other problem would be with the contextkey, but debugging info
within the webservice never gets thrown (it does when I run the
service directly through the browser) so would a funny parameter do
that?
Any help would be greatly appreciated! I also saw error 12030 instead
of 500 crop up, but that seems to have gone (!!!)
cheers,
ChrisOn 5 Jun, 12:53, Not Me <clhumphr...@.gmail.com> wrote:
> Hi there,
> I'm using a hovermenuextender attached to a templatefield of a
> gridview, and everything seemed to work fine.. however I've moved on
> to add dynamic attributes to the hovermenu. Now I get the error "web
> service call failed: 500" in place of the output I want (on the
> hovermenu's panel).
Aha, I realised the helloworld service worked fine.. it was just
anything I created with parameters.. I had my service set up as
Public Function getSearchDetails(ByVal refno As String) As String
so changed this to
Public Function getSearchDetails(ByVal contextKey As String) As String
and all is well!
hope that it useful to any googler's out there.
cheers,
Chris

'web service call failed: 500' using ajax hovermenu and web service

Hi there,

I'm using a hovermenuextender attached to a templatefield of a
gridview, and everything seemed to work fine.. however I've moved on
to add dynamic attributes to the hovermenu. Now I get the error "web
service call failed: 500" in place of the output I want (on the
hovermenu's panel).

When accessing the web service I created (directly through the
browser) everything works fine..

here's my hovermenuextender dynamic attributes

DynamicContextKey='<%=eval("refnumber") %>'
DynamicServiceMethod="GetSearchDetails"
DynamicServicePath="Services.asmx"
DynamicControlID="lbdynamiccontent"

I'm guessing the path or method may be incorrect? I've put
services.asmx in the root folder and services.vb was slipped into the
app_code directory.

The other problem would be with the contextkey, but debugging info
within the webservice never gets thrown (it does when I run the
service directly through the browser) so would a funny parameter do
that?

Any help would be greatly appreciated! I also saw error 12030 instead
of 500 crop up, but that seems to have gone (!!!)

cheers,
ChrisOn 5 Jun, 12:53, Not Me <clhumphr...@.gmail.comwrote:

Quote:

Originally Posted by

Hi there,
>
I'm using a hovermenuextender attached to a templatefield of a
gridview, and everything seemed to work fine.. however I've moved on
to add dynamic attributes to the hovermenu. Now I get the error "web
service call failed: 500" in place of the output I want (on the
hovermenu's panel).


Aha, I realised the helloworld service worked fine.. it was just
anything I created with parameters.. I had my service set up as

Public Function getSearchDetails(ByVal refno As String) As String

so changed this to

Public Function getSearchDetails(ByVal contextKey As String) As String

and all is well!

hope that it useful to any googler's out there.

cheers,
Chris

Web Service fail

I have a web service in http://xxx.xxx.xxx.xxx/HealthService/Service.asmx
When I enter the URL in browse, it run ok.
But when I call it by web service client, it fail with message: can't
connect to remote server.check if your browser connects with a proxy server to the ws

chack also if the ws requires authentication and in this case add the
correct credentials to the proxy client.

steve

"ad" <flying@.wfes.tcc.edu.twa crit dans le message de news:
ezh7jx7EHHA.2464@.TK2MSFTNGP06.phx.gbl...

Quote:

Originally Posted by

>I have a web service in http://xxx.xxx.xxx.xxx/HealthService/Service.asmx
>
When I enter the URL in browse, it run ok.
But when I call it by web service client, it fail with message: can't
connect to remote server.
>
>
>
>

Saturday, March 24, 2012

Web Service from aspx

Hi
is it possible to call a web service from inside SQL Server in any way? If yes, how

Basically I am trying to fire a insert trigger, which will select some data from a table and instantiate .Net dll and populate its properties with the table data. I know there are other ways to do it but i would like to know if there is a way to achieve the above as well

Any help would be appreciated

Thanks
- Monideeany module which can address a url can call into the webservice. otherwise
it can't. i'd hesitate to advise you to tie a trigger to a webservice as
that, to me, is tight coupling. A change in the webservice interface or
address will break the trigger which is not necessarily a good thing IMHO.

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
"RR" <anonymous@.discussions.microsoft.com> wrote in message
news:E382049A-4197-43D6-8AE1-9F7AB7870ED3@.microsoft.com...
> Hi,
> is it possible to call a web service from inside SQL Server in any way? If
yes, how?
> Basically I am trying to fire a insert trigger, which will select some
data from a table and instantiate .Net dll and populate its properties with
the table data. I know there are other ways to do it but i would like to
know if there is a way to achieve the above as well.
> Any help would be appreciated.
> Thanks,
> - Monideep
"RR" <anonymous@.discussions.microsoft.com> wrote in message
news:E382049A-4197-43D6-8AE1-9F7AB7870ED3@.microsoft.com...
> Hi,
> is it possible to call a web service from inside SQL Server in any way? If
yes, how?
> Basically I am trying to fire a insert trigger, which will select some
data from a table and instantiate .Net dll and populate its properties with
the table data. I know there are other ways to do it but i would like to
know if there is a way to achieve the above as well.
> Any help would be appreciated.

There was a similar question in the C# newsgroup just recently (search for
"c# and ms sql triggers").

In theory, you could e.g., write a C# class that calls the web service and
expose it as a COM component. You could then call the COM component from the
SQL trigger.

However I do not think this is a realistic approach for any serious use. For
starters, calling a COM component from a trigger is relatively slow already,
and the inevitable overhead of the web service call would make this approach
impractical. You want your trigger to execute as quickly as possible to
avoid bogging down the database.

Not knowing your exact requirements its hard to say, but one way of doing
this would be to write an extended stored procedure in unmanaged C++ and
call it from the trigger. This extended stored procedure would just place a
message in an MSMQ queue. Another application would then read the message
from the queue and call the web service. This way the trigger would be
decoupled from the web service call.

Sami
www.capehill.net

Web Service Limitation ?

Hi All,

I am attempting to call a Web Service that has a nested repeating element of the same type as it's parent. Below is a simplified example represented as a class. After successfully creating a WebReference, I attempted to create the service and got the old 'File or assembly name ..., or one if it's dependancies, was not found.' After much research, it appears to be a serializer problem because the exception occurs during the creationg of the service. I am able to call this WebService from other type of clients. Is this a problem of the Framework, Visual Studio or Visual Basic? I am using Framework 1.1, Visual Studio 2003. Can VisualStudio 2005 handle this.

Class Case
CaseDescription as String
CaseNumber as String
ChildCases as Case()
End Class

Ok, I figured this one out. When I added the web reference the following incorrect code was generated in the Reference.vb class. The ChildCases() declaration was incorrectly generated with double parentheses. See corrected code below. I also had to add [] around Case as it is a keyword.

Generated Code:

<System.Xml.Serialization.XmlArrayItemttribute(

GetType(Case), IsNullable:=false)> _
Public ChildCases()()As [Case]

Corrected Code:

<System.Xml.Serialization.XmlArrayItemttribute(

GetType([Case]), IsNullable:=false)> _
Public ChildCases()As [Case]

Thanks

Web Service Question

Can anyone tell me if its possible to create a custom class and pass it from
a client application through a webservice call for the server to use it for
its operations?
I'm gettin ga cannot convert from Customer to clientproject.Customer error
message and am new to all this..
thanks,
glennTo pass an object such as a class it would have to be serialised.
Take a look at this article and see if it gives you some idead.
http://www.eggheadcafe.com/articles...er_bulkload.asp
Regards
John Timney
ASP.NET MVP
Microsoft Regional Director
"glenn" <ghancock@.softeksoftware.com> wrote in message
news:euJqCS6CFHA.2540@.TK2MSFTNGP09.phx.gbl...
> Can anyone tell me if its possible to create a custom class and pass it
from
> a client application through a webservice call for the server to use it
for
> its operations?
> I'm gettin ga cannot convert from Customer to clientproject.Customer error
> message and am new to all this..
> thanks,
> glenn
>

Web Service Question

Can anyone tell me if its possible to create a custom class and pass it from
a client application through a webservice call for the server to use it for
its operations?

I'm gettin ga cannot convert from Customer to clientproject.Customer error
message and am new to all this..

thanks,

glennTo pass an object such as a class it would have to be serialised.

Take a look at this article and see if it gives you some idead.
http://www.eggheadcafe.com/articles...er_bulkload.asp

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"glenn" <ghancock@.softeksoftware.com> wrote in message
news:euJqCS6CFHA.2540@.TK2MSFTNGP09.phx.gbl...
> Can anyone tell me if its possible to create a custom class and pass it
from
> a client application through a webservice call for the server to use it
for
> its operations?
> I'm gettin ga cannot convert from Customer to clientproject.Customer error
> message and am new to all this..
> thanks,
> glenn

Thursday, March 22, 2012

Web Service Timeout

Hi All,
I have a problem.
I've developed a mobile application. And the application call a web service.
The web service executes a script and it takes long time (about 2 minutes)

But it the webservice throw timeout exception after 10 seconds from mobile
device.

I've set server.scripttimeout to 3600... after executiontimeout 3600... But
it doesn't work.
What can i do? Web service works about ten seconds after it raise timeout
exception.

Please help me.change the timeout on the client side.

yourproxy.Timeout = 5 * 60 *1000;

Steve

"Erencan SAIROLU" <erencans@.hotmail.coma crit dans le message de news:
O4ENsOBBHHA.4568@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

Hi All,
I have a problem.
I've developed a mobile application. And the application call a web
service.
The web service executes a script and it takes long time (about 2 minutes)
>
But it the webservice throw timeout exception after 10 seconds from mobile
device.
>
I've set server.scripttimeout to 3600... after executiontimeout 3600...
But it doesn't work.
What can i do? Web service works about ten seconds after it raise timeout
exception.
>
Please help me.
>
>
>
>
>


It's work now.
Thanks Steve :)

"Steve B." <steve_beauge@.com.msn_swap_msn_and_comwrote in message
news:OHrrNVBBHHA.144@.TK2MSFTNGP02.phx.gbl...

Quote:

Originally Posted by

change the timeout on the client side.
>
yourproxy.Timeout = 5 * 60 *1000;
>
Steve
>
>
"Erencan SAIROLU" <erencans@.hotmail.coma crit dans le message de
news: O4ENsOBBHHA.4568@.TK2MSFTNGP04.phx.gbl...

Quote:

Originally Posted by

>Hi All,
>I have a problem.
>I've developed a mobile application. And the application call a web
>service.
>The web service executes a script and it takes long time (about 2
>minutes)
>>
>But it the webservice throw timeout exception after 10 seconds from
>mobile device.
>>
>I've set server.scripttimeout to 3600... after executiontimeout 3600...
>But it doesn't work.
>What can i do? Web service works about ten seconds after it raise timeout
>exception.
>>
>Please help me.
>>
>>
>>
>>
>>


>
>

web service to client question

Hi,
I have a web service that process a client call. When a client makes a call
to the web method the method needs to query some data from a client_A and
return the data to the calling client_B. How should I design the way the web
service will call client_A to retreive the data needed for client_B?
I am using .net 1.1 and c#
ThanksYou can't call a client from the server. You have to wait for the client to
call you (send a Request) before you can do anything.
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
"R.A." <temp@.hotmail.com> wrote in message
news:eBjRrG$yEHA.3376@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have a web service that process a client call. When a client makes a
call
> to the web method the method needs to query some data from a client_A and
> return the data to the calling client_B. How should I design the way the
web
> service will call client_A to retreive the data needed for client_B?
> I am using .net 1.1 and c#
>
> Thanks
>
>
Do you mean database data? Then client_A is really acting as a server.
Jeff
"R.A." <temp@.hotmail.com> wrote in message
news:eBjRrG$yEHA.3376@.TK2MSFTNGP12.phx.gbl...
> Hi,
> I have a web service that process a client call. When a client makes a
call
> to the web method the method needs to query some data from a client_A and
> return the data to the calling client_B. How should I design the way the
web
> service will call client_A to retreive the data needed for client_B?
> I am using .net 1.1 and c#
>
> Thanks
>
>

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