BizTalk Server Applications Integration - web service

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > December 2005 > web service





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author web service
Vijen

2005-12-11, 5:53 pm

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
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com