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

passing variable amount of complex types to WSDL SOAP webservice?

Hello,

i have a problem using a .NET WSDL Webservice from PHP. Using both the
NuSOAP lib for PHP4, and the build-in SOAP lib for PHP5 it seems that the
SOAP client cannot pass a variable amount of complex datatypes to the WSDL
webservice.

This is the request-structure we've been using:

<EzCreateAuctionArray xmlns=http://www.blabla.com>
<mySewInfo>
<UserToken>string</UserToken>
<UserID>string</UserID>
<EnvironmentID>int</EnvironmentID>
</mySewInfo>
<theColl>
<SimpleItemType>
<Title>string</Title>
<Subtitle>string</Subtitle>
<Description>string</Description>
</SimpleItemType>
<SimpleItemType>
<Title>string</Title>
<Subtitle>string</Subtitle>
<Description>string</Description>
</SimpleItemType>
</theColl>
</EzCreateAuctionArray>

as you can see this structure is setup to accept a variable amount of
<SimpleItemType> datastructures. When setting up the correct data in PHP i
am using associative arrays and this works fine. The problem is that the
associative index-key needs to be exactly the same as the item-name in the
WSDL request structure. So if i f.e. use "theColtest123" instead of
"theColl" the request cannot be created correctly as there isn't a match
between the WSDL and my input data structure. This is not really a problem,
but it becomes one when i want to add multiple items of the
"SimpleItemType". It's impossible to add more than 1 of these to an
associative array because the key has to be unique. And by using other
key-names the WSDL structure is not the same anymore, so the request isn't
passed.

Can anyone tell me if there is a way to pass a variable amount of complex
datatypes from within PHP to a WSDL SOAP webservice?

Cheers! Olaf

Aug 26 '05 #1
0 2496

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

Similar topics

2
by: burdeen | last post by:
I've been trying to return an array with PHP5 soap. Is this not supported? or am i doing it wrong? Seems to return on the last element in the array. In my WSDL i've defined my return type as a...
0
by: Bartas | last post by:
Hi, I'am writting a simple SOAP client in python (2.4) using SOAPpy lib. I've met with this problem: when I want to send a list of complex type using some method from WebService(java,WAS), ...
7
by: stephan querengaesser | last post by:
hi ng, i try to invoke a webservice-method with an filter-object, that contains value types. if i donīt want to filter the return value of the method, i have to pass a new instance of the...
0
by: saish | last post by:
Hello I am new to vb.net webservice. My requirement is to design a VB.net web service which will send and receive xml documents. The xml document send and received would be a very complex .xsd...
1
by: leslie_tighe | last post by:
Hello, I have webservice created with Axis 1.2.1 and that I am trying to consuming in .NET (VB) using the Microsoft provided tools. While I am able to consume methods on the service that return...
7
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure...
1
by: louis_la_brocante | last post by:
Dear all, I am having trouble generating a client proxy for a webservice whose methods return a "complex" type. The type is complex in that it is a class whose members are a mix of primitive...
6
by: nickname | last post by:
I want to pass some xml to a web service method, the xml will confirm to a defined schema. Lets say the schema is defined as: <xs:schema attributeFormDefault="unqualified"...
0
by: shaily | last post by:
hi I have a java web service called "Registration service" and C# client which is a consumer of that service java web service running under Tomcat has following interface API exposed ...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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: 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
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...

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.