Quantcast
Channel: patterns & practices: Prism
Viewing all articles
Browse latest Browse all 1878

New Post: Prism - Adding Service References

$
0
0
Thanks Federico. That link looks to be a winner - I'm not trying to use prism on the WCF side (I'll handle that separately), just consume it from a Prism client.

Edit: Scratch that, they aren't really doing anything different per se. I haven't set up settings in the shell app.config yet, but these issues are at design time.

In terms of the error(s), I've install prism.unityextensions via nuget (and let it install prism and unity as necessary), then ran an update-package on the solution to bring everything up to the current version on nuget. When I attempt to perform an "Update Service Reference" on the reference, I get the below warnings (sorry for the dump):
Warning 1 Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Could not load file or assembly 'Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IService1'] D:\User Folders\MyUser\Documents\Visual Studio 2013\Projects\PrismWithServiceTest\PrismWithServiceTest\Service References\ServiceReference1\Reference.svcmap 1 1 PrismWithServiceTest
Warning 2 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IService1'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IService1'] D:\User Folders\MyUser\Documents\Visual Studio 2013\Projects\PrismWithServiceTest\PrismWithServiceTest\Service References\ServiceReference1\Reference.svcmap 1 1 PrismWithServiceTest
Warning 3 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_IService1'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='Service1']/wsdl:port[@name='BasicHttpBinding_IService1'] D:\User Folders\MyUser\Documents\Visual Studio 2013\Projects\PrismWithServiceTest\PrismWithServiceTest\Service References\ServiceReference1\Reference.svcmap 1 1 PrismWithServiceTest
Warning 4 Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:portType[@name='IService1'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://schemas.microsoft.com/ws/2005/02/mex/bindings']/wsdl:binding[@name='MetadataExchangeHttpBinding_IService1'] D:\User Folders\MyUser\Documents\Visual Studio 2013\Projects\PrismWithServiceTest\PrismWithServiceTest\Service References\ServiceReference1\Reference.svcmap 1 1 PrismWithServiceTest
Warning 5 Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://schemas.microsoft.com/ws/2005/02/mex/bindings']/wsdl:binding[@name='MetadataExchangeHttpBinding_IService1'] XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='Service1']/wsdl:port[@name='MetadataExchangeHttpBinding_IService1'] D:\User Folders\MyUser\Documents\Visual Studio 2013\Projects\PrismWithServiceTest\PrismWithServiceTest\Service References\ServiceReference1\Reference.svcmap 1 1 PrismWithServiceTest
Error 6 Custom tool error: Failed to generate code for the service reference 'ServiceReference1'. Please check other error and warning messages for details. D:\User Folders\MyUser\Documents\Visual Studio 2013\Projects\PrismWithServiceTest\PrismWithServiceTest\Service References\ServiceReference1\Reference.svcmap 1 1 PrismWithServiceTest

Viewing all articles
Browse latest Browse all 1878

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>