Google Mail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Message from discussion Can anyone send me an example of how to send a complex type to a .net service please?

View Parsed - Show only message text

MIME-Version: 1.0
Received: by 10.100.37.20 with SMTP id k20mr37462ank.7.1218014008584; Wed, 06 
	Aug 2008 02:13:28 -0700 (PDT)
Date: Wed, 6 Aug 2008 02:13:28 -0700 (PDT)
In-Reply-To: <58c5ffd40808051413m5096d5c2q2c224f4f1e097196@mail.gmail.com>
X-IP: 195.212.29.163
References: <58c5ffd40808051413m5096d5c2q2c224f4f1e097196@mail.gmail.com>
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.14) 
	Gecko/20080707 Fedora/2.0.0.14-3.oc2 (CK-IBM) Firefox/2.0.0.14,gzip(gfe),gzip(gfe)
Message-ID: <efd03044-10a8-4e10-a18b-f048389dd1f6@b1g2000hsg.googlegroups.com>
Subject: Re: Can anyone send me an example of how to send a complex type to a 
	.net service please?
From: Graham Charters <gchart...@googlemail.com>
To: phpsoa <phpsoa@googlegroups.com>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Bruno,

In theory (given it's the goal of Web services), the fact it's a .NET
service should make no difference.  The difference between SCA and the
SoapClient (I don't know SCO) will largely come down to how you work
with the complexTypes.  With the SoapClient (If I remember correctly),
you will use DOM to create a complex type and can use SimpleXML to
read any complex type which is returned.  With SCA you use SDO to
create and read complex types.

An <any />, which you mentioned in your previous post, is a bit of a
pain to work with.  With SDO, this will result in what is called an
"Open Type" (a type which can take any content).  You will need an XSD
for the content you will put in place of the any (I would assume
the .NET service defines a schema for what can go in place of the
any).  You can then use SDO to create a DataObject for that content,
fill it in and then pass it in the request to the Web service.

Note, I've never needed to work with open types in an SCA client, so
there may be some devils in the details...

For information on open types, see example 4 in the SDO docs:
http://php.net/manual/en/sdo-das-xml.examples.php

I hope this helps.

Regards, Graham.

On 5 Aug, 22:13, "Bruno Reis" <bruno.p.r...@gmail.com> wrote:
> Hi there.
>
> Can someone please send me an example of how to send a complex type to a
> .net service?
> I=B4m having no sucess at this.
> How is the xml supposed to be?
> How do I do it using SCO or SoapClient?
>
> Thanks,

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google