Re: Binary of HTTP config issues

From: cduden (cduden_at_netfusionservices.com)
Date: 09/01/04


Date: Tue, 31 Aug 2004 18:02:01 -0700

I just cut and pasted your config settings into my server web config and
client appconfig. It works great for me too Sam except when I inspect the
payload of the traffic between client and server it is a soap envelope so I
don't think that the binary serialization is actually happening.

"Sam Santiago" <ssantiago@n0spam-SoftiTechture.com> wrote in message
news:%23rQMM57jEHA.3944@tk2msftngp13.phx.gbl...
> This works for me:
>
> Server config file hosted in IIS. Nothing special since channel must be
> HTTP and client will control formatting:
>
> <system.runtime.remoting>
> <application>
> <service>
> <activated type="My.Class, MyAssembly" />
> </service>
> </application>
> </system.runtime.remoting>
>
> Client Config:
>
> <system.runtime.remoting>
> <application name="OrderServicesClient">
> <client url="http://localhost:8085/">
> <activated type="My.Class, MyAssembly" />
> </client>
> <channels>
> <channel ref="http" port="0">
> <clientProviders>
> <formatter ref="binary" />
> </clientProviders>
> </channel>
> </channels>
> </application>
> </system.runtime.remoting>
>
> Thanks,
>
> Sam
>
> --
> _______________________________
> Sam Santiago
> ssantiago@n0spam-SoftiTechture.com
> http://www.SoftiTechture.com
> _______________________________
> "cduden" <cduden@netfusionservices.com> wrote in message
> news:u4aQht7jEHA.644@tk2msftngp13.phx.gbl...
> > I have tried:
> >
> > Server Web.config:
> > <system.runtime.remoting>
> > <application>
> > <channels>
> > <channel ref="http">
> > <serverProviders>
> > <formatter ref="binary" typeFilterLevel="Full" />
> > </serverProviders>
> > </channel>
> > </channels>
> > <service>
> > <wellknown mode="SingleCall" type="NFC.UserManagement.UserManager,
> > NFC.UserManagement" objectUri="UserManager.rem" />
> > </service>
> >
> >
> > </application>
> > </system.runtime.remoting>
> >
> > Windows Client:
> >
> > <system.runtime.remoting>
> > <application>
> > <channels>
> > <channel type="System.Runtime.Remoting.Channels.Http.HttpChannel,
> > System.Runtime.Remoting"/>
> > <clientProviders>
> > <formatter
> >
type="System.Runtime.Remoting.Channels.BinaryClientFormatterSinkProvider,
> > System.Runtime.Remoting" />
> > </clientProviders>
> > </channel>
> > </channels>
> > </application>
> > </system.runtime.remoting>
> >
> >
> > AND:
> >
> > Server web config:
> > <channels>
> > <channel ref="http">
> > <serverProviders>
> > <formatter ref="binary" typeFilterLevel="Full" />
> > </serverProviders>
> > </channel>
> > </channels>
> >
> >
> > Client config:
> > <system.runtime.remoting>
> > <application>
> > <channels>
> > <channel ref="http" port="0">
> > <clientProviders>
> > <formatter ref="binary" />
> > </clientProviders>
> > </channel>
> > </channels>
> > </application>
> > </system.runtime.remoting>
> >
> > AND Countless other permutations. Using TCPTrace I can see what is
being
> > sent and recieved -- it is either SOAP or it doesn't work.
Consequently
> > the same calls work if I use the following:
> >
> >
> > SERVER:
> > <channels>
> > <channel ref="http">
> > <serverProviders>
> > <provider ref="wsdl" />
> > <formatter ref="soap" typeFilterLevel="Full" />
> > </serverProviders>
> > </channel>
> > </channels>
> >
> > CLIENT:
> >
> > <channels>
> > <channel ref="http" port="0">
> > <clientProviders>
> > <formatter ref="soap" />
> > </clientProviders>
> > </channel>
> > </channels>
> >
> > Using the soap formater. If I attempt to specify the client formatter
and
> > leave the server empty then it works but inspecting the payload reveals
> that
> > it is using SOAP. When I try to force binary it fails with the
following
> > error:
> >
> > Additional information: System.ArgumentNullException: No message was
> > deserialized prior to calling the DispatchChannelSink.
> >
> > Parameter name: requestMsg
> >
> > at
> >
>
System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerC
> > hannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
> > requestHeaders, Stream requestStream, IMessage& responseMsg,
> > ITransportHeaders& responseHeaders, Stream& responseStream)
> >
> > at
> >
>
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
> > erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
> > requestHeaders, Stream requestStream, IMessage& responseMsg,
> > ITransportHeaders& responseHeaders, Stream& responseStream)
> >
> > at
> >
>
System.Runtime.Remoting.Channels.Http.HttpHandlerTransportSink.HandleRequest
> > (HttpContext context)
> >
> > at
> >
>
System.Runtime.Remoting.Channels.Http.HttpRemotingHandler.InternalProcessReq
> > uest(HttpContext context)
> >
> >
> >
> > What am I missing here? How do I set this up to work forcing the binary
> > formatter over HTTP (hosted in IIS).
> >
> >
> >
> > Thanks,
> >
> > CMD
> >
> >
>
>



Relevant Pages

  • openvpn for windows server
    ... -My requirement is client should have 192.168.10.0/24 ipaddress and it ... I am able to connect client to server, but i am not able to ping any ... I am attachting the server config and client config file, ... # clients or if a connecting client has a private ...
    (comp.os.linux.networking)
  • fc5 + openvpn + not routing across the tunnel..
    ... I have configured openvpn in my lab ... bad source address from client, ... the server is configured as follows ... # This config item must be copied to ...
    (Fedora)
  • Re: Slow opening of files
    ... will post the IP config tomorrow when I can access a workstation, ... if they open the file via the Office App itself the file opens ... The client has a member server and the same ...
    (microsoft.public.windows.server.sbs)
  • Re: Offline Files and RDC (Multiple)
    ... Create a computer account on the customers SBS server. ... Well that worked fine on my system - which I'd setup exactly how the clients ... Also its not at all clear whether the message is talkin about the "Client" ... do I remove whatever has got setup to config "multiple remote desktop ...
    (microsoft.public.windows.server.sbs)
  • Re: Offline Files and RDC (Multiple)
    ... tablet PC) and, yes, its from the client side that I've been trying to make ... server or client side please? ... side systems is a config area for Terminal Connections that configures the ...
    (microsoft.public.windows.server.sbs)

Loading