473,386 Members | 1,846 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,386 software developers and data experts.

Trying to call SOAP Function

Hi

i am trying too call a soap function that expect to parameters. One is
a complex type and one is xsd_long. Unfortunately i can't get anything
working. The complex type is this:
<complexType name="MainData">
<sequence>
<element name="customer" nillable="true" type="xsd:string"/>
<element name="password" nillable="true" type="xsd:string"/>
<element name="id" type="xsd:long"/>
<element name="hash" nillable="true" type="xsd:base64Binary"/>
</sequence>
</complexType>

an the function is this:
<wsdl:message name="getInfoRequest1">
<wsdl:part name="mainData" type="impl:MainData"/>
<wsdl:part name="id" type="xsd:long"/>
</wsdl:message>

now i am trying to call this funtions like this
$a_dat = array('customer' =$c_customerID, 'password' =>
$c_customerPW, 'id' =0, 'hash' ='');
$client->getInfo($a_dat, 1212);

I am getting an error that says:
SOAP-ERROR: Encoding: object hasn't 'id' property in /srv/www/htdocs/
soap.php:47 Stack trace: #0 [internal function]: SoapClient-
>__call('getInfo', Array) #1 /srv/www/htdocs/soap.php(47): SoapClient-
getInfo(Array) #2 {main}
I can't find any working example showing how to handle complex types
and longs in parameters.
Can anybody help?

many thanks

bernhard
Aug 4 '08 #1
0 1068

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

Similar topics

0
by: Unbreakable | last post by:
I am using the nusoap client and nusoap server without any problem. However, once I change the client to the excel, I am not sure how to call the nusoap server. Especially the nusoap server only...
5
by: TC | last post by:
Hello, I have been asked to port a VB6 / SOAP SDK app to C# .Net using web services and do it quickly. I have a remote SOAP interface that I've referenced and can now call methods on. What I...
2
by: Greg Merideth | last post by:
This little bugger of a problem took us most of the day to track down but I'm glad it happened as I would like to know why the WSDL generated code that operates inside of a try..catch block throws...
0
by: Josh Harris | last post by:
You can copy and paste the following into a .aspx page (change names for your purpose) and it will call a webservice on every 1 minute. I used this piece of code for the purpose of refreshing a...
6
by: Siegfried Heintze | last post by:
I have the following C# code in my web service: public static extern double add_(double X, double Y ); public double add (double X, double Y){ return add_(X, Y); }
0
by: Sean OConnor | last post by:
I have three servers, public web server (e.g. web1), file server (file1), and web services server (service1). web1 is in the DMZ and file1 and service1 are internal. I'm calling the webservices...
0
by: lvpaul | last post by:
Hello ! I am calling a .NET Webservice and getting back a ADO.NET Datatset. How can I convert this to an PHP-Array ? $ergebnis = $m_service->call( $function, $data ); print_r($ergebnis)...
0
by: Werner Willemsens | last post by:
Hi, I have the following situation. COM server exposed on Windows CE 5.0 through SOAP (SOAP toolkit) C# client on XP calls Web Service methods on CE (COM)SOAP server. The complete call takes...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...

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.