logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Question on simpleTypes vs. complexTypes: msg#00005

Subject: Re: Question on simpleTypes vs. complexTypes
This is not a problem that I am aware of.  To help me investigate, I ask that 
you include the following three lines of code in your app

echo '<h2>Request</h2><pre>' . htmlspecialchars($client->request, ENT_QUOTES) . 
'</pre>';
echo '<h2>Response</h2><pre>' . htmlspecialchars($client->response, ENT_QUOTES) 
. '</pre>';
echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . 
'</pre>';

then post the output to this list.

Thanks.

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: "modea" <modea@xxxxxxx>
To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, March 02, 2005 3:59 PM
Subject: [Nusoap-general] Question on simpleTypes vs. complexTypes


> Hello,
> 
> I have a .NET web service I am accessing with nusoap which defines a
> simpleType for a Day-of-the-Week enumeration:
> 
>       <s:simpleType name="DayofWeek">
>         <s:restriction base="s:string">
>           <s:enumeration value="Sunday" />
>           <s:enumeration value="Monday" />
>           <s:enumeration value="Tuesday" />
>           <s:enumeration value="Wednesday" />
>           <s:enumeration value="Thursday" />
>           <s:enumeration value="Friday" />
>           <s:enumeration value="Saturday" />
>         </s:restriction>
>       </s:simplyType>
> 
> When I call a method that has a parameter of that datatype using nusoap's
> "call", the element of type DayofWeek isn't making it to the wire.  If I
> fakeo the WSDL and redefine the DayofWeek as a complexType, I am able to
> send the data (although the server doesn't handle it correctly then).  Is
> there some trick to handling simpleType that I haven't found yet?
> 
> (BTW: this happens with another enumeration type we have as well, so it's
> not a typo or reserved word or something)
> 
> Thanks a lot in advance...
> 
> --
> modea
> 
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Nusoap-general mailing list
> Nusoap-general@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/nusoap-general
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click


<Prev in Thread] Current Thread [Next in Thread>