1. 程式人生 > >phpsoap soapclient引數詳解

phpsoap soapclient引數詳解

An array of options. If working in WSDL mode, this parameter is optional. If working in non-WSDL mode, you must set the location  and uri options, where location is the URL to request and uri is the target namespace of the SOAP service.
$options 陣列型別,如果工作在WSDL模式,該引數可選;如果工作在非WSDL模式,則必須設定location和uri,其中location為請求的URL,uri為SOAP服務的目標名稱空間。

The style and use options only work in non-WSDL mode. In WSDL mode, they come from the WSDL file.
style選項僅在非WSDL模式下起作用,在WSDL模式下該選項已在WSDL檔案中設定。

The soap_version option specifies whether to use SOAP 1.1, or SOAP 1.2 client.
soap_version選項生命使用SOAP協議1.1或1.2版,可能的值有SOAP_1_1,SOAP_1_2。

For HTTP authentication, you may use the login and password options. For making an HTTP connection through a proxy server, use the options proxy_host, proxy_port, proxy_login and proxy_password. For HTTPS client certificate authentication use local_cert and passphrase options.
HTTP代理選項,不用多做解釋。

The compression option allows to use compression of HTTP SOAP requests and responses.
compression壓縮選項,該選項允許壓縮HTTP SOAP協議的請求和返回內容,如SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP。
The encoding option defines internal character encoding. This option does not change the encoding of SOAP requests (it is always utf-8), but converts strings into it.
encoding選項,編碼選項,utf-8、gb2312等,不用多做解釋。

The classmap option can be used to map some WSDL types to PHP classes. This option must be an array with WSDL types as keys and names of PHP classes as values.
classmap選項,把WSDL型別對映為PHP的類,該選項必須是一個數組,把WSDL的型別作為鍵名,把PHP類名稱作為值。

Setting the boolean trace option enables use of the methods SoapClient->__getLastRequest, SoapClient->__getLastRequestHeaders, SoapClient->__getLastResponse and SoapClient->__getLastResponseHeaders.
trace選項,是否啟用除錯資訊,true或false。

The exceptions option is a boolean value defining whether soap errors throw exceptions of type SoapFault.
exceptions選項,如果有錯誤發生的時候是否丟擲SoapFault型別的異常。

The connection_timeout option defines a timeout in seconds for the connection to the SOAP service. This option does not define a timeout for services with slow responses. To limit the time to wait for calls to finish the default_socket_timeout setting is available.
connection_timeout選項,連線超時,單位秒。

The typemap option is an array of type mappings. Type mapping is an array with keys type_name, type_ns (namespace URI), from_xml (callback accepting one string parameter) and to_xml (callback accepting one object parameter).
typemap選項為型別對映陣列,鍵名為型別名稱、名稱空間等。 

The cache_wsdl option is one of WSDL_CACHE_NONE, WSDL_CACHE_DISK, WSDL_CACHE_MEMORY or WSDL_CACHE_BOTH.
cache_wsdl快取選項,型別有WSDL_CACHE_NONE, WSDL_CACHE_DISK, WSDL_CACHE_MEMORY or WSDL_CACHE_BOTH。

The user_agent option specifies string to use in User-Agent header.
user_agent選項,客戶端傳送POST請求的時候在Header資訊中新增的User-Agent頭資訊。

The stream_context option is a resource for context.

The features option is a bitmask of SOAP_SINGLE_ELEMENT_ARRAYS, SOAP_USE_XSI_ARRAY_TYPE, SOAP_WAIT_ONE_WAY_CALLS.
features選項,可選的值有SOAP_SINGLE_ELEMENT_ARRAYS, SOAP_USE_XSI_ARRAY_TYPE, SOAP_WAIT_ONE_WAY_CALLS
如果遇到ArrayOf_xsd_string相關的“No deserializer defined for array type”之類的錯誤時,features=SOAP_USE_XSI_ARRAY_TYPE即可。

相關推薦

phpsoap soapclient引數

An array of options. If working in WSDL mode, this parameter is optional. If working in non-WSDL mode, you must set the location  and uri options, where lo

mencoder和ffmpeg引數2 (轉)

有很多軟體能夠擷取影片影象、合併影象,但如果影片太多,比如視訊網站為使用者上傳的影象生成預覽圖之類的,人工在gui方式下操作就不可取了,我們需要在命令列方式下來擷取、合併。 首先,擷取影片影象使用最多的就是mplayer或者ffmpeg,我用mplayer比較熟,本文就以此為例了,ffmpe

學習筆記--JDK中的URLConnection引數

JDK中的URLConnection引數詳解 針對JDK中的URLConnection連線Servlet的問題,網上有雖然有所涉及,但是隻是說明了某一個或幾個問題,是以FAQ的方式來解決的,而且比較零散,現在對這個類的使用就本人在專案中的使用經驗做如下總結:  1:>

MySQL 8.0.12 mysqlbinlog命令引數

1.版本號不同: # /usr/local/mysql57/bin/mysqlbinlog --version /usr/local/mysql57/bin/mysqlbinlog Ver 3.4 for linux-glibc2.12 at x86_64 # /usr/local/mysql8

maven配置引數

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apach

資料庫mysqldump指令引數

資料庫mysqldump命令引數詳解 --all-databases , -A 匯出全部資料庫。 mysqldump -uroot -p --all-databases --all-tablespaces , -Y 匯出全部表空間。 mysqldump -uroot -p --all-databa

sklearn 神經網路MLPclassifier引數

class sklearn.neural_network.MLPClassifier(hidden_layer_sizes=(100, ), activation=’relu’, solver=’adam’, alpha=0.0001, batch_size=’auto’, learnin

jQuery非同步請求ajax()之complete引數

請求完成後回撥函式 (請求success 和 error之後均呼叫)。這個回撥函式得到2個引數:XMLHTTPRequest) 物件和一個描述請求狀態的字串("success", "notmodified", "nocontent","error", "timeout", "abort", 或者 "

配置 sysctl.conf 系統引數

配置 sysctl.conf 系統引數(vi /etc/sysctl.conf) 引數: 1.記憶體&快取 kernel.sysrq = 0 核心設定驗證為0 kernel.core_uses_pid = 1 控制核心的系統請求除錯功能開啟,控制核心轉儲附加PID到核心檔名,適用於多

Springboot專案java -jar 啟動jar包引數

命令例項: nohup java -Xms500m -Xmx500m -Xmn250m -Xss256k -server -XX:+HeapDumpOnOutOfMemoryError -jar $JAR_PATH/test-0.0.1-SNAPSHOT.jar --spring.profile

Post方式與引數

定義和用法 enctype 屬性規定在傳送到伺服器之前應該如何對錶單資料進行編碼。 預設地,表單資料會編碼為 "application/x-www-form-urlencoded"。就是說,在傳送到伺服器之前,所有字元都會進行編碼(空格轉換為 "+" 加號,特殊符號轉換為 ASCII HEX 值

RabbitMQ-Channel引數

- channel.exchangeDeclare(): type:有direct、fanout、topic三種 durable:true、false true:伺服器重啟會保留下來Exchange。警告:僅設定此選項,不代表訊息持久化。即不保證重啟後訊息還在。原文:true if we

php curl引數

curl_close — 關閉一個cURL會話curl_copy_handle — 複製一個cURL控制代碼和它的所有選項curl_errno — 返回最後一次的錯誤號curl_error — 返回一個保護當前會話最近一次錯誤的字串curl_escape — 使用 URL 編碼給定的字串curl_exec —

部署FTP服務、FTP服務主配置檔案引數

FTP服務 概述: FTP(File Transfer Protocol),是檔案傳輸協議的簡稱。用於Internet上的控制檔案的雙向傳輸。同時, 它也是一個應用程式(Application),使用者可以通過它把自己的PC機與世界各地所有執行FTP協議的伺服器相連, 訪問伺服器上的

JVM配置引數

一、堆引數設定 -XX:+PrintGC 使用這個引數,虛擬機器啟動後,只要遇到GC就會列印日誌 -XX:+UseSerialGC 配置序列回收器 -XX:+PrintGCDetails 可以檢視詳細資訊,包括各個區的情況 -Xms:設定Java程式啟動

HTML——Header:請求頭引數

  Header 解釋 示例 Accept 指定客戶端能夠接收的內容型別 Accept: text/plain, text/html,application/json

U_boot 的 bootcmd 和bootargs引數

U-boot的環境變數值得注意的有兩個: bootcmd 和bootargs。 bootcmd     前面有說過bootcmd是自動啟動時預設執行的一些命令,因此你可以在當前環境中定義各種不同配置,不同環境的引數設定,然後設定bootcmd為你經常使用的那種引數。

Java命令列引數

最近在學習Gradle相關的知識。下載Gradle原始碼後,未能成功匯入IDEA執行。所以想另闢蹊徑,通過命令列來除錯執行Gradle程式。經過一番搜尋和思考。發現Java通過jdwp可以遠端除錯java程式的。在實踐的過程中,對一些命令列引數的含義不是特別清楚。故有此篇文章。 1.

linux中mount命令引數 nfs 引數

分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow 也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!        

OpenCv學習筆記(二)--Mat矩陣(影象容器)的建立及CV_8UC1,CV_8UC2等引數

(一)Mat矩陣(影象容器)建立時CV_8UC1,CV_8UC2等引數詳解 1--Mat不但是一個非常有用的影象容器類,同時也是一個通用的矩陣類 2--建立一個Mat物件的方法很多,我們現在先看一下Mat矩陣/影象容器類在OpenCv中的有關原始碼: 1 2