Since it was just a test and I wanted to return more (and better formatted) information, I started messing around with it. I added some types and wrote some schemas that I imported. When I finished adding everything I needed (this was all for one result) I saved it all and tested it. It ran without error, but didn't return anything.
I'm trying to return an array with 8 elements, with differing types. Here are the elements and types of that array:
Title - string
LinkId - int
Date - int
Author - string
Content - string
Id - int
Icon - int
Edited - boolean
It will return 25 of those arrays (per page, the input is an integer for which page of results to get).
I cannot figure out how to serialize the array so that SOAP will return it properly.
Here's the URL to my WSDL file:
http://api.infectionist.com/soap.wsdl
PLEASE help me out, I am completely stuck. I can't see anything wrong with the code, and it's running without errors in PHP and Visual Studio, it's just returning an empty result. I can't figue out how to serialize the array.
Edit: The returned array will also contain a boolean value, HasMorePages, which tells whether or not there are any more pages to be had. The 25 arrays will be nested into another array called News, here's an example:
Expand|Select|Wrap|Line Numbers
- Array
- (
- [HasMorePages] => 1
- [News] => Array
- (
- [0] => Array
- (
- [Title] => "some title"
- [LinkId] => 100
- [Date] => (timestamp)
- [Author] => "HaLo2FrEeEk"
- [Content] => "Some text"
- [Id] => 170
- [Icon] => 1
- [Edited] => 0
- )
- [1] => Array
- (
- [Title] => "some other title"
- [LinkId] => 101
- [Date] => (timestamp)
- [Author] => "HaLo2FrEeEk"
- [Content] => "Some other text"
- [Id] => 177
- [Icon] => 7
- [Edited] => 1
- )
- )
- )