C# - API / Web Service Creation Basics

Jan 25, 2011

I've been handed some documentation about an API and been told to integrate it (the API uses SOAP). I'm familiar with web services and how they work, but I've never built a functional one. That is to say, I can create a basic web method in C# but I've never written anything to connect to an external system. I've read parts of books and I've not been able to find a good example about how to connect to and use a third-party API. I guess my question would be "how can I use this API with our systems?"

View 2 Replies


Similar Messages:

Factory Method Pattern Clarification - Allow The Client To Delegates The Product Creation (Instance Creation) To The Subclass

Mar 29, 2010

My understanding of Factory Method Pattern is (Correct me if i am wrong) Factory Method Pattern "Factory Method allow the client to delegates the product creation (Instance Creation) to the subclass". There are two situation in which we can go for creating Factory Method pattern.

(i) When the client is restricted to the product (Instance) creation.

(ii) There are multiple products available.But a decision to be made which product instance need to be returned. If you want to create Abstract Method pattern

You need to have abstract product Concrete Product Factory Method to return the appropriate product.

public enum ORMChoice
{
L2SQL,
EFM,
LS,
Sonic
}
//Abstract Product
public interface IProduct
{
void ProductTaken();
}
//Concrete Product
public class LinqtoSql : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:LinqtoSql");
}
}
//concrete product
public class Subsonic : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:Subsonic");
}
}
//concrete product
public class EntityFramework : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken:EntityFramework");
}
}
//concrete product
public class LightSpeed : IProduct
{
public void ProductTaken()
{
Console.WriteLine("OR Mapping Taken :LightSpeed");
}
}
public class Creator
{
//Factory Method
public IProduct ReturnORTool(ORMChoice choice)
{
switch (choice)
{
case ORMChoice.EFM:return new EntityFramework();
break;
case ORMChoice.L2SQL:return new LinqtoSql();
break;
case ORMChoice.LS:return new LightSpeed();
break;
case ORMChoice.Sonic:return new Subsonic();
break;
default: return null;
}
}
}
**Client**
Button_Click()
{
Creator c = new Creator();
IProduct p = c.ReturnORTool(ORMChoice.L2SQL);
p.ProductTaken();
}

Is my understanding of Factory Method is correct?

View 3 Replies

WCF / ASMX :: "force" File Creation In A Web Service?

Jun 4, 2010

I have a web service that calls a system call using a temp text file as input.

However, the temp text file is "not always" created on the web service's invocation.

How do I force a file to be created on a web service?

View 2 Replies

ADO.NET :: LINQ To SQL / Learn Basics?

Nov 22, 2010

I'm trying to implement a small server/client web service to understand the fundamentals of WCF. I've created both the client and the server and so far have them communicating with each other through a very simple getter method. I've added in a database to the server and have a LINQ to SQL connection (I'm not sure if that's the proper terminology).

What I would like to know is, where can I learn the fundamentals now, for example: returning the number of rows into the client console window and using the basic CRUD functions from the client to update the database? I don't want to go to deep to soon, as I would like a bit of a foundation to work off before it starts to get really complex.

View 1 Replies

Php - Basics For Creating A Wiki-like Web Application?

Oct 27, 2010

I need to implement wiki-like functionality within a website.

Problem is that I am not fully aware of what it might require and therefore predict a long set of refactoring till I actually nail a good version.

I tried looking for some guidelines, but haven't found much.

View 5 Replies

Web Forms :: How To Fix Url Routing Different From The Basics That Is Builtin In The Framework

Feb 1, 2011

I need to fix url routing different from the basics that is builtin in the framework...Basically I need it to go unlimited levels deep the same as the product catalog can when using the parent relation for each category added. does anyone have a good sample for webforms of how I could do it...I want URL listings to look like this[URL] and details URL looking like this[URL]

View 8 Replies

Mobiles :: Basics Of Developing A Mobile Application?

Jan 16, 2011

Can any one teach me basics of mobile application development

View 2 Replies

Web Forms :: Needing To Do A 'simple' ASP.Net Site That Just Uses The Out Of The Box Basics?

Oct 25, 2010

I've been dynamically asigning master pages using code for a number of years as part of a skinning engine. Today however,I'm needing to do a 'simple' ASP.Net site that just uses the out of the box basics.I'm hitting a hurdle though and can't figure why.

[code]...
Now - I want to add an <asp:placeholder> control inside the child page's <Content1> tags - however,the designer's intellisense doesn't show them. If I delete the MasterPageFile tag from the top of the child's page, then all of a sudden it works.Why can't I add a placeholder inside a child form?

View 2 Replies

Learning The Basics Of Event-driven Programming?

Dec 27, 2010

My task for today is to fully understand event-driven programming and how it works. Now there are several ways this can be achieved. The first one is to actually program a basic program that covers the key concepts, and the second approach is to watch a video that explains the key concepts in a way I can understand. Which approach do people recommend?

Does anyone have videos/program demos they found useful and could recommend to me? My major experiences are with ASP.NET MVC, so it would be best if the tutorial were with WebForms ASP.NET.

View 1 Replies

Web Forms :: Basics About Declaring Static Class

May 7, 2015

What is the use of declaring the static class. I know that we cant create the object for the static class but i want to know that is the use of creating the class as static.

View 1 Replies

PDF Creation From XML File

Apr 30, 2014

I have student data in xml file ... I wanted to generate and download a pdf file from xml file for a specific record ...

View 2 Replies

Best Way To Handle Thumbnail Creation?

Feb 11, 2010

This is a thread looking for advice/comments.I have datalist that has an image in each row. Right now i am just setting the height to a certain height like 75px and this works just fine. Our images are pretty web friendly. But if a user was to have a jpeg that is like 2mb and i change the height I am guessing it still is loading the full 2mb even though the image has "shrunk"?If so what is best way to handle thumbnail creation. I dont want the end user to have to create thumbnail so i was thinking of doing it dynamically if the way I am doing it now is gonna slow down my page.

View 2 Replies

Best Library / Component For PDF Creation C#?

Apr 6, 2010

I have read a couple of older threads on PDF creation but I want to know what is the best free or relatively inexpensive library for PDF creation out there today?

I am looking to create PDF files using C# and they will contain lots of tables and images.

View 6 Replies

Web Forms :: How To Do RSS Feed Creation

Sep 23, 2010

I'm using various tutorials to create an RSS Feed in asp.net. Most of these examples are in C, but have converted to vb.net without errors, except that the data is not showing when i run the page in which the feed is on, i am just given a blank white page:

My database table is called
News_Items and contains:
ID - Int
Title - nvarchar(50)
News - ntext
PostDate - datetime

This table holes 6 records currently. My code is as follows (These files are shown in their entirity):

RSS_Feed.aspx - Inherits Default as anything else generates an error

[Code]....

RSS_Feed.aspx.vb

[Code]....

View 2 Replies

Ftp Program Fails At URI Creation?

Sep 26, 2010

Here is the code first :

Const localFile As String = "C:file.bin"

View 4 Replies

Web Forms :: Dynamic Creation Of Textbox?

Feb 4, 2011

In my application i placed a button.While clicking on button i need to generate one dynamic textbox.For every click i need to generate textbox. Ex: For the first time if i click on button i need to generate textbox.If again i click on the button i need to generate one more textbox.

View 2 Replies

Event Sequence On Page Creation?

May 19, 2010

I'm looking for a good tutorial/article that explains the exact sequence of events that takes place when a page is created. I can never remember the order. I think it's something like the parent controls Init event is called, then the child controls Init event is called, in order of the placement on the page. Also, when the control events are called, what order are they called in? For example, if a button event is raised, does this event get called before a DataList_ItemDataBound event is called if the DataList.DataBind is in the Page_Load event? So, does anyone want to try to explain or direct me to a nice article that explains all this?

View 3 Replies

Folder Creation Doesnt Seem To Work?

Apr 1, 2010

Last year we created an application that creates folders for the records on our network drive. Everything worked til the new year.. then we had to update the code to create a new parent folder for the year, since then every other month it seems that the month folder gets created, but the individual folders under that month do not.

[Code]....

View 6 Replies

Security :: How To Set Automatic Log In After User Creation

Mar 13, 2010

I have made an asp.net 3.5 website where I am using the membership in order to generate users. I have used the CreateUser Wizard that is available with the ToolBox . The problem which I am facing is that as a Person Completes his registration and redirected to the Default Page, He is automatically Logged Into the website. I dont know how is it possible to skip this step. Pls suggest so that after the registration the user need to go to the login page and use the Login Control in order to Log into the site.

View 3 Replies

Security :: How To Add Role To New User Upon Creation

Dec 10, 2010

I have a page setup to manage and create users.. in order to help the process of creation, i woudl like to add the new users to our default "users" role when they click the create button. Below is what is in place for the creation page and the button event tied to the button. I used this from a tutorial i found else where, but dont have the link at the moment if anyone needed it.. but the code below works great when creating a new user

[Code]....

View 5 Replies

Dynamic Creation Of Usercontrols Without Postback?

Jan 17, 2011

As the title says , i'm looking for some kind of technology that allows me to dynamicly add & remove usercontrols.Without a postback ofcourse :)A link would be awesome , example code would be super!

View 1 Replies

Web Forms :: Dynamic Creation Of Tables?

Oct 27, 2010

I have a table created on the front end of my code called "tblSearchlist". In my code behind I have the following.

[Code]....

All this code works fine. What I want to do now is insert another dynamic table within cell1. Any ideas how to do this. This process can be done on the front end like so but I need it in code behind.

[Code]....

View 1 Replies

Displaying The Creation Date For A File?

Mar 17, 2010

When I try the following code in a sub, it always returns a date of 12/31/1600.

why it's not giving me the correct date?

Dim x
As
New FileInfo("/MainMenu.aspx")
Master.Say(x.CreationTime.ToLongDateString)

View 2 Replies

Jqgrid Creation And Removal Dynamically?

Jan 14, 2011

How to remove and add jqgrid dynamically update the jqgrid The data in the jqgrid has to be changed of click event. how is it possible to remove or update the existing jqgrid

View 2 Replies

ADO.NET :: Optimization In Creation Of Connection String?

Feb 3, 2011

I have an application using data from multiple stored procedures in a single database.The dataacess is disconnected one. Entire data is required during loadtime i.e. all calls made at load time. I want to know what is the most optimized way to do it. As the connection is required with only one database,is there a way to create it once and use it for the next times. I am aware of connection pooling but its anyways done by default. kindly suggest some way to optimize the load time. Also the result set from all the procedures cannot be clubbed so multiple stored procedure invoking is compulsory required.

View 1 Replies







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