2011-08-29 3 views
4

First Data의 글로벌 게이트웨이 웹 서비스 API를 사용하려고합니다. 첫 번째 이상한 점은 wsdl 및 xsd 파일을 로컬 컴퓨터에 다운로드해야한다는 것입니다. 그런 다음 서비스 참조를 위해 로컬 시스템의 사본을 사용하십시오. 나는 많은 웹 서비스를 사용하지 않았기 때문에 괜찮다고 생각했다.VS2010 서비스 참조를 사용할 때의 사용자 지정 도구 경고

에 추가하고 컴파일을 시도 후 나는 얻을 다음과 같은 오류 :

Warning 1 Custom tool warning: Cannot import wsdl:portType 
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.XmlSerializerMessageContractImporter 
Error: There was a problem loading the XSD documents provided: a reference to a schema element with name 'AVSResponse' and namespace 'http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi' could not be resolved because the element definition could not be found in the schema for targetNamespace 'http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi'. Please check the XSD documents provided and try again. 
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi']/wsdl:portType[@name='FDGGWSApiOrder'] C:\Documents and Settings\user\my documents\visual studio 2010\Projects\sltnProcessCreditCard\ProcessCreditCard\Service References\ServiceReference\Reference.svcmap 1 1 ProcessCreditCard 

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://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi']/wsdl:portType[@name='FDGGWSApiOrder'] 
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi']/wsdl:binding[@name='FDGGWSApiOrderBinding'] C:\Documents and Settings\user\my documents\visual studio 2010\Projects\sltnProcessCreditCard\ProcessCreditCard\Service References\ServiceReference\Reference.svcmap 1 1 ProcessCreditCard 

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://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi']/wsdl:binding[@name='FDGGWSApiOrderBinding'] 
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://secure.linkpt.net/fdggwsapi/schemas_us/fdggwsapi']/wsdl:service[@name='FDGGWSApiOrderService']/wsdl:port[@name='FDGGWSApiOrderPort'] C:\Documents and Settings\user\my documents\visual studio 2010\Projects\sltnProcessCreditCard\ProcessCreditCard\Service References\ServiceReference\Reference.svcmap 1 1 ProcessCreditCard 

내가 여러 곳에서 언급 한 " Reuse types in referenced assemblies"를 시도하고 그게 해결되지 않습니다. 이 오류를 발견 한 사람이 있습니까? 어떻게 그걸 고쳤습니까?

답변

9

나는 적어도 내가 계속 일하게하는 것처럼 보이는 this answer를 발견했다. 그 동안 나는 다른 아이디어에 열려 있습니다.

업데이트 : 그것을 발견하기 쉽게 답을 인용 :

봅니다 .NET 2.0 웹 참조로 추가.

서비스 참조 추가로 이동 한 다음 "고급"버튼을 클릭하십시오. 그런 다음 .NET 2.0 웹 참조로 추가 할 수있는 옵션이 제공됩니다. 나는 이것을했고, 일하게했다. 나는 표준 "Add Service Reference"를 통해 할 수 없었다.

관련 문제