?
Solved

I need a PHP/JAVA expert

Posted on 2006-05-25
13
Medium Priority
?
273 Views
Last Modified: 2008-02-01
Hi there,

I am looking for an expert who will help me through a project which is integrating Barclays Chip and Pin service on our web site.

Current Conf is
1. Dedicated server running Redhat
2. PHP (java integration enabled and working)
3. Required JAVA sdk is installed and working ( I think so)

I have documentation about the SDK (includes a Java example)

I assume I will ask around 20 questions :)))))) and each of them will worth 500 points.

Please let me know if you are interested.

Regards,
Bill
0
Comment
Question by:bilgehanyildirim
  • 7
  • 6
13 Comments
 
LVL 1

Expert Comment

by:byteniksolutions
ID: 16781116
Sure, ask away.
0
 

Author Comment

by:bilgehanyildirim
ID: 16781119
Perfect! would you like me to send the SDK manual before we start?
0
 
LVL 1

Expert Comment

by:byteniksolutions
ID: 16781124
That's be great. Can you post it online (on a web site, perhaps?) so that these solutions will be relevant for those who are reading them later?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

Author Comment

by:bilgehanyildirim
ID: 16781135
give me 2 sec. I will upload it to my server
0
 
LVL 1

Expert Comment

by:byteniksolutions
ID: 16781159
Alright, now how can I help? :-)
0
 

Author Comment

by:bilgehanyildirim
ID: 16781174
:)
Ok, I managed to instal the Java SDK and it is working.
When I run this
<?php

$a = new Java ('com.arcot.xfms.XFMS_Java_API');
$b = new Java ('com.arcot.xfms.XFMSFactory');
$e = new Java ('com.arcot.xfms.ErrorDetail');

$aa = $a->AuthPossibleResult;
$ee = $a->ErrorDetail;

$a = $b->getConfiguredInstance();
echo "Version of the API : ".$a->getVersion()."<br>";

?>

it says
Version of the API : 5,2,0,0

which meas it is working.

when I try to use this method

$a->checkIfAuthPossible('4111111');

it says

Warning: com.arcot.xfms.ErrorDetail in /home/httpd/vhosts/******.com/httpdocs/Examples/PHP_JAVA_Example_1.php on line 12

I assume there is an exception occuring and it creating or trying to create this 'com.arcot.xfms.ErrorDetail'.
I am not using PHP 5 so I don't know how can I read the errormessage contents
0
 
LVL 1

Expert Comment

by:byteniksolutions
ID: 16781188
Unfortunately, I've never developed anything using objects, let alone Java objects, in PHP4. PHP5 is a much nicer framework to work with objects. However, I'll try to help you.

To read the error, have to attempted to use the java error handling functions? Try this:

$ex = java_last_exception_get();

if ($ex) {
  echo $ex->toString();
}

Let me know if you get a proper Java error echoed back.
0
 

Author Comment

by:bilgehanyildirim
ID: 16781213
Thanks for your time!

this is the output
Version of the API : 5,2,0,0

Warning: com.arcot.xfms.ErrorDetail in /home/httpd/vhosts/rankhour.com/httpdocs/Examples/PHP_JAVA_Example_1.php on line 12
com.arcot.xfms.ErrorDetail  ----- > This is new :)
0
 
LVL 1

Accepted Solution

by:
byteniksolutions earned 2000 total points
ID: 16781253
On page 31 of the spec, it shows:

public class ErrorDetail {
  public int errNum = 0;
  public String errMsg = "";
}

Try echoing out $ex->errMsg and let me know how that goes.
0
 

Author Comment

by:bilgehanyildirim
ID: 16781295
My friend you are a STAR!!!!
You get all points!!!
Please keep an eye on this question. Whenever I ask a new question, I will post it here. if you are interested, I'd really appreciate!
0
 
LVL 1

Expert Comment

by:byteniksolutions
ID: 16781303
Thanks!

I've subscribed for email notification to this question, so if you ask anything further I'll get notified.
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Suggested Courses
Course of the Month17 days, 11 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question