• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

I need a PHP/JAVA expert

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
bilgehanyildirim
Asked:
bilgehanyildirim
  • 7
  • 6
1 Solution
 
byteniksolutionsCommented:
Sure, ask away.
0
 
bilgehanyildirimAuthor Commented:
Perfect! would you like me to send the SDK manual before we start?
0
 
byteniksolutionsCommented:
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
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
bilgehanyildirimAuthor Commented:
give me 2 sec. I will upload it to my server
0
 
bilgehanyildirimAuthor Commented:
0
 
byteniksolutionsCommented:
Alright, now how can I help? :-)
0
 
bilgehanyildirimAuthor Commented:
:)
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
 
byteniksolutionsCommented:
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
 
bilgehanyildirimAuthor Commented:
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
 
byteniksolutionsCommented:
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
 
bilgehanyildirimAuthor Commented:
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
 
byteniksolutionsCommented:
Thanks!

I've subscribed for email notification to this question, so if you ask anything further I'll get notified.
0
 
bilgehanyildirimAuthor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now