2016-11-13 39 views
0

これは石鹸機能です。php soapエンティティパラメータを送信

CreateSales(文字列USEREMAIL、文字列UserPass、文字列APIKEY、Entity.Sales販売一覧SalesItemEntity.CustomerカスタマーEntity.Payment支払い、int型BranchId、int型ユーザーID)

Entity.Sales販売 一覧SalesItem Entity.Customerカスタマー Entity.Customerカスタマー

はどのような値に、このパラメータを送信することができます?

私のサンプルコード、

$result = $client->CreateSales(
    array( 
     "UserEmail" => $this->userEmail, 
     "UserPass" => $this->userPass, 
     "ApiKey" => $this->apikey, 
     "Sales" => $client->Sales(
      array(
       "SalesId" => $SalesId, 
       "DepartureRegionId" => $DepartureRegionId, 
       "DepartureDate" => $DepartureDate, 
       "DepartureTime" => $DepartureTime, 
       "ArrivalRegionId" => $ArrivalRegionId, 
       "TransferTypeId" => $TransferTypeId, 
       "PricelistId" => $PricelistId, 
       "PricelistIdLineId" => $PricelistIdLineId 
      ) 
     ), 
     "SalesItem" => $client->SalesItem(
      array(
       "BranchId" => $this->branchID, 
       "SalesDate" => $SalesDate , 
       "ArrivalRegionId" => $ArrivalRegionId, 
       "ArrivalDate" => $ArrivalDate, 
       "ArrivalTime" => $ArrivalTime, 
       "DepartureRegionId" => $DepartureRegionId, 
       "DepartureDate" => $DepartureDate, 
       "DepartureTime" => $DepartureTime, 
       "PaxCount" => $PaxCount, 
       "InfantCount" => $InfantCount, 
       "Notes" => $Notes, 
       "VehicleTypeId" => $VehicleTypeId, 
       "VehicleModelId" => $VehicleModelId, 
       "VehicleId" => $VehicleId, 
       "StatusTypeId" => $StatusTypeId, 
       "PricelistId" => $PricelistId, 
       "PricelistIdLineId" => $PricelistIdLineId, 
       "TransferTypeId" => $TransferTypeId, 
       "SalesTypeId" => $SalesTypeId, 
       "TransferWayTypeName" => $TransferWayTypeName, 
       "TransferDuration" => $TransferDuration, 


      )               
     ), 
     "Customer" => $client->Customer(
      array(
       "SalesId" => $SalesId, 
       "Name" => $Name, 
       "Gsm" => $Gsm, 
       "AlternativeGsm" => $AlternativeGsm, 
       "Email" => $Email, 
       "Adress" => $Adress, 
       "DepartureInformation" => $DepartureInformation, 
       "ArrivalInformation" => $ArrivalInformation, 
       "ReturnInformation" => $ReturnInformation, 
       "Note" => $Note 

      )          
     ), 
     "Payment" => $client->Payment(
      array("PaymentTypeId"=>2) 
     ), 
     "BranchId" => $this->branchID, 
     "UserId" => $this->userID, 
     ) 
    ); 
+1

私たちができるように、(http://stackoverflow.com/help/mcve)[、最小限の完全な、かつ検証例]を投稿してください助けます。 –

答えて

0

おかげイェンス、

私の質問はどのようにエンティティのパラメータを送信することができますか?

マイsoapUrl:http://sistem.transferofis.com/service/YurticiTransferService.svc?wsdl スキーマ:私はCreateSales機能を使用http://sistem.transferofis.com/service/YurticiTransferService.svc?xsd=xsd2

CreateSales(文字列USEREMAIL、文字列UserPass、文字列APIKEY、Entity.Sales販売、リストSalesItem、Entity.Customer顧客、エンティティ.Payment Payment、int BranchId、int UserId)

文字列とintパラメータに問題はありません。しかし、Entity.Sales Sales、Entity.Customer Customer、Entity.Payment Payment、このパラメータをどのように送ることができますか?例えば

私は販売にCreateSales機能で試してみてください。

        "Sales" => $client->Sales(
                 array(
                  "SalesId" => $SalesId, 
                  "DepartureRegionId" => $DepartureRegionId, 
                  "DepartureDate" => $DepartureDate, 
                  "DepartureTime" => $DepartureTime, 
                  "ArrivalRegionId" => $ArrivalRegionId, 
                  "TransferTypeId" => $TransferTypeId, 
                  "PricelistId" => $PricelistId, 
                  "PricelistIdLineId" => $PricelistIdLineId 
                 ) 
                ), 
関連する問題