From: Langston, J. <Jam...@co...> - 2010-02-22 16:06:00
|
Sorry to check out for a few of days, I recreated this same call to the service with Java, and did not have any problems. What I noticed is that with Java, the generated classes are creating the elements with arrays, on the Perl side, I did not do that. which is what is accounting for the nils, and I'm now looking at SOAP::WSDL, as well as, SOAP::Data::ComplexType. Are there any good examples of handling: <xs:complexType name="ArrayOfMonitorSiteOrder"> − <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="MonitorSite" nillable="true" type="MonitorSiteOrder"/> </xs:sequence> </xs:complexType> Jim ///////////////////////////////// Jim Langston Technical Consultant jam...@co... The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. From: rahed [mailto:ra...@gm...] Sent: Friday, February 05, 2010 2:06 PM To: Langston, James Cc: soa...@li... Subject: Re: [Soaplite-devel] xsi:nil ? "Langston, James" <Jam...@co...> writes: > I have tried this as well: > > -> outputxml(1) > -> on_action(sub{join '', @_}) > -> soapversion('1.2') > -> envprefix('env') > -> encprefix('enc') > -> autotype(0) > > > I know that the soapversion and envprefix are required, as the call will > fail if not set. The autotype > did not have any effect when I added previously. I just tried again with > the same results, that is, the > xsi:nil="true" is getting added in that element. another question: is > this getting added by > the server, or perl after getting the xsd information back from the > server, but before creating > the envelop to send? Will you send the minimal code which results in xsi:nil="true" type? With use SOAP::Lite +trace=>'all'; $soap = SOAP::Lite->new(uri=>'your_namespace',proxy=>'your_endpoint'); $soap->autotype(0); you will see that type definitions are removed. -- Radek |