WCF and Spring.nets ServiceExporter -


has using spring.nets spring.servicemodel.serviceexporter wcf??

some background.....

i'm trying configure wcf services spring.net use in web application

in first iteration of project suceeded configuring service object spring (i gave id requestmanagerservice) , in svc file pointed springs servicehostfactory @ object. svc file looked this:

<%@ servicehost language="c#" debug="true" service="requestmanagerservice" factory="spring.servicemodel.activation.servicehostfactory" %> 

however not want decorate interface/contract [servicecontract] , [operationcontract] attributes. avoid can use springs serviceexporter.

so have set following in web config:

<object id="requestmanagerservice" type="supplyanddemand.messaging.ui.web.requestmanagerservice, supplyanddemand.messaging.ui.web"         singleton="false">       </object>   <system.servicemodel>     <services>       <service name="requestmanagerservice" behaviorconfiguration="defaultbehavior">         <endpoint address="" binding="basichttpbinding" contract="supplyanddemand.shared.interfaces.services.irequestmanagerservice"/>         <endpoint address="mex" binding="mexhttpbinding" contract="imetadataexchange"/>       </service>     </services>     <behaviors>       <servicebehaviors>         <behavior name="defaultbehavior">           <servicemetadata httpgetenabled="true"/>           <servicedebug includeexceptiondetailinfaults="true"/>         </behavior>       </servicebehaviors>     </behaviors>   </system.servicemodel>  <object id="requestmanagerservicehost" type="spring.servicemodel.activation.servicehostfactoryobject, spring.services">    <property name="targetname" value="requestmanagerserviceexporter" /> </object>    <object id="requestmanagerserviceexporter" type="spring.servicemodel.serviceexporter, spring.services">     <!-- target object export-->     <property name="targetname" value="requestmanagerservice"/>     <!-- namespace associated wcf service-->     <property name="namespace" value="http://supplyanddemandapp/"/>     <property name="typeattributes">       <list>         <object type="system.servicemodel.servicebehaviorattribute, system.servicemodel">           <property name="configurationname" value="requestmanagerservice"/>         </object>       </list>     </property>   </object> 

when run web application following error:

"could not find base address matches scheme http endpoint binding basichttpbinding. registered base adress schemes []" error occurs in system.servicemodel.servicehostbase.makeabsoluteuri).

obviously implies need define base address.... belive problem in configuring spring rather wcf since using wcf config worked when didnt use exporter.

the spring docs imply configuration simple , i'm convinced i'm doing fundamentally wrong - has used serviceexporter asp.net web app?

not sure if resolved issue, having similar one. however, using wshttpbinding. being said, in addition bennym's recommendations, had remove following object:

<object id="requestmanagerservicehost"     type="spring.servicemodel.activation.servicehostfactoryobject, spring.services">    <property name="targetname" value="requestmanagerserviceexporter" /> </object> 

it used standalone applications only.


Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -