c# - WCF error calling Ws2007HttpBinding -


i trying data wcf ws2007httpbinding service getting following error every time run it:

content type application/soap+xml; charset=utf-8 not supported service  http://localhost/goldinsacks.mutualfunds.local/mutualfunds.svc.  client , service bindings may mismatched. 

the innerexception reads this:

the remote server returned error: (415) cannot process message because  content type 'application/soap+xml; charset=utf-8' not expected  type 'text/xml; charset=utf-8'.. 

the system.servicemodel section of web.config looks this:

<system.servicemodel>     <services>         <service name="goldinsacks.mutualfunds">             <endpoint address=""                        binding="ws2007httpbinding"                        contract="goldinsacks.mutualfunds.local.imutualfunds" />         </service>     </services>      <bindings>         <ws2007httpbinding>             <binding>                 <security mode="none" />             </binding>         </ws2007httpbinding>     </bindings> </system.servicemodel> 

and client code running in console application looks this:

        endpointaddress address =              new endpointaddress("http://localhost/mutualfunds.local/mutualfunds.svc");          var binding = new ws2007httpbinding();         binding.security.mode = securitymode.none;          channelfactory<imutualfundschannel> channelfactory =              new channelfactory<imutualfundschannel>(binding, address);         imutualfundschannel channel = channelfactory.createchannel();          var mf = channel.getmutualfundsbycustomer(1);          channel.close();          foreach (var m in mf)         {             system.console.writeline(m.name);         }          system.console.readline(); 

the error occurs on call getmutualfundsbycustomer.

i did try wshttpbinding gave same error.

does know how make work?

(i apologize terseness of question it's late , need sleep).

are using same soap version on client , service side? perhaps related? http://social.msdn.microsoft.com/forums/en-us/wcf/thread/f29cd9c8-3c89-43d2-92ae-d2a270ab86b9/

cheers --jocke


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -