E
enrico sabbadin
Hi,
is there any attrubute I can place on the web service side to control how
nested types are defined in the WSDL ?
basically I'd like that such a definition
public class a1 {
public string x;
public a2 y;
public class a2 {}
}
is not turned into this on the client side (Add web reference in VS.NET),
where class a2 is no more inside class a1.
public class a1 {
public string x;
public a2 y;
}
public class a2 {}
---------
From the WSDLpoint of view the problem is that WSDL spits out this
<s:complexType name="a1">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="x" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="y" type="s0:a2" />
</s:sequence>
</s:complexType>
<s:complexType name="a2" />
instead of embedding a2 into the a1 definition
thank you for your help
--
(e-mail address removed)
MTS - COM+ - VBCOM - Enterprise Services - Security FAQ
..NET & COM+ books selected list
http://www.sabbasoft.com
"Moving fast is not the same as going somewhere."
is there any attrubute I can place on the web service side to control how
nested types are defined in the WSDL ?
basically I'd like that such a definition
public class a1 {
public string x;
public a2 y;
public class a2 {}
}
is not turned into this on the client side (Add web reference in VS.NET),
where class a2 is no more inside class a1.
public class a1 {
public string x;
public a2 y;
}
public class a2 {}
---------
From the WSDLpoint of view the problem is that WSDL spits out this
<s:complexType name="a1">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="x" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="y" type="s0:a2" />
</s:sequence>
</s:complexType>
<s:complexType name="a2" />
instead of embedding a2 into the a1 definition
thank you for your help
--
(e-mail address removed)
MTS - COM+ - VBCOM - Enterprise Services - Security FAQ
..NET & COM+ books selected list
http://www.sabbasoft.com
"Moving fast is not the same as going somewhere."