[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-php-user
Subject:    [wsf-php-user] WSF/PHP WSDL HTTPS
From:       "Chandana" <cfonseka () revs ! nsw ! gov ! au>
Date:       2009-08-31 23:45:16
Message-ID: 005b01ca2a95$1784e700$35c1a8c0 () Rod
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi,   

                                                                       

                                                WSF/PHP WSDL HTTPS

 

When I tried to consume a web service over a secure connection, I can see
results in the wso2/log  file (debug mode) but not 

in the php result web page. I'm getting always blanks for all result fields
on the php result page but i can see all result 

fields with correct values in the wso2/log file.

 

I have attached required files including  client program,  client
certificate, wsf_client_log file and wsf_server_log file. 

The client program is a modified version of one of your sample client
programs (wsdl_11_client.php). The sample programs are 

working correctly on my setup.

 

Could someone help me please ?

 

Thanks

 

Chandana


----------------------------------------------------------------------
This message is intended for the addressee named and may contain
confidential information. If you are not the intended recipient,
please delete it and notify the sender. Views expressed in this
message are those of the individual sender, and are not necessarily
the views of REVS and the Office of Fair Trading.

The contents of this message has been automatically scanned, and
whilst all care is taken, it is the recipient's responsibility to
ensure that any attachments are scanned for viruses prior to use.
----------------------------------------------------------------------

[Attachment #5 (text/html)]

<html>

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">


<meta name=Generator content="Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:612.0pt 792.0pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Hi,&nbsp;&nbsp; </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb \
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp \
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& \
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WSF/PHP
 WSDL HTTPS</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>When I tried to consume a web service over a secure
connection, I can see results in the wso2/log&nbsp; file (debug mode) but not \
</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>in the php result web page. I'm getting always blanks for
all result fields on the php result page but i can see all result </span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>fields with correct values in the wso2/log file.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>I have attached required files including&nbsp; client
program,&nbsp; client certificate, wsf_client_log file and wsf_server_log file.
</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>The client program is a modified version of one of your
sample client programs (wsdl_11_client.php). The sample programs are \
</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>working correctly on my setup.</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Could someone help me please ?</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Thanks</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>&nbsp;</span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Chandana</span></font></p>

</div>


<HR>
 This message is intended for the addressee named and may contain 
confidential information. If you are not the intended recipient, please delete it and \
 notify the sender. Views expressed in this message are those of the individual 
sender, and are not necessarily the views of REVS and the&nbsp;Office of Fair \
Trading. <P>The contents of this message has been automatically scanned, and whilst \
all  care is taken, it is the recipient's responsibility to<BR>ensure that any 
attachments are scanned for viruses prior to use.
<HR>

<P></P>
</body>

</html>


["wsdl_revs_vinvrfy_s1.php" (application/php)]

<?php
/*
 * Copyright 2005,2008 WSO2, Inc. http://wso2.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

try {

    $client = new WSClient(array("wsdl"=>"revsWS.wsdl",
                                 "CACert"=>"cabugsy.cer",
                                 "clientCert"=>"mycert.pem"
                                 ));

    $proxy = $client->getProxy();

    $request_id = array(
	    'request_timestamp' => "20080615150109321",
		'request_account_number'         => 'N00080592',
	    'request_sequence_number'         => '0000017'
	 );

	 $enquirer = array(
	     'enquirer_user_id'          => 'BLANK',
		 'enquirer_password'         => 'TEST2345',
		 'enquirer_new_password'       => '',
	     'enquirer_reference' => "wscf20"
	 );


	 $search_registration = array(
	     'search_registration_number'          => 'AXK51E',
	     'search_registration_state'         => 'NSW'
	 );

	 $search_criteria = array(
	      'search_vin_chassis'         => 'JHMCL96806C207079',
	      'search_engine'         => 'K24A34007080',
	      'search_registration' => $search_registration
    );

    $return_val =  $proxy->vinVerify(array("request_id" => $request_id,
                                           "enquirer" => $enquirer,
                                           "search_criteria" => $search_criteria ));

    printf("<strong>Vin Verify Results </strong><br/>");

    printf("Time Stamp: %s <br/>", $return_val["request_timestamp"]);
    printf("Account Number : %s <br/>", $return_val["request_account_number"]);
    printf("Sequence Number : %s <br/>", $return_val["request_sequence_number"]);
    printf("REVS Reference : %s <br/>", $return_val["revs_reference"]);
    printf("Enquirer Reference : %s <br/>", $return_val["enquirer_reference"]);
    printf("VinChassis : %s <br/>", $return_val["search_vin_chassis"]);
	printf("Authority Match Count : %s <br/>", $return_val["authority_match_count"]);
	printf("Authority Engine Match : %s <br/>", $return_val["authority_engine_match"]);
	printf("Authority Registration Match : %s <br/>", $return_val["authority_registration_match"]);

	/*
    * just tried to get something...
    */

	printf("Errors: %s <br/>", $return_val["vinVerify_error"]);
    printf("Result: %s <br/>", $return_val["vinVerify_reply"]);
    print_r($return_val);

    foreach ($return_val as $i => $value) {
	    echo $array[$i];
	}


} catch (Exception $e) {

		printf("Message = %s\n",$e->getMessage());
}
?>

["mycert.pem" (application/octet-stream)]
["wsf_php_client.log" (application/octet-stream)]
["wsf_php_server.log" (application/octet-stream)]
["wsdl_revs_vinvrfy_s1.php" (application/php)]

<?php
/*
 * Copyright 2005,2008 WSO2, Inc. http://wso2.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

try {

    $client = new WSClient(array("wsdl"=>"revsWS.wsdl",
                                 "CACert"=>"cabugsy.cer",
                                 "clientCert"=>"mycert.pem"
                                 ));

    $proxy = $client->getProxy();

    $request_id = array(
	    'request_timestamp' => "20080615150109321",
		'request_account_number'         => 'N00080592',
	    'request_sequence_number'         => '0000017'
	 );

	 $enquirer = array(
	     'enquirer_user_id'          => 'BLANK',
		 'enquirer_password'         => 'TEST2345',
		 'enquirer_new_password'       => '',
	     'enquirer_reference' => "wscf20"
	 );


	 $search_registration = array(
	     'search_registration_number'          => 'AXK51E',
	     'search_registration_state'         => 'NSW'
	 );

	 $search_criteria = array(
	      'search_vin_chassis'         => 'JHMCL96806C207079',
	      'search_engine'         => 'K24A34007080',
	      'search_registration' => $search_registration
    );

    $return_val =  $proxy->vinVerify(array("request_id" => $request_id,
                                           "enquirer" => $enquirer,
                                           "search_criteria" => $search_criteria ));

    printf("<strong>Vin Verify Results </strong><br/>");

    printf("Time Stamp: %s <br/>", $return_val["request_timestamp"]);
    printf("Account Number : %s <br/>", $return_val["request_account_number"]);
    printf("Sequence Number : %s <br/>", $return_val["request_sequence_number"]);
    printf("REVS Reference : %s <br/>", $return_val["revs_reference"]);
    printf("Enquirer Reference : %s <br/>", $return_val["enquirer_reference"]);
    printf("VinChassis : %s <br/>", $return_val["search_vin_chassis"]);
	printf("Authority Match Count : %s <br/>", $return_val["authority_match_count"]);
	printf("Authority Engine Match : %s <br/>", $return_val["authority_engine_match"]);
	printf("Authority Registration Match : %s <br/>", $return_val["authority_registration_match"]);

	/*
    * just tried to get something...
    */

	printf("Errors: %s <br/>", $return_val["vinVerify_error"]);
    printf("Result: %s <br/>", $return_val["vinVerify_reply"]);
    print_r($return_val);

    foreach ($return_val as $i => $value) {
	    echo $array[$i];
	}


} catch (Exception $e) {

		printf("Message = %s\n",$e->getMessage());
}
?>


_______________________________________________
Wsf-php-user mailing list
Wsf-php-user@wso2.org
https://wso2.org/cgi-bin/mailman/listinfo/wsf-php-user


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic