Kalde webservice
Min webservice fungerer fint og jeg kan kalde den via web, men jeg får følgende warnings når jeg compiler min klient som skal kalde den:Warning 1 Custom tool warning: Cannot import wsdl:binding
Detail: The required WSDL extension element 'binding' from namespace 'http://schemas.xmlsoap.org/wsdl/http/' was not handled.
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://toolboxweb/']/wsdl:binding[@name='Service1HttpGet'] visual studio 2010\Projects\Test_WebserviceClient\Test_WebserviceClient\Service References\tws\Reference.svcmap 1 1 Test_WebserviceClient
Warning 2 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://toolboxweb/']/wsdl:binding[@name='Service1HttpGet']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://toolboxweb/']/wsdl:service[@name='Service1']/wsdl:port[@name='Service1HttpGet'] visual studio 2010\Projects\Test_WebserviceClient\Test_WebserviceClient\Service References\tws\Reference.svcmap 1 1 Test_WebserviceClient
Nogen ideer? :-/
Warning 2 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://toolboxweb/']/wsdl:binding[@name='Service1HttpGet']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://toolboxweb/']/wsdl:service[@name='Service1']/wsdl:port[@name='Service1HttpGet'] visual studio 2010\Projects\Test_WebserviceClient\Test_WebserviceClient\Service References\tws\Reference.svcmap 1 1 Test_WebserviceClient
Warning 4 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://toolboxweb/']/wsdl:binding[@name='Service1HttpPost']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://toolboxweb/']/wsdl:service[@name='Service1']/wsdl:port[@name='Service1HttpPost'] visual studio 2010\Projects\Test_WebserviceClient\Test_WebserviceClient\Service References\tws\Reference.svcmap 1 1 Test_WebserviceClient
Jeg tilføjer service referencen og instanticerer den med:
tws.Service1SoapClient client = new tws.Service1SoapClient();
Og denne linie fejler med dette:
{"Unrecognized attribute 'decompressionEnabled'. Note that attribute names are case-sensitive. (visual studio 2010\\Projects\\Test_WebserviceClient\\Test_WebserviceClient\\bin\\Debug\\Test_WebserviceClient.vshost.exe.config line 30)"}