T
Thomas Koch
Hi - does anyone know if it is possible to single out an object for
inclusion in the WSDL of a Web Service?
I have a .asmx file with an associated code-behind file. The code-behind
file has a method:
[WebMethod]
public object[] MyMethod(C1 c1, C2 c2)
The return type is object[] due to the fact that object of differing types
(C3 and C4) can be returned. The types of these objects are all available in
the project.
Now, the WSDL tool does not include the types of the returned objects C3 and
C4, because their types are not explicitly present in the method signature.
My current workaround is to create a dummy web method that contains all the
types in the argument list like this:
[WebMethod]
public void DontCallMe(C1 c1, C2 c2, C3 c3, C4 c4)
which I think is a hack.
I'd be cool if I could do something like this:
[SOAPObject]
public class C3 { ... }
which would cause the object to be included in the WSDL.
Any help would be appreciated.
Regards
Thomas Koch
inclusion in the WSDL of a Web Service?
I have a .asmx file with an associated code-behind file. The code-behind
file has a method:
[WebMethod]
public object[] MyMethod(C1 c1, C2 c2)
The return type is object[] due to the fact that object of differing types
(C3 and C4) can be returned. The types of these objects are all available in
the project.
Now, the WSDL tool does not include the types of the returned objects C3 and
C4, because their types are not explicitly present in the method signature.
My current workaround is to create a dummy web method that contains all the
types in the argument list like this:
[WebMethod]
public void DontCallMe(C1 c1, C2 c2, C3 c3, C4 c4)
which I think is a hack.
I'd be cool if I could do something like this:
[SOAPObject]
public class C3 { ... }
which would cause the object to be included in the WSDL.
Any help would be appreciated.
Regards
Thomas Koch