Hi all,

I'm an XFire (and SOAP) newbie and I'm having some trouble implementing
(or perhaps understanding) my first service.  Here is my environment:

JBoss 3.2.5
JDK 1.4.2
XFire 1.2.4

I was given a SOAP specification and told to implement a web service
that would conform to that specification.

The method I have in my Service class is:

public void DoMyAction(String token, int code,
            String results) {
...
}

in my corresponding .aegis.xml file, I have the following:

<mapping>
    <method name="DoMyAction">
        <parameter index="0" mappedName="token" nillable="false"/>
        <parameter index="1" mappedName="code" nillable="false"/>
        <parameter index="2" mappedName="results" nillable="true"
minOccurs="0"/>
    </method>
</mapping>

My resulting WSDL contains this:

<xsd:element name="DoMyAction">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element maxOccurs="1" minOccurs="1" name="token"
nillable="true" type="xsd:string"/>
            <xsd:element maxOccurs="1" minOccurs="1" name="code"
type="xsd:int"/>
            <xsd:element maxOccurs="1" minOccurs="1" name="results"
nillable="true" type="xsd:string"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>
<xsd:element name="DoMyActionResponse">
     <xsd:complexType/>
</xsd:element>

I don't understand why the WSDL shows minOccurs="1" for the results
parameter when I specify minOccurs="0" in my .aegis.xml file?

Can someone please explain how to fix this?

Thanks,

Josh


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to