471,075 Members | 1,148 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

PHP5 + soap extension + WSDL Mode


I'm trying use a webservice with PHP5 soap extension in WSDL mode.
I generated the php classes using wsdl2php.
The problem is that 'auth' member of loginRequest (witch is a complex
type) dosen't get serialized.
The 'version' member witch is decimal is being serialized and sent to
the server.
I am doing something wrong ?
full source code, including generated php classes at

$classmap = array(
'Authentication' => 'Authentication',
'PlainText' => 'PlainText',
'loginRequest' => 'loginRequest',
$gwservice = new GroupWiseService
"location" => "",
"classmap" => $classmap,
"trace" => true,
"exceptions" => true
$pt = new PlainText();
$pt->username ="user";
$pt->password ="secret";
$lr = new loginRequest();
$lr->auth = $pt;
$lr->version =1;

php object:
loginRequest Object
[auth] => PlainText Object
[username] => user
[password] => secret
[language] =>
[version] => 1
[application] =>
xml request:
<?xml version="1.0" encoding="UTF-8"?>

Apr 4 '06 #1
0 1981

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Henrik Brautaset Aronsen | last post: by
reply views Thread by David | last post: by
2 posts views Thread by Tomislav Lepusic | last post: by
3 posts views Thread by parrot toes | last post: by
reply views Thread by jennifer.perkins | last post: by
3 posts views Thread by frustratedcoder | last post: by
reply views Thread by KIM | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.