Element from nested complex type is not created

Issue #98 new
Jean-Philippe Laverdure
created an issue

Hello,

I started using suds (suds-jurko) just recently and everything was going fine until I tried submitting a request. It seems related to the fact that the wsdl describes nested complex types but being quite the N00b at SOAP, I cannot be certain of this !

Here's the offending service as defined in the wsdl:

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="FormHandler" targetNamespace="http://grid.agnis.net/FormHandler">
  <import namespace="http://security.introduce.cagrid.nci.nih.gov/ServiceSecurity" location="FormHandler?wsdl=ServiceSecurity.wsdl">
    </import>
  <types>
    <schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://grid.agnis.net/FormHandler">
      <import namespace="gme://forms.AGNIS/2.0/net.agnis.forms" schemaLocation="FormHandler?xsd=net.agnis.forms.xsd"/>
        <element name="SubmitFormRevisionRequest">
          <complexType>
            <sequence>
              <element name="formRevision">
                <complexType>
                  <sequence>
                    <element maxOccurs="1" minOccurs="1" ref="ns0:FormRevision"/>

(If more is needed, I attached the full wsdl (access to it is, unfortunately, secured)

When I print out the envelope, I get the following output:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="gme://forms.AGNIS/2.0/net.agnis.forms" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://grid.agnis.net/FormHandler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <ns1:Body>
      <ns2:SubmitFormRevisionRequest>
         <ns2:formRevision>
              <form publicId="4637831" version="1.0">
                 <originator uniqueName="cibmtr_center_number:ZZZZ"/>
              </form>

But I should be getting: (At least, if I manually edit to this, the request works)

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="gme://forms.AGNIS/2.0/net.agnis.forms" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://grid.agnis.net/FormHandler" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header/>
   <ns1:Body>
      <ns2:SubmitFormRevisionRequest>
         <ns2:formRevision>
            <ns0:FormRevision>
                <ns0:form publicId="4637831" version="1.0">
                   <ns0:originator uniqueName="cibmtr_center_number:ZZZZ"/>
                </ns0:form>

Notice the missing <ns0:FormRevision> element ? (along with the namespaces for the other elements)

Can you assist me in fixing this issue ? I quite willing to give a hand as long as I can be guided somewhat.

I need be, I can also supply DEBUG dumps of the xsd and wsdl loggers.

Thanks you,

JP

Comments (3)

  1. Log in to comment