PHP SOAP - getting strange values back

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pitrow
Forum Newbie
Posts: 1
Joined: Wed Oct 06, 2010 2:30 pm

PHP SOAP - getting strange values back

Post by pitrow »

So here's the deal... I'm new to SOAP and I'm learning the PHP5 soap library as I go. I'm working with a developer who's writing a soap server in J2EE.

I have no problems connecting to the server and getting information from it, but for certain functions, I'm getting NULL values returned. I've talked to the developer and he swears it's working right on his end, and it works fine when he uses it with a java client, so it must be something in the way php handles it.

Anyway, I'm using wsdl2php to generate classes based on his wsdl (which is another issue in itself), so I'm fairly certain that it's not a problem.

Take for example the "user" class built by wsdl2php...

Code: Select all

class user {
  public $address; // string
  public $address2; // string
  public $city; // string
  public $company; // company
  public $email; // string
  public $firstName; // string
  public $id; // int
  public $lastName; // string
  public $phone; // string
  public $postalCode; // string
  public $roles; // string
  public $state; // string
  public $timeZone; // string
  public $userName; // string
}
it's all fine and dandy, but when I get a user from his service, all the fields are populated, except the lastName field, which is always NULL. I have similar problems with other classes, where most of the fields will be populated, except one or two will always be NULL. I have a feeling it's something with the way he has it setup, or the wsdl is wrong or something, but I don't know enough about it yet, and he keeps saying everything is correct on his end.


Sorry for being a total noob at this. Can anyone point me in the right direction? What kind of information do you need to help diagnose this?

Thanks!
Post Reply