Hi, So the return type is a bit off. It should just be an element with a type. So you should use "EndpointReferenceType" bound to the wsa namespace (we don't support using nested complexTypes with element refs or even element refs at the top element. So it should be
<xs:element name="GetResponse" type="wsa:EndpointReferenceType"> As for the other two they should be generating strings. I'm assuming your xs prefix is bound correctly so there must be something else going on. I tried this locally with the latest code and it generated a method that takes two strings. So there must be something eles going on with the wsdl. If you can include more of it that would help. Thanks, Andrew Andrew Eberbach Autonomic Computing (919) 254-2645 T/L: 444-2645 [EMAIL PROTECTED] "Vinh Nguyen \(vinguye2\)" <[EMAIL PROTECTED]> 03/09/2007 04:11 AM Please respond to [email protected] To <[email protected]> cc Subject method signature for wsdl operation Hi all, Perhaps I've been working too hard lately that I'm getting confused again:) Suppose I have a wsdl with the following operation messages: <xs:element name="Get"> <xs:complexType> <xs:sequence> <xs:element name="Name" type="xs:string"></xs:element> <xs:element name="Value" type="xs:string"></xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="GetResponse"> <xs:complexType> <xs:sequence> <xs:element ref="wsa:EndpointReference" /> </xs:sequence> </xs:complexType> </xs:element> Muse generates this capability method: public Element get(Element arg0, Element arg1) I can then update it to: public EndpointReference get(String name, String value) But now, I am trying to implement a WS-Enumeration operation with this wsdl definition: <xs:element name="Enumerate"> <xs:complexType> <xs:sequence> <xs:element name="EndTo" type="wsa:EndpointReferenceType" minOccurs="0"/> <xs:element name="Expires" type="tns:ExpirationType" minOccurs="0"/> <xs:element name="Filter" type="tns:FilterType" minOccurs="0"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> <xs:element name="EnumerateResponse"> <xs:complexType> <xs:sequence> <xs:element name="Expires" type="tns:ExpirationType" minOccurs="0"/> <xs:element name="EnumerationContext" type="tns:EnumerationContextType"/> <xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> <xs:anyAttribute namespace="##other" processContents="lax"/> </xs:complexType> </xs:element> Muse generates this capability method: public Element enumerateOp(Element arg0, Element arg1, Element arg2) If I want to update this signature to not use the Element type, what would I change it to? Would the return value be an Object[]? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
