logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: passing variable amount of complex types to WSDL SOAP webservice?: msg#00093

Subject: Re: passing variable amount of complex types to WSDL SOAP webservice?
The set of SimpleItemType elements is a simple (non-associative) array.  Here's 
how I guess the method should be called.

$SewInfo = array(
    'UserToken' => 'string',
    'UserID' => 'string',
    'EnvironmentID' => int
);
$SimpleItems[] = array(
    'Title' => 'string',
    'Subtitle' => 'string',
    'Description' => 'string'
);
$SimpleItems[] = array(
    'Title' => 'string',
    'Subtitle' => 'string',
    'Description' => 'string'
);
$coll = array(
    'SimpleItemType' => $SimpleItems
);
$params = array(
    'mySewInfo' => $SewInfo,
    'theColl' => $coll
);
$client->call('EzCreateAuctionArray', array('parameters' => $params));

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Olaf Molenveld" <olaf@xxxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, August 26, 2005 8:47 AM
Subject: [Nusoap-general] 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
> 
> 
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>