나는 PHP에서 비누 webservice에 전화를하려고 해요.PHP에서 'DataSet'데이터 구조를 다루는 방법?
webservice는 ADO.NET DataSet 구조를 반환합니다. 이런 종류의 데이터 구조를 다룰 수있는 PHP 라이브러리가 있습니까? 그렇다면 무엇을 부르며 어디에서 찾을 수 있습니까? 그렇지 않다면 언제든지 팁을 주시겠습니까?
지금까지,이 (사용의 ActiveMQ와 NuSoap 라이브러리)이 있습니다
/**
* Create a new service instance
* Provide ActiveMQ uri and the extended class name
**/
$client = new Client('tcp://localhost:61613?tcpNoDelay=false', 'test');
/**
* New service reference
**/
$service = new ServiceProxy($client, 'ServiceName');
/* Service call */
$result = $service->get_clients();
get_clients()를 실제 서비스 요청을하는 방법이며 답례로 데이터 집합 구조를 가져옵니다. 어떻게이 반환 값을 조작 할 수 있습니까?
예를 들어 .NET에는 DataSet 클래스가 있습니다. ADO.NET DataSet에는 컬렉션 (배열)에서 반환되는 하나 이상의 ADO.NET DataColumns 및 DataRow로 구성되는 하나 이상의 ADO.NET DataTable이 있습니다.
데이터 집합이 하나의 DataTable을 포함하는 간단한 코드 예, 할 수 있습니다 :
/**
* Here, the val variable will contain the data positioned in the
* first field of the first DataRow of the first DataTable
**/
string val = dataset.Table[0].Rows[0].ItemArray[0];
내가 PHP에서 동일한 작업을 수행하기를 원하지만 내가 도움의 손길이 필요합니다.
이것은 도움이되지 않지만. 내 깊은 애도 .. 아무도 그걸 겪어야 만 해. – CodingInsomnia
도움이 될 수 있습니다. http://stackoverflow.com/questions/1161576/get-data-from-an-xml-net-dataset-in-php – gideon