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

Received: by 10.215.67.17 with SMTP id u17mr1352868qak.2.1218018974053;
        Wed, 06 Aug 2008 03:36:14 -0700 (PDT)
Return-Path: <bruno.p.r...@gmail.com>
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225])
        by mx.google.com with ESMTP id 7si10140617yxg.0.2008.08.06.03.36.12;
        Wed, 06 Aug 2008 03:36:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of bruno.p.r...@gmail.com designates 209.85.198.225 as permitted sender) client-ip=209.85.198.225;
Authentication-Results: mx.google.com; spf=pass (google.com: domain of bruno.p.r...@gmail.com designates 209.85.198.225 as permitted sender) smtp.mail=bruno.p.r...@gmail.com; dkim=pass (test mode) header...@gmail.com
Received: by rv-out-0506.google.com with SMTP id b25so2698415rvf.45
        for <phpsoa@googlegroups.com>; Wed, 06 Aug 2008 03:36:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to
         :subject:in-reply-to:mime-version:content-type:references;
        bh=rfXT7SEmG7szIvnO0HrH2vpfSFbvkhWLLwywEZ21s/0=;
        b=Tziug9VwYbVG+DbD49OnQBTF0h5IiBq9Mt6jB5g47eVodS9D4hRbwOlqFnjNGWideR
         KY+DfEgSF29T5EfY+9aWU86+aSQ1JgZKXcNtPirhC299oRZctZ2n3laUCO26kWcIkDI9
         +ydTt/OvazcaC67gMMHler0wTA3sPjOQs7xSw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:in-reply-to:mime-version
         :content-type:references;
        b=nU1D//iBiaPwwpI9DRIEGb5yNNC+i/0dWrk5uH0MRrVWJZLsif37j9s7V2B3yEZamg
         CxDZIt+yb1fYsAoC0jKorcQlqCBWhuC+hXy21+oGQ53XJKOAeoWm/LlrwYhI+EHprQP9
         b/d1of2juYG0rkKNc+CvIzMlw4gtuR3Uao9wE=
Received: by 10.141.198.9 with SMTP id a9mr8793685rvq.108.1218018972390;
        Wed, 06 Aug 2008 03:36:12 -0700 (PDT)
Received: by 10.141.197.11 with HTTP; Wed, 6 Aug 2008 03:36:12 -0700 (PDT)
Message-ID: <58c5ffd40808060336w4a818242jcd2ee0162bc69283@mail.gmail.com>
Date: Wed, 6 Aug 2008 07:36:12 -0300
From: "Bruno Reis" <bruno.p.r...@gmail.com>
To: phpsoa@googlegroups.com
Subject: Re: [phpsoa] Re: Can anyone send me an example of how to send a complex type to a .net service please?
In-Reply-To: <efd03044-10a8-4e10-a18b-f048389dd...@b1g2000hsg.googlegroups.com>
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_Part_4520_27483216.1218018972377"
References: <58c5ffd40808051413m5096d5c2q2c224f4f1e097...@mail.gmail.com>
	 <efd03044-10a8-4e10-a18b-f048389dd...@b1g2000hsg.googlegroups.com>

------=_Part_4520_27483216.1218018972377
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks.

I have few experience with ws at all. But one thing I think is different on
this service I want to consume is the fact that it declares an open type in
the wsdl and then it puts a schema declaration inside the response.

2008/8/6 Graham Charters <gchart...@googlemail.com>

>
> 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,
> > Bruno
> >
>

------=_Part_4520_27483216.1218018972377
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Thanks.<br><br>I have few experience with ws at all. But o=
ne thing I think is different on this service I want to consume is the fact=
 that it declares an open type in the wsdl and then it puts a schema declar=
ation inside the response. <br>
<br><div class=3D"gmail_quote">2008/8/6 Graham Charters <span dir=3D"ltr">&=
lt;<a href=3D"mailto:gchart...@googlemail.com">gchart...@googlemail.com</a>=
&gt;</span><br><blockquote class=3D"gmail_quote" style=3D"border-left: 1px =
solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi Bruno,<br>
<br>
In theory (given it&#39;s the goal of Web services), the fact it&#39;s a .N=
ET<br>
service should make no difference. &nbsp;The difference between SCA and the=
<br>
SoapClient (I don&#39;t know SCO) will largely come down to how you work<br=
>
with the complexTypes. &nbsp;With the SoapClient (If I remember correctly),=
<br>
you will use DOM to create a complex type and can use SimpleXML to<br>
read any complex type which is returned. &nbsp;With SCA you use SDO to<br>
create and read complex types.<br>
<br>
An &lt;any /&gt;, which you mentioned in your previous post, is a bit of a<=
br>
pain to work with. &nbsp;With SDO, this will result in what is called an<br=
>
&quot;Open Type&quot; (a type which can take any content). &nbsp;You will n=
eed an XSD<br>
for the content you will put in place of the any (I would assume<br>
the .NET service defines a schema for what can go in place of the<br>
any). &nbsp;You can then use SDO to create a DataObject for that content,<b=
r>
fill it in and then pass it in the request to the Web service.<br>
<br>
Note, I&#39;ve never needed to work with open types in an SCA client, so<br=
>
there may be some devils in the details...<br>
<br>
For information on open types, see example 4 in the SDO docs:<br>
<a href=3D"http://php.net/manual/en/sdo-das-xml.examples.php" target=3D"_bl=
ank">http://php.net/manual/en/sdo-das-xml.examples.php</a><br>
<br>
I hope this helps.<br>
<br>
Regards, Graham.<br>
<div><div></div><div class=3D"Wj3C7c"><br>
On 5 Aug, 22:13, &quot;Bruno Reis&quot; &lt;<a href=3D"mailto:bruno.p.r...@=
gmail.com">bruno.p.r...@gmail.com</a>&gt; wrote:<br>
&gt; Hi there.<br>
&gt;<br>
&gt; Can someone please send me an example of how to send a complex type to=
 a<br>
&gt; .net service?<br>
&gt; I=B4m having no sucess at this.<br>
&gt; How is the xml supposed to be?<br>
&gt; How do I do it using SCO or SoapClient?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Bruno<br>
</div></div><br>
</blockquote></div><br></div>

------=_Part_4520_27483216.1218018972377--


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