By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,401 Members | 803 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,401 IT Pros & Developers. It's quick & easy.

Create a TransparentProxy to a Interface which iplements web service

P: n/a
I have a solution which has 3 layers - GUI, Interface Layer and web
service layer.

GUI layer is referencing Interface Layer and Web service layer also
pointing to interface layer.

GUI layer has following Code:
Dim obj as IFedService = IFedService.BrokerHelper.GetAddress
Dim str as string = obj.GetAddress(ObjData)

objData is class which has only data properties and this class is maked
as Serializable().

Interface Layer has following Code:
It has interfaces and one class which is BrokerHelper class
Inside the brokerHelper class resides the following code.
Public Shared Function GetObject(ByVal [type] As Type) As Object
Return Activator.GetObject([type],
End Function
Public Shared Function GetValidateAddress() As IValidateAddress
Return CType(GetObject(GetType(IValidateAddress)),
End Function

on the web service layer has following codes:
Webthod function GetAddress which takes the objData class as a
parameter and returns the result as a string. this function also
implements the Interface function.
In side the function I am opening a HttpWebRequest object and
HttpWebResponse objects to communicate with other server and we are
pssing xml data.
Note: the web service works fine by itself (with out the interfaces -
so GUI layer reference the web service and invoke the method).

When I run the app with interface I am getting following error.
An unhandled exception of type
'System.Runtime.Remoting.ServerException' occurred in mscorlib.dll

Additional information: System.Web.Services.Protocols.SoapException:
Server did not recognize the value of HTTP Header SOAPAction:
System.Web.Services.Protocols.Soap11ServerProtocol Helper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocol.SetCo ntext(Type
type, HttpContext context, HttpRequest request, HttpResponse response)
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type
type, HttpContext context, HttpRequest request, HttpResponse response,
Boolean& abortProcessing)

Does any one know how to resolve this or does any one has any


Mar 23 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.