Jack is Here, asp.net findings

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Entries for February, 2010

Introduction to Web services with PHP5 SOAP

Is both Google's service and PEAR's SOAP are technically still in beta so there is a strange case from the time the bug occurs. There are other NuSOAP PHP5 SOAP extension and including the SOAP client libraries available, he added, is the same as that presented here is different as the basic theory of implementation details.

Setting up the PEAR SOAP module

Before we can start using SOAP, we had better make sure both PEAR itself and the SOAP module are available. The PEAR package manager is installed by default with PHP 4.3.0 and later, but if you are using an earlier version or it is missing on your system check out the PEAR manual for instructions.

Once you have the package manager installed, you will need to download the SOAP package. On most systems, you can just enter pear install SOAP into a console window. At least, thats the theory. Unless there is a stable release of SOAP available, you will get the message No release with state equal to stable found for SOAP. Try pear install SOAP beta to get the most current version of the package at the time of writing, even though it is in beta, or tell PEAR to accept beta versions without complaint by typing pear config set preferred state beta.

Perhaps you have one or more entries starting with packet calls, followed by failed dependencies. In this case, try the pear install command again to attach, but the dependencies on the command line. For example, if PEAR complains that the Net-DIME package is missing, try pear install SOAP DIME Net instead.

Getting a license key

Once, SOAP After installing the extension, the next step, Google Web API license key to get register and download the development kits. This key SOAP Day 1000 year to the query can be free. Visit http www.google.co.uk API Google Web API, follow the instructions on the next site.

Unzip the developers kit and put it in a convenient place. It only contains samples for accessing the service with .NET and Java, but most of the documentation applies equally to calling Google from PHP.

Decoding the WSDL file

In the developers kit main directory you will find a WSDL file called GoogleSearch.wsdl, which you can open in a text editor or XML browser. This file defines exactly what services we can call using SOAP, though the Google documentation is probably easier to read.

However, we can also see what the SOAP module makes of this file. Create a new PHP page and enter the following.

require once SOAP Client.php
wsdl new SOAP WSDL GoogleSearch.wsdl.
header Content Type text plain
echowsdl generateProxyCode.

Place it somewhere on your server along with GoogleSearch.wsdl and access it through your web browser. Assuming everything is working right, you should get a lot of PHP code output. This code is the result of the SOAP WSDL client class parsing the WSDL file and converting it into PHP functions. This tells us what functions we can call in a rather more readable form than the WSDL document, and is handy particularly if you are using a poorly documented WSDL service.

So how does the code work Let s go through it step by step.

1. First, we load the SOAP client file. If this gives an error, it probably means SOAP isnt installed properly and you should read the instructions above or the PEAR manual.

2. We then create an instance of the SOAP WSDL class, based on the GoogleSearch.wsdl file. This is one of the main classes we are going to use throughout this tutorial it parses the WSDL file and represents it as PHP.

3. Finally, we output the proxy code as plain text. As you can see from the output, in SOAP the proxy is a class that represents the WSDL calls available as PHP functions.

Spell checking with Google

If you have some time to talk about the use of unstable, like me, Google, you may have noticed you mean OK, if misspell a word appears in the search. On the Google network services, so we can add the spell check our PHP applications, but to be honest, it is likely to be better used in practical applications pspell. Enter the following code, you have a string as the first license key.

Simple, ISN t following the first two rows and are simple, the same as the previous example. The fourth line is an object based on a previous look at the code, by calling the method, SOAP can create a proxy request. Finally, we call the doSpellingSuggestion output the results. Web browser access to this page, please refer to your own words in a dictionary.

You may see the object, but in this case SOAP has encountered a problem, the object returned SOAP errors. We will look to deal with these failures in the future some time, but now check whether you entered the correct license key, rather than trying to exhaust your daily 1,000 query limit.

Introduction to Web services with PHP5 SOAP

Note that Google's service and PEAR:: SOAP are technically still in beta, so the odd error, you may meet from time to time. There are other SOAP client libraries available, including the PHP5 SOAP extension and NuSOAP, and while other details of implementation, the basic theory is who are the same as shown here.

Setting up the PEAR SOAP module

Before we can start using SOAP, we had better make sure both PEAR itself and the SOAP module are available. The PEAR package manager is installed by default with PHP 4.3.0 and later, but if you are using an earlier version or it is missing on your system check out the PEAR manual for instructions.

Once you have the package manager installed, you will need to download the SOAP package. On most systems, you can just enter pear install SOAP into a console window. At least, that’s the theory. Unless there is a stable release of SOAP available, you will get the message No release with state equal to ‘stable’ found for ‘SOAP’. Try pear install SOAP-beta to get the most current version of the package at the time of writing, even though it is in beta, or tell PEAR to accept beta versions without complaint by typing pear config-set preferred_state beta.

Perhaps you have one or more entries starting with packet calls, followed by failed dependencies. In this case, try the pear install command again to attach, but the dependencies on the command line. For example, if PEAR complains that lacks the Net_DIME package, try pear install SOAP Net_DIME place.

Getting a license key

After you install the unit SOAP, the next step is to download the package Google Web developers APIs ?and register to get a license key. This key allows you to 1000 SOAP requests a day for free. Visit Google Web APIs (http://www.google.co.uk/apis/) and follow the instructions on the site.

Unzip the developers’ kit and put it in a convenient place. It only contains samples for accessing the service with .NET and Java, but most of the documentation applies equally to calling Google from PHP. ?

Decoding the WSDL file

In the developer’s kit main directory you will find a WSDL file called GoogleSearch.wsdl, which you can open in a text editor or XML browser. This file defines exactly what services we can call using SOAP, though the Google documentation is probably easier to read!

However, we can also see what the SOAP module makes of this file. Create a new PHP page and enter the following.

require_once’SOAP/Client.php’;
$wsdl=new SOAP_WSDL(‘GoogleSearch.wsdl’);
header(‘Content-Type:text/plain);
echo$wsdl->generateProxyCode();

?>

GoogleSearch.wsdl somewhere together and place them on a server, Web access through a browser. Assuming you all right, PHP has a lot of work needs to get the output of code. This code, SOAP_WSDL client is, WSDL file is the result of the analysis, PHP function to convert. This is especially if you are poorly described in WSDL using our convenient services, WSDL is a reflection of the functions can be invoked in the document rather than an easily readable format.

So how does the code work? Let’s go through it step by step:

1. First, we load the SOAP client file. If this gives an error, it probably means SOAP isn’t installed properly and you should read the instructions above or the PEAR manual.

2. We then create an instance of the SOAP_WSDL class, based on the GoogleSearch.wsdl file. This is one of the main classes we are going to use throughout this tutorial: it parses the WSDL file and represents it as PHP.

3. Finally, we output the proxy code as plain text. (As you can see from the output, in SOAP the proxy is a class that represents the WSDL calls available as PHP functions.)

Spell-checking with Google

If you’ve been using Google for a while (and type as erratically as me), you have probably noticed the “Did you mean…” line that appears if you misspell a word in a search. Thanks to the Google web service, we can add this spelling checker to our PHP applications (though to be honest, it would probably be better to use pspell in an actual application). Enter the following code, with your own license key as the first string.

Simple, isn’t it? The first line is trivial and the next two are the same as the previous example. The fourth line creates the proxy object based on the code we looked at earlier, so we can make SOAP requests by calling its methods. Finally, we call doSpellingSuggestion and output the result. Access this page in your web browser, and you should see the word ‘dictionary’ on its own.

You might see ‘Object’ instead, in which case SOAP has encountered a problem and returned a SOAP_Fault object. We will look into dealing with these faults sometime in the future, but for now check if you have entered your license key correctly and not managed to exhaust your 1000 query per day limit (!).

Did you find this article useful?? For more useful tips and?? hints, points to ponder and keep in mind, techniques, and insights pertaining to Internet Business, do please browse for more information at our websites.

<a onClick=”javascript:pageTracker._trackPageview(‘/outgoing/article_exit_link’);” href=”http://www.allhottips.com”>http://www.allhottips.com</a>??????????????????????????????????? ?

<a onClick=”javascript:pageTracker._trackPageview(‘/outgoing/article_exit_link’);” href=”http://www.bookstoretoday.com/”>http://www.bookstoretoday.com</a>

Introduction to Web Services With PHP

Note that the service and PEAR both Google:: SOAP are technically still in beta, so you can find the odd bug from time to time. There are other SOAP client libraries available, including the extension PHP5 soap and NuSOAP, and while implementation details are different the basic theory is the same as presented here.

Setting up the PEAR SOAP module

Before we can start using SOAP, we had better make sure both PEAR itself and the SOAP module are available. The PEAR package manager is installed by default with PHP 4.3.0 and later, but if you are using an earlier version or it is missing on your system check out the PEAR manual for instructions.

Once you have the package manager installed, you will need to download the SOAP package. On most systems, you can just enter pear install SOAP into a console window. At least, that’s the theory. Unless there is a stable release of SOAP available, you will get the message No release with state equal to: ‘stable’ found for ‘SOAP’. Try pear install SOAP-beta to get the most current version of the package at the time of writing, even though it is in beta, or tell PEAR to accept beta versions without complaint by typing pear config-set preferred_state beta.

You can also get one or more of the news package is needed first, followed by dependent failures. In this case, try to add the pear install command again, but the dependence on the command line. For example, if the pear complain Net_DIME packet loss, try to use PEAR to install the SOAP instead Net_DIME.

Getting a license key

Once you have installed the SOAP module, the next step is to download the Google Web API developer kit and registration, to obtain the license key. This key can make up for 1000 SOAP queries a day, free of charge. Visit the Google web site API (http://www.google.co.uk/apis/), and in accordance with the site's instructions.

Unzip the developers’ kit and put it in a convenient place. It only contains samples for accessing the service with .NET and Java, but most of the documentation applies equally to calling Google from PHP.

Decoding the WSDL file

In the developer’s kit main directory you will find a WSDL file called GoogleSearch.wsdl, which you can open in a text editor or XML browser. This file defines exactly what services we can call using SOAP, though the Google documentation is probably easier to read!

However, we can also see what the SOAP module makes of this file. Create a new PHP page and enter the following.

generateProxyCode();

?>

Put it in with you GoogleSearch.wsdl server through your web browser. Suppose all the right to work, you should get a PHP code to a number of outputs. This code is a client-side parsing WSDL file SOAP_WSDL class results, converted to PHP functions. This tells us what we can call the function more readable than the WSDL document, rather than form, is very convenient, especially if you are using a WSDL service records do not.

So how does the code work? Let’s go through it step by step:

1. First, we load the SOAP client file. If this gives an error, it probably means SOAP isn’t installed properly and you should read the instructions above or the PEAR manual.

2. We then create an instance of the SOAP_WSDL class, based on the GoogleSearch.wsdl file. This is one of the main classes we are going to use throughout this tutorial: it parses the WSDL file and represents it as PHP.

3. Finally, we output the proxy code as plain text. (As you can see from the output, in SOAP the proxy is a class that represents the WSDL calls available as PHP functions.)

Spell-checking with Google

If you have been using for some time (like me, unstable), Google, you may have noticed the "Did you mean …" OK, if misspell a word appears in the search. On the Google network services, so we can add the spell check our PHP applications (but to be honest, this is likely to be better used in practical applications pspell). Enter the following code, you have a string as the first license key.

gettProxy();
echo $googleProxy->doSpellingSuggestion($key, ‘diktionary’);

?>

Simple, isn’t it? The first line is trivial and the next two are the same as the previous example. The fourth line creates the proxy object based on the code we looked at earlier, so we can make SOAP requests by calling its methods. Finally, we call doSpellingSuggestion and output the result. Access this page in your web browser, and you should see the word ‘dictionary’ on its own.

You might see ‘Object’ instead, in which case SOAP has encountered a problem and returned a SOAP_Fault object. We will look into dealing with these faults sometime in the future, but for now check if you have entered your license key correctly and not managed to exhaust your 1000 query per day limit (!).

Introduce how to brand your flash video player with HTML code

Introduction:
HTML playerdiy.com digital watermarking plug-in their own brand of HTML code for Web player, your brand, Web pages, Google's AdSense, text links, such as images or HTML code to achieve You can use any shape you can be a player, or video.

Key Features:
Branding your own web player with HTML Code
Watermark added this plug-in can be used as advertising on the player
The HTML Ad Plugin can be used for free after purchase this plugin
Notice: HTML is based on web server, so the added html-ad only can be activated on web server

Limitation of free trial version:
Having a connection with the watermark on our site

About Moyea Web Player:

Moyea Web Player is an easy to use FLV player creator, which, adjusting skinning streaming FLV player and FLV player (flash video player) for the site need only a few mouse clicks. And the creation of player can easily edit through flashvars code.

Where it appears:
After you install this plug-in, on the following interfaces,Advertise” interface (Check out its capability of advertising). Enjoy

Example:

In this example how the line of html code, Web to add a watermark will appear in the player.

To implement the above demo, the step-by-step tutorial as below.

Step 1: Add a video into Moyea Web Player on “Media” interface.

Step 2: Click the HTML watermark pluin on “Addons” tab panel on “Template” interface, and then click “” button.

Entered into the HTML code pop-up window. Pleasenote that the style properties about the watermark must be included in <div> tag. And there must have no <head>, <body> and <html> tags in the html code. (Notice:The value of X-coordinate and X-coordinate can be a negative number. When both values are 0, the watermark will appear at left top of player.)

Step 3: Set the value of “Video list style” is none to remove the playlist and the embed code at the right of player

Step 4: Click “Publish” button on “Publish” interface. Then we could get a web player which is the same as the above demo.

Interview Questions to Prep for

?

As a minimum, go prepared to answer 3 questions:? 1)? Why you?? 2)? Why us?? 3)? And do you have any questions?

1.? Why you?? Why should we be interested in you?? What do you have to offer?? What skills/strengths/expertise can you bring to the role?

Prepare examples of your “strengths in action”.? Here’s an example of how it might sound in an interview:

I perceive* my greatest strength for this role would be that I am a revenue generator.

Probably* one of my better examples would be when I worked as a Sales Rep., from 1992 to 1997 at Sales Inc. (situation).? My job was to sell training courses to SMEs in the UK market and I chose to target sales rep’s in the pharmaceutical sector (action).? I successfully acquired 5 key accounts, and in doing so generated 68k in revenue over 3 quarters (result).

I think* I was successful because I researched my target market, I know my products and I try get the potential client in front of me or on the phone to do most of the talking.

Another of my strengths is that I am strong in client management.? The best example of this that I have is…

I am also process-oriented…

The following is the action of writing the structure of advantages:

a)? Name the strength.

2) to a strength, for example, the use of STAR: The Star representative: the situation and tasks, take action, the results of

c) to explain the power behind your approach: in explaining the secret behind the strength of your measure of the interest of your interviewer. Chances are, if your name and management of an operation strenghts couple, for example, you are doing great already.

* Use moderate and suggestive language. Do not know-it-all who says that he has super-heroic powers. Instead it shall be your strength.

To prepare for your dream job behind the trick – the first update times to prepare for interviews, and edit your resume accordingly. What are the strengths highlighted in the interview you want, and you want, please highlight in your resume.

2.? Why us?? Why are you interested in this company/role??

Research the company.? Look at company’s website for the company’s current CEO? ? annual revenue? ? mission statement? ? products, emerging products ? culture, etc.

Research the position.? Why do you think you would be suitable for this position? Why should we pick you?? Look at the job spec and job spec’s for the same position at different companies.

?

3.? Prepare 3-5 questions for the interviewer :

Your questions to confirm your interest in the position. Not asking questions if the answer is on the website. Do not ask salary and benefits that are brought up these issues by the employer. Possible questions could be the kind of person they are looking for the focus, the work itself and / or opened:

Ideal candidate:? What are the most important qualities are you looking for in a candidate? Can you describe an ideal individual for this position?

Actual job:? What are the day-to-day expectations and responsibilities of this job?? How will my responsibilities and performance be measured? By whom?

Starting date:? When do you plan on making a decision on this position?? When would you expect the successful candidate to start?

?

?