473,399 Members | 2,278 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

PHP5 + soap extension + WSDL Mode

dex
Hi,

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
http://www.rdanet.com/groupwise.zip
------------------------------------------------------------------>source

code:
<?
require_once('./gwservice/GroupwiseService.php');
$classmap = array(
'Authentication' => 'Authentication',
'PlainText' => 'PlainText',
'loginRequest' => 'loginRequest',
);
$gwservice = new GroupWiseService
(
"./wsdl/groupwise.wsdl",
array
(
"location" => "http://10.100.30.66:7191/soap",
"classmap" => $classmap,
"trace" => true,
"exceptions" => true
)
);
$pt = new PlainText();
$pt->username ="user";
$pt->password ="secret";
$lr = new loginRequest();
$lr->auth = $pt;
$lr->version =1;
print_r($lr);
print_r($gwservice->loginRequest($lr));
print_r($gwservice->__getLastRequest());
?>
------------------------------------------------------------------>response**:

php object:
loginRequest Object
(
[auth] => PlainText Object
(
[username] => user
[password] => secret
)
[language] =>
[version] => 1
[application] =>
)
xml request:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.novell.com/2005/01/GroupWise/methods">
<SOAP-ENV:Body>
<ns1:loginRequest><ns1:auth/><ns1:language/><ns1:version>1</ns1:version><ns**1:application/></ns1:loginRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Apr 4 '06 #1
0 2116

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Henrik Brautaset Aronsen | last post by:
I am having problems converting from Pear SOAP to PHP5 SOAP, especially when it comes to complex types. I would be grateful for any help on how this should be translated: ...
0
by: David | last post by:
Hi everyone, I wonder how is it possible to make PHP SOAP extension convert the returned complex type to an instance of one of my classes. Here I give you a short example: complexTest.wsdl:...
0
by: porneL | last post by:
If I use $soapclient->__soapCall(...) with data in PHP arrays, resulting XML uses elements and their contents only. i.e. array('foo'=>array('bar'=>'baz')) is in request as...
2
by: Tomislav Lepusic | last post by:
Hello, I don't know if this is the right group (I'm more in Perl, know nothing about Python), so if you can help me thanks, if not, sorry to bother you. I'm working on my student project and...
3
by: parrot toes | last post by:
Summary: I have been trying to make requests of a web service provided by Axis using a dotnet client with code generated by wsdl.exe and have been getting exceptions when trying to process the...
0
by: jennifer.perkins | last post by:
I've seen a couple posts by people having similar problems, but the suggested solutions I've tried so far haven't worked. I'm using a SOAP client in VB.Net (constructed by wsdl.exe) and the...
3
by: frustratedcoder | last post by:
I need to consume a web service written in Perl but there is no wsdl file for this service. The perl soap client that can call and consume this web service looks like this (if it helps) #!perl...
0
by: KIM | last post by:
Hi! We are trying to realize message-based security with WCF June CTP. We get the messages encrypted but not signed (see SOAP-message below)! We also tried the "Message Security Sample" from the...
0
by: israelekpo | last post by:
phpPaypalPro version 0.2.0 Released The second version of phpPaypalPro has been released. phpPaypalPro is an object-oriented framework developed in PHP5 to integrate easily with the Website...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.