function CreditCardChargeAction(){ $ezidebit_client = new \SoapClient("http://ws.cardcall.com.au:8092/CreditCardCharge.svc?WSDL"); $ezidebitRequest = array("biz"=>array("BizID"=>"5","ClientIP"=>"101.178.140.96","HttpReferer"=>"https://www.hellophonecards.com.au/hpchome/recharge.aspx", "BMUserAdminID"=>"1","GMUserAdminID"=>"1","Reason"=>"TPC","CardName" => "1147725","CardNumber" => "4862700011382664","CVV"=>"111", "ExpiryYear" => "16","ExpiryMonth" => "10","Amount" => "10","Currency"=>"AUD", "SerialNo" => "CCAW0101171577","Bonus" => "0")); $soap_result = $ezidebit_client->DoCreditCardCharge($ezidebitRequest);}
$ezidebitRequest 私が呼び出した .NET WebService 関数は DoCreditCardCharge で、パラメータの型は bizbasecontract であり、他のクラスはこのクラスを継承しています。使用する必要があるのは payphonecardbywebsitecontract クラスなので、パラメーターを渡す方法がわかりません。
.NET WebService payphonecardbywebsitecontract では、API テストで対応するクラスを選択できます。ツールを使用していますが、そのようなパラメータを渡すためにどのような形式を使用すればよいかわかりません。
これはその XML 形式です
パラメーターを渡すのに何か問題があるのでしょうか、それとも .Net WebService が適切に記述されていませんか?
まだ書いていない場合はどうすればよいですか?ありがとうございます
コード内のパラメータに従って呼び出すと、エラーが報告されます
ディスカッション (解決策) に返信してください
これは WSDL によって異なります
URL はアクセス可能ですかはい、WSDL ドキュメント
または
print_r($ezidebit_client->getFunctions()); の結果を投稿する必要があります。 ARDHARCH(DOCREDITCARDCHARGE $パラメーター)
DOCREDITCARDCHARCHのみがdocreditCardCharge構造のパラメーターのみを持っています
配列
[biz] => array
([bizid] =>5
。//www.helllyophonecards.com.au /hphome/recharge.aspx
[bmuseradminid] = & gt;
[gt; 理由] = & gt;
[カード番号] => 486270001138266 4
=>>そして順番が間違っています。注: .Net には非常に厳しいパラメーター要件があります
print_r によって出力される結果は、var_dump によって出力されるものよりはるかにきれいですか?
array (size=1) 0 => string 'DoCreditCardChargeResponse DoCreditCardCharge(DoCreditCardCharge $parameters)' (length=77)string 'struct PayOnlyContract { decimal Amount; string CVV; string CardName; string CardNumber; string Currency; int ExpiryMonth; int ExpiryYear; string Notes; string OrderNumber; int UserDialogSubCategoryID;}' (length=213)string 'struct BizBaseContract { int BMUserAdminID; int BizID; string ClientIP; int GMUserAdminID; string HttpReferer; string Reason;}' (length=133)string 'struct PayPhoneCardByWebsiteContract { decimal Amount; decimal Bonus; string CVV; string CardName; string CardNumber; string Currency; int ExpiryMonth; int ExpiryYear; string SerialNo;}' (length=195)string 'struct OrderPinsContract { decimal Amount; decimal Bonus; int CardProductID; string FaceValue; string MerchUniqRef; string OrderNumber; int Qty;}' (length=153)string 'struct PayFlyerCardContract { decimal Amount; decimal Bonus; string CVV; string CardName; string CardNumber; string CardTypePrefix; string Currency; int ExpiryMonth; int ExpiryYear;}' (length=192)string 'struct PayPhoneCardByStaffContract { decimal Amount; decimal Bonus; string CVV; string CardName; string CardNumber; string Currency; int ExpiryMonth; int ExpiryYear; string SerialNo;}' (length=193)string 'struct PayUserContract { decimal Amount; string CVV; string CardName; string CardNumber; string Currency; int ExpiryMonth; int ExpiryYear; int UserID;}' (length=160)string 'struct PayAgentCCContract { decimal Amount; string CVV; string CardName; string CardNumber; int ChargeID; string Currency; int ExpiryMonth; int ExpiryYear; string Note;}' (length=179)string 'struct PayUserDialogContract { decimal Amount; string CVV; string CardName; string CardNumber; string Currency; int ExpiryMonth; int ExpiryYear; string Notes; int UserDialogID; int UserDialogSubCategoryID;}' (length=217)string 'struct ReturnValContract { string Msg; int Success;}' (length=55)string 'struct DoCreditCardCharge { BizBaseContract biz;}' (length=51)string 'struct DoCreditCardChargeResponse { ReturnValContract DoCreditCardChargeResult;}' (length=82)string 'int char' (length=8)string 'duration duration' (length=17)string 'string guid' (length=11)
続きの順に書いてください、私も試しましたが、このようなエラーが報告されます
データ契約とビズIDが一致しません
データ契約とビズIDが一致しません
ということで、これは、私は、問題はまだ .net 側の問題です。
データ契約とビジネス ID が一致しません
データ契約とビジネス ID が一致しません
PayPhoneCardByWebsiteContract は BizBaseContract の継承クラスです
したがって、パラメーターを渡すときに、PayPhoneCardByWebsiteContract タイプを直接渡すことができます。Bizid=5 は、対応する契約タイプを見つけるために自動的に解析されます
これは、bizid=5 が見つかった場合、その後、PayPhoneCardByWebsiteContract タイプに初期化されます
したがって、ID が一致しないエラー、非常に奇妙です。 では、PayPhoneCardByWebsiteContract メソッドが指定されていないのは不思議です
データ コントラクトとビジネス ID が一致しません
データ コントラクトとビジネス ID が一致しません
それでは、.net でメソッドを書き換えて、PayPhoneCardByWebsiteContract メソッドを BizBaseContract に直接追加して、継承しないようにしましょう

thesecrettokeepingaphp-poweredwebsterunningsmootlyunderheavyloadinvolvesseveralkeystrategies:1)emform opcodecoduceSciptionexecutiontime、2)aatabasequerycachingwithiThing withiThistolessendavasoload、

コードをより明確かつ維持しやすくするため、依存関係が関心(DI)に注意する必要があります。 1)DIは、クラスを切り離すことにより、よりモジュール化されます。2)テストとコードの柔軟性の利便性を向上させ、3)DIコンテナを使用して複雑な依存関係を管理しますが、パフォーマンスの影響と円形の依存関係に注意してください。

はい、最適化されたAphPossibleandessention.1)CachingingusapCutoredatedAtabaseload.2)最適化、効率的なQueries、およびConnectionPooling.3)EnhcodeCodewithBultinctions、Avoididingglobalbariables、およびUsingopcodeching

keyStrategIestsoSificlyvoostphpappliceperformanceare:1)useopcodecachinglikeToreexecutiontime、2)最適化abaseの相互作用とプロペラインデックス、3)3)構成

aphpDependencyInjectionContaineriSATOULTAINATINAGECLASSDEPTINCIES、強化測定性、テスト可能性、および維持可能性。

SELECT DEPENTENCINGINOFCENT(DI)大規模なアプリケーションの場合、ServicElocatorは小さなプロジェクトまたはプロトタイプに適しています。 1)DIは、コンストラクターインジェクションを通じてコードのテスト可能性とモジュール性を改善します。 2)ServiceLocatorは、センター登録を通じてサービスを取得します。これは便利ですが、コードカップリングの増加につながる可能性があります。

phpapplicationscanbeoptimizedforspeedandEfficiencyby:1)enabingopcacheinphp.ini、2)PreparedStatementswithpordatabasequeriesを使用して、3)LoopswithArray_filterandarray_mapfordataprocessing、4)の構成ngincasaSearverseproxy、5)

PHPemailvalidationinvolvesthreesteps:1)Formatvalidationusingregularexpressionstochecktheemailformat;2)DNSvalidationtoensurethedomainhasavalidMXrecord;3)SMTPvalidation,themostthoroughmethod,whichchecksifthemailboxexistsbyconnectingtotheSMTPserver.Impl


ホットAIツール

Undresser.AI Undress
リアルなヌード写真を作成する AI 搭載アプリ

AI Clothes Remover
写真から衣服を削除するオンライン AI ツール。

Undress AI Tool
脱衣画像を無料で

Clothoff.io
AI衣類リムーバー

Video Face Swap
完全無料の AI 顔交換ツールを使用して、あらゆるビデオの顔を簡単に交換できます。

人気の記事

ホットツール

SublimeText3 Mac版
神レベルのコード編集ソフト(SublimeText3)

MantisBT
Mantis は、製品の欠陥追跡を支援するために設計された、導入が簡単な Web ベースの欠陥追跡ツールです。 PHP、MySQL、Web サーバーが必要です。デモおよびホスティング サービスをチェックしてください。

ドリームウィーバー CS6
ビジュアル Web 開発ツール

ZendStudio 13.5.1 Mac
強力な PHP 統合開発環境

SublimeText3 中国語版
中国語版、とても使いやすい
