Tip: How to change WSDL URL from internal machine name to public in WCF service?

sep 30, 2011 22:38:57   //   Geert Van Huychem   //   Freebies   //   0 reacties

Sometimes when you use wsdl.exe or "Add service reference" in VS, you get a bunch of errors, because the namespaces in the service are all referencing to localhost.

How to avoid this? Fairly easy. Just add the following lines to your config:

                                                    
                                                       
                                                         
                                                         
                    					                     
                        				                        
                            					                    
                        				                        
                     					                    
                                                          
                                                       
                                                    
                                                

Reageer.

Enkele items ontbreken of zijn fout ingevuld.