|
| Hi,
I am trying to invoke a RPC encoded webservice using biztalk ( I am not sure
whether biztalk supports it ..but somewhere i read ..it does) . I am getting
a error
"specified type not expected" . Webservice (web method) has 2 parameters
1) An abstract class
2) a string
Here are some code details
[WebMethod]
[SoapRpcMethod(Action="http://tempuri.org/HelloWorld")]
public string HelloWorld(rpm v1,string input)
{
System.Diagnostics.EventLog.WriteEntry("orch1", "Invoked Webservice");
return (((rpmder1)v1).flag.ToString() + input);
}
[SoapType("rpm","http://tempuri.org/rpm"),SoapInclude(typeof(rpmder1))]
public abstract class rpm
{
public rpm()
{
}
public string key;
public int val;
}
[SoapType("rpmder1","http://tempuri.org/rpm")]
public class rpmder1:rpm
{
public rpmder1()
{
}
public int flag ;
}
when I try to invoke it I am getting following error
specified type "rpmder1" not expected at <rpm
xml:ns0=""http://tempuri.org/rpm"
I tried to invoke same webservice using ASP.net client and it works :-).
Also this kind of web service polymorphism works in document literal format
with Biztalk 2004.
Comments / Suggestions expected...
Thanks in advance.
Vijendra
|
|