Käynnissä

Port a tiny C# demo application to Java

We provide a SOAP address parsing web service for which we developped a Visual C# demo application. The demo shows how to use our web service.

This C# demo application needs to be ported to Java.

The source code of the demo app is below.

A screenshot of the demo app is attached.

Please use only freely available development tools and include instructions how to re-compile the project.

Project budget is 50 US$

using System;

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

using [url removed, login to view];

namespace RecogniContactDemo

{

public partial class RecogniContactDemoForm : Form

{

public RecogniContactDemoForm()

{

InitializeComponent();

}

private void button1_Click(object sender, EventArgs e)

{

[url removed, login to view] = "";

try

{

//----------------------------------------------------------------

// Create Web Service object

//----------------------------------------------------------------

IRecogniContactWebServiceservice RecogniContact = new IRecogniContactWebServiceservice();

//----------------------------------------------------------------

// Show License Information

//----------------------------------------------------------------

LicenseInfo myLicenseInfo = [url removed, login to view]([url removed, login to view]);

[url removed, login to view] += "LICENSE INFORMATION\r\n";

//license expiry date (as a string)

//empty string = no time limit

[url removed, login to view] += "LicenseExpiryDateAsString= " + [url removed, login to view] + "\r\n";

//permitted total number of parsing operations

//0 = unlimited

[url removed, login to view] += "MaxParsings= " + [url removed, login to view] + "\r\n";

//permitted number of parsing operations per period of time

//0 = unlimited

[url removed, login to view] += "MaxParsingsPerDay= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "MaxParsingsPerWeek= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "MaxParsingsPerMonth= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "MaxParsingsPerQuarter= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "MaxParsingsPerYear= " + [url removed, login to view] + "\r\n";

//IP addresses allowed to call RecogniContact web service

//Empty string = no limitation

[url removed, login to view] += "CallerIPRange= " + [url removed, login to view] + "\r\n";

//licensed Parser countries

//Empty string = no limitation

[url removed, login to view] += "ParserCountries= " + [url removed, login to view] + "\r\n";

//user name associated with license key

[url removed, login to view] += "UserName= " + [url removed, login to view] + "\r\n";

//Additional info about license owner

[url removed, login to view] += "UserInfo= " + [url removed, login to view] + "\r\n";

//----------------------------------------------------------------

// Show Usage Statistics

//----------------------------------------------------------------

[url removed, login to view] += "\r\n";

[url removed, login to view] += "USAGE STATISTICS\r\n";

UsageStats myUsageStats = [url removed, login to view]([url removed, login to view]);

//total number of completed parsing operations so far

[url removed, login to view] += "NumberParsings= " + [url removed, login to view] + "\r\n";

//number of completed parsing operations per period of time

[url removed, login to view] += "NumberParsingsToday= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "NumberParsingsThisWeek= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "NumberParsingsThisMonth= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "NumberParsingsThisQuarter= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "NumberParsingsThisYear= " + [url removed, login to view] + "\r\n";

//----------------------------------------------------------------

// Show Version Information for Parser and Parser Interface

//----------------------------------------------------------------

[url removed, login to view] += "\r\n";

[url removed, login to view] += "VERSION INFORMATION\r\n";

[url removed, login to view] += "GetParserVersionAsString()= " + [url removed, login to view]() + "\r\n";

[url removed, login to view] += "GetInterfaceVersionAsString()=" + [url removed, login to view]() + "\r\n";

[url removed, login to view] += "\r\n";

//----------------------------------------------------------------

// Parse Text and Show Result

//----------------------------------------------------------------

ParsingResult myParsingResult = [url removed, login to view]([url removed, login to view], [url removed, login to view]);

[url removed, login to view] += "\r\n";

[url removed, login to view] += "PARSING RESULT\r\n";

[url removed, login to view] += "Prefix= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "FirstName= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "MiddleName= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "LastName= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Suffix= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Company= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Company2= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Position= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "StreetAddress1= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "StreetAddress2= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "PostboxAddress= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "PostboxPostCode=" + [url removed, login to view] + "\r\n";

[url removed, login to view] += "PostCode= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "PlaceName= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Province= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Country= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Phone1= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Phone2= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Mobile= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Fax= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Email= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Url= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "Gender= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "CountryIsoCode= " + [url removed, login to view] + "\r\n";

[url removed, login to view] += "\r\n";

[url removed, login to view] += "Number of unrecognized items: " + [url removed, login to view] + "\r\n";

for (int i = 0; i < [url removed, login to view]; i++)

{

[url removed, login to view] += "Unrecognized item " + i + "= " + [url removed, login to view][i] + "\r\n";

}

}

catch (SystemException myException)

{

[url removed, login to view] += [url removed, login to view] + "\r\n";

string errorcodeid = "RecogniContact Error ";

if ([url removed, login to view](errorcodeid)) {

string errorcodestring = [url removed, login to view]([url removed, login to view], 2).TrimEnd(':');

int errorcode = [url removed, login to view](errorcodestring);

switch (errorcode) {

case 1: //Invalid license key

//-----------------------------

//The license key provided is invalid

[url removed, login to view] += "errorcode = " + [url removed, login to view](errorcode) + "\r\n";

break;

case 2: //Invalid request IP

//-----------------------------

//The license does not allow web service requests from the current IP address

[url removed, login to view] += "errorcode = " + [url removed, login to view](errorcode) + "\r\n";

break;

case 10://License has expired

//-----------------------------

//A time limit was set for your license and this limit was reached

[url removed, login to view] += "errorcode = " + [url removed, login to view](errorcode) + "\r\n";

break;

case 20://Parsing quota exceeded

//-----------------------------

//A maximum number of permitted parsing operations is set for your license

//and this limit was exceeded.

//The quota can be set per day/week/month/quarter/year or as a total limit

[url removed, login to view] += "errorcode = " + [url removed, login to view](errorcode) + "\r\n";

break;

case 30://Unlicensed country

//-----------------------------

//The country of the specified address or contact data is

//not included in your license

[url removed, login to view] += "errorcode = " + [url removed, login to view](errorcode) + "\r\n";

break;

case 99://Internal RecogniContact server error

//------------------------------------

//An unexprected error occured on the RecogniContact server.

//Please contact LoquiSoft for assistance.

[url removed, login to view] += "errorcode = " + [url removed, login to view](errorcode) + "\r\n";

break;

case 0: //Other error

//-----------------------------

//Exception was not created by RecogniContact

break;

}

}

}

//scroll to end of outputTextBox

[url removed, login to view] = [url removed, login to view];

[url removed, login to view]();

}

}

}

Taidot: Java

Näytä lisää: demo application, your email address is invalid, web development demo, using collections in java, use of collections in java, use case how to, use case drawing, total tools, the catch of the day, text to string, substring in c, substring c, substring 0 2, string source code java, string prefix, prefix string, prefix of a string, new web development tools, new web demo, message scroll, java web development tools, java to c convert, java parse address, java development company, java and company

Tietoa työnantajasta:
( 12 arvostelua ) Vienna, Austria

Projektin tunnus: #445443

Myönnetty käyttäjälle:

interpb

Dear friend pls check your pmb for more details Thanks

30 $ USD 0 päivässä
(54 arvostelua)
6.1

14 freelancers are bidding on average $40 for this job

fstudio

Dear sir, I can do it for you, Could you see PMB for more details? Thanks. Best Regards.

40 $ USD 1 päivässä
(55 arvostelua)
5.5
techstyle

Please check PM for my proposal.

50 $ USD 3 päivässä
(9 arvostelua)
5.1
azksoft

Hi, please check pmb. Thanks.

40 $ USD 1 päivässä
(8 arvostelua)
3.6
speerspitze

I am interested in this project. Have been working .net (C#/C++) for a long time. BR Kurt

39 $ USD 3 päivässä
(3 arvostelua)
2.0
ranacseruet

I can do it for you. Thanks

40 $ USD 2 päivässä
(1 arvostelu)
1.0
maxpsoft

Hello, I'm a JAVA GUI expert. I can do the job just perfect. Hope to hear from you soon.

30 $ USD 1 päivässä
(1 arvostelu)
1.0
serjant2600

I am an experienced Java Programmer, can do that for you in 3 hours.

30 $ USD 0 päivässä
(0 arvostelua)
1.8
okitim

I can help

40 $ USD 1 päivässä
(0 arvostelua)
0.0
eet072423

Sir , I can do this project .I have experiance in Both Java and C #. I can conert your C # code to java.

30 $ USD 3 päivässä
(0 arvostelua)
0.0
coderunner

I'm certified java programmer. i've 14 years experience in C / C++/ visual C++ / C# development. I'll implement it as you expected and i'll guide and support you untill it work 100% with u.

70 $ USD 1 päivässä
(0 arvostelua)
0.0
is00hcw

Hi, I am interested in your project.

40 $ USD 1 päivässä
(0 arvostelua)
0.0
MikeNULL

I'am interested in the project. Get in touch with me

30 $ USD 2 päivässä
(0 arvostelua)
0.0
rajeshv91

I can do this work.

45 $ USD 10 päivässä
(0 arvostelua)
0.0