From: Joshua B. <JRB...@lb...> - 2008-05-30 15:52:28
|
<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Sure there are a few ways to deal with this.<br><br>First Option<br><span class="Apple-tab-span" style="white-space:pre"> </span>change the WSDL "minOccurs=0" in the elements that aren't appearing, and regenerated.<br><br>Second Option:<br><span class="Apple-tab-span" style="white-space:pre"> </span>edit the generated code. The attributes basically match the facets you're concerned about.<br><span class="Apple-tab-span" style="white-space:pre"> </span><br>I like the first option. At least then you can send the WSDL back to the service provided and tell them it's wrong.<br><br>-josh<br><br><br>On May 27, 2008, at 6:40 PM, saga99 wrote:<br><br><blockquote type="cite">Josh<br></blockquote><blockquote type="cite"> Thanks a lot to find out the tricky error. The SOAP service<br></blockquote><blockquote type="cite">provider has problem with the respond.<br></blockquote><blockquote type="cite"> I have no control of the SOAP service code. Can I let ZSI to<br></blockquote><blockquote type="cite">ignore such error in the SOAP client code? The data I care is only the<br></blockquote><blockquote type="cite">first <item>. The additional items are extra infomation.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Regards<br></blockquote><blockquote type="cite">Ken QCL<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On May 28, 7:52 am, Joshua Boverhof <jrbover...@lbl.gov> wrote:<br></blockquote><blockquote type="cite"><blockquote type="cite">I found 3 <item> tags in the XML instance, but only the first has a<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><Type> tag. The schema requires "Type" to be specified in all<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">instances.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">( I'm including my earlier response so others interested parties can<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">follow. )<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On May 27, 2008, at 11:02 AM, Joshua Boverhof wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">all these elements are required to be present. By default the<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">"minOccur" and "maxOccur" facets are 1 for both the sequence model<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">group and all local element declarations.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">So you'll need to specify a "vipHeader", and everything else<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">required by the schema. But I don't see you're code here and I<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">don't see the XML instance causing the problem, so I'm not sure.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Turn on "traceroute=sys.stdout", to look at the XML.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">If you need more help give me this stuff.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-josh<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">On May 26, 2008, at 6:30 PM, saga99 wrote:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">I having problem with the ZSI SOAP.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">ZSI.EvaluateException: Element "_Type" missing from complexType<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">the "Type" is defined in wsdl and the response xml contains the "Type"<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">data. Why ZSI complains "Type" missing?<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Joshua, Could you take a look? Thank you very much.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">here is the wsdl:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> <xsd:complexType name="lbvserverstats"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> <xsd:sequence><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> <xsd:element name="name" type="xsd:string"/><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"> <xsd:element name="Type" type="xsd:string"/><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">-------------------------------------------------------------------------<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">This SF.net email is sponsored by: Microsoft<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Defy all challenges. Microsoft(R) Visual Studio 2008.<a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Pywebsvcs-talk mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Pywebsvcs-t...@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Also archived at<a href="http://groups.google.com/group/pywebsvcs">http://groups.google.com/group/pywebsvcs</a><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">-------------------------------------------------------------------------<br></blockquote><blockquote type="cite">This SF.net email is sponsored by: Microsoft<br></blockquote><blockquote type="cite">Defy all challenges. Microsoft(R) Visual Studio 2008.<br></blockquote><blockquote type="cite"><a href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Pywebsvcs-talk mailing list<br></blockquote><blockquote type="cite"><a href="mailto:Pyw...@li...">Pyw...@li...</a><br></blockquote><blockquote type="cite"><a href="https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk">https://lists.sourceforge.net/lists/listinfo/pywebsvcs-talk</a><br></blockquote><blockquote type="cite">Also archived at <a href="http://groups.google.com/group/pywebsvcs">http://groups.google.com/group/pywebsvcs</a><br></blockquote><br></body></html> |