.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

Test WEB Service, Consume From Alternate PC

Posted By:      Posted Date: August 29, 2010    Points: 0   Category :WCF
 
I'm developing a web service which will be consumed by a Motorola RFID Scanning System. For test/debug I want to execute it from withing VS (which executes it on the dev box, available through localhost) but have it accessible by the external device. How do I go about exposing the web service from my dev box to the 'outside' world?  VS2008 on WinXP. TIA - Gary Gary in Massena. WinForms Client Development. SQL Server Management and Development.


View Complete Post


More Related Resource Links

Test Run: WCF Service Testing with Sockets

  

There are many ways to test WCF services, but the socket-based approach is flexible and very useful for security and performance testing. We show you show you how to test a WCF service using a network socket based approach.

James McCaffrey

MSDN Magazine February 2010


How do consume an ASMX service?

  

Hello


I need to consume and ASMX service on my website.

This service has to be authenticated and results would be displayed on my website.

Can you please give be step by step instructions on how do i do it?

I am using VS 2008 VB or C# is fine by me.


I had checked on various forums and its not really giving me the required steps (baby steps here)


Thanks a lot


Deepesh


Trying to call an asmx web service from a test project

  
I am trying to create a proxy for an asmx web service. The only thing I find in Visual Studio 2008 is a service reference. How do I call an asmx web service with a service reference? Certified Geek. Professional Data dude.

The requested service, 'http://localhost/MyServices/Test.svc' could not be activated Exception....

  
Hi I am using VS2010, WPF/WCF/.Net4, IIS 7, Windows 7. I am calling methods asynchronously, some times during execution I get the following errror.  The requested service, 'http://localhost/MyServices/Test.svc' could not be activated. See the server's diagnostic trace logs for more information. ======================== Server stack trace:    at System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)    at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)    at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)    at System.ServiceModel.Channels.ServiceChannelProxy.InvokeEndService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)    at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]:    at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)    at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)    at WSProxy.PatientService.IPatient.EndLoadPatientCardsInfosCompress(IAsyncResult result)    at WSProxy.PatientService.PatientClient.EndLoadPatientCardsInfosCompress(IAsyncResult result) ========================= Using BasiHttpBindi

Accessing a published web service gives null ref exception. Won't occur in test though?

  
I have an Asp.net web service that I created using Visual Studio 2005. I can acess the web service in my testenvironment, call methods and return data as expected. If this web service is published to the outside world (Outside of the company firewall), it will return a null reference exception. Does anyone have any idea why this might be happening? The same code is being used,against thesame database. The only difference is that the published website is giving back the null reference exception. If I type in the URL for the web service "https://secure.theSiteGeist.com/wsIndigo.asmx" a list of methods forthe web service is displayed in my browser. Yet if I try and call any methods on the web service I getback the null reference exception. Note that the URL I posted above is not the real name of my web service, but isjust used for reference sake.

Consume WCF Data service in client application

  
Hi All, I am working on WCF Data service which imported stored procedure, as below.         [WebGet]        public List<GetMTSearchResultTest_Result> GettMTSearchResultTest()        {            MediaMarketResearch_PRODEntities ent = new MediaMarketResearch_PRODEntities();            return ent.GetMTSearchResultTest().ToList();        } when i consuming this in my client application it says error as "The closed type MMRClient.MMRServiceReference.GetMTSearchResultTest_Result does not have a corresponding element settable property." I am getting this error while bind to the grid view as below. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:4131/MMRDataService.svc/"));IEnumerable<GetMTSearchResultTest_Result> empResult = context.Execute<GetMTSearchResultTest_Result>(new Uri("http://localhost:4131/MMRDataService.svc/GettMTSearchResultTest"));             GridView1.DataSource = empResult;            GridView1.DataBind(); Note: I imported this sto

Consume WCF Data service in client application throws error

  
Hi All, I am working on WCF Data service which imported stored procedure, as below.         [WebGet]         public List<GetMTSearchResultTest_Result> GettMTSearchResultTest()         {             MediaMarketResearch_PRODEntities ent = new MediaMarketResearch_PRODEntities();             return ent.GetMTSearchResultTest().ToList();         }   when i consuming this in my client application it says error as "The closed type MMRClient.MMRServiceReference.GetMTSearchResultTest_Result does not have a corresponding element settable property." I am getting this error while bind to the grid view as below. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:4131/MMRDataService.svc/")); IEnumerable<GetMTSearchResultTest_Result> empResult = context.Execute<GetMTSearchResultTest_Result>(new Uri("http://localhost:4131/MMRDataService.svc/GettMTSearchResultTest"));             GridView1.DataSource = empResult;             GridView1.DataBind(); Note: I im

Consume WCF Data service in client application throws error

  
Hi All, I am working on WCF Data service which imported stored procedure, as below.         [WebGet]         public List<GetMTSearchResultTest_Result> GettMTSearchResultTest()         {             MediaMarketResearch_PRODEntities ent = new MediaMarketResearch_PRODEntities();             return ent.GetMTSearchResultTest().ToList();         }   when i consuming this in my client application it says error as "The closed type MMRClient.MMRServiceReference.GetMTSearchResultTest_Result does not have a corresponding element settable property." I am getting this error while bind to the grid view as below. DataServiceContext context = new DataServiceContext(new Uri("http://localhost:4131/MMRDataService.svc/")); IEnumerable<GetMTSearchResultTest_Result> empResult = context.Execute<GetMTSearchResultTest_Result>(new Uri("http://localhost:4131/MMRDataService.svc/GettMTSearchResultTest"));             GridView1.DataSource = empResult;             GridView1.DataBind(); Note: I im

host and consume wcf rest service in web project in single solution

  
I have  create a solution which have multiple class library project and a web application Like Web(UI),BL,DAL etc. I have also add a WCF REST starter kit Collection project in the same Solution.WCF Rest API is working fine if I host it on IIS but i want to consume this in my web project without using IIS. Is this possible? if yes then what will be the URI  for my WCF Rest services? Add service reference is also not working because WSDL is disable in rest.

Not able to consume a WCF service

  
I have been working very hard in the weekend to make me Json wcf service work. I found lot of articles on json service which are self hosted, even this works fine for me. But while I'm trying to consume a JSON wcf service hosted on the server, it is not working. (At this point I'm assuming that there is no need to add a WCF service as a reference because the http:server:portnumber/Service.svc/js serves as the script proxy which can be used to call the service hosted on the server. ) I have searched a lot but could not find a single article with steps to follow while deploying a JSON wcf service on a server and then consuming in different application. Can any body please help me in getting this problem solved. Like any example or a sample Thanks,

Consume service based on XSD?

  

I've been given the task of consuming a client's web service, and all they've given me is a XSD file. I'm a little unsure how to go about doing this, as the only other time I've consumed a web service was internally and we just pulled it in as a web reference to our project.

Where do I start when all I have the XSD (below)?


<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.cisco.com/services" targetNamespace="http://www.cisco.com/services" elementFormDefault="qualified">
<element name="employeeSearch" type="tns:employeeSearchType"/>
<complexType name="employeeSearchType"

How to consume java base SOAP web service XWSS?

  

I have java base SOAP web service XWSS. I installed WES 3.0 + VS2008

When I’s setting Security.Takens.Add() I’m getting message:
SoapContext.Security is obsolete.
Consider deriving from SendSecurityFilter or ReceiveSecurityFilter and creating a custom policy assertion that generates these filters.

Does it require some web service updates?
Do you have any samples how to create Custom Policy?


Can sharepoint desinger consume wcf data service?

  

I am thinking to change my wcf data service based on ado.net data service because It seems that sharepoint designer does not understand.

I can use VS 2010 to develop it external list but I just want my clients to use sharepoint designer to do themself so I can only take care of the service

However If I do not use wcf data service, it look like that I have to do a lot of coding for the service itself

Could anyone please tell me how to use sharepoint designer to talk to the wcf data service, or other alternative approach?

Thank you in advance

 


consume a web service?

  

Hi all,

I have no idea what I'm doing and I'm quite confused now.. I have started a new web application in VWD and added a web reference to this thing...

http://ws.cdyne.com/WeatherWS/Weather.asmx?op=GetCityWeatherByZIP

Now I need to display the city, state, zip code, temperature, wind, and humidy on a webpage but I don't know how. 



Here's my default.aspx code..

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Get City Weather By Zip ~ Web Service</title>
    <link href="css/styles.css" type="text/css" rel="Stylesheet" />
</head>
<body>
    <form id="form1" runat="server" method="post" action="http://ws.cdyne.com/WeatherWS/Weather.asmx/GetCityWeatherByZIP">
    <div id="container">
    <h1>

Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend