B
Bamse
Hi,
I've noticed that if in a webservice method, I use an enumeration or a
struct of my own, in the project that references that webservice, the
method's signature is changed, e.g:
proj1:
public struct S1
{
public string Member1;
public int Member2;
}
ws_proj
{
DoSomething(S1 myStruct)
{
...
}
}
proj3
{
using proj1;
main()
{
S1 myStruct = new S1();
ws_proj.DoSomething(myStruct); // this line does not
compile: cannot convert proj1.S1 to localhost.S1
}
}
why is this happening and how can be avoided/solved without manually
rewriting reference.cs of the WS?
i use VS .NET 2002.
Thank you,
Daniel
I've noticed that if in a webservice method, I use an enumeration or a
struct of my own, in the project that references that webservice, the
method's signature is changed, e.g:
proj1:
public struct S1
{
public string Member1;
public int Member2;
}
ws_proj
{
DoSomething(S1 myStruct)
{
...
}
}
proj3
{
using proj1;
main()
{
S1 myStruct = new S1();
ws_proj.DoSomething(myStruct); // this line does not
compile: cannot convert proj1.S1 to localhost.S1
}
}
why is this happening and how can be avoided/solved without manually
rewriting reference.cs of the WS?
i use VS .NET 2002.
Thank you,
Daniel