Looks like wsdl2java is supposed to generate the 2-parameter method,
since Muse automatically creates the "queryRequest" wrapper when sending
the request.  The problem is that wsdl2java does not recognize the
<complexContext> or <extension> schema syntax.
 

-----Original Message-----
From: Vinh Nguyen (vinguye2) 
Sent: Tuesday, November 20, 2007 2:18 AM
To: [email protected]
Subject: complex method parameters

Hi,
I'm trying to implement an OSSJ service using the Muse framework, but am
having problems/confusion with the XML schema conventions used by OSSJ.
 
I have an operation input with this message type definition:
 
    <element name="queryRequest">
        <complexType>
            <complexContent>
                <extension base="IteratorRequest">
                    <sequence>
                        <element name="namedQuery"
type="NamedQueryValue" minOccurs="0" />
                    </sequence>
                </extension>
            </complexContent>
        </complexType>
    </element>
    <complexType name="IteratorRequest" abstract="true">
        <sequence>
            <element name="howMany" type="unsignedInt" nillable="true"
minOccurs="0"/>
        </sequence>
    </complexType>
    <complexType name="NamedQueryValue" abstract="true">
        <sequence />
    </complexType>

Should the corresponding capability method have one or two parameters?
wsdl2java currently outputs this:
public Element query(Element param0)
 
But I believe it should be this:
public Element query(int howMany, Element namedQueryValue)
 
Aloha,
-Vinh
 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to