I am trying to add a Web Reference on VS2013, using a special option at the "Add Service" menu, it has this descriptions:
"Add a web reference instead of a Service Reference. This will be generate code based on .NET Framework 2.0 Web Services technology."
If I try to add a Web Reference using this address: nameofmachine:8988/example/Reco
And I get this error on the right:
"There was an error downloading 'http://nameofmachine:8988/example/Reco/_vti_bin/ListData.svc/$metadata'. The request failed with HTTP status 404: Not Found."
If I try to add the web reference using this: http://nameofmachine:8988/example/Reco?wsdl
There is no error, and I can't create the Web Reference, but then I have a problem with the "Reference.map" VS auto generate.
Saying something like:
"Custom tool error: Unable to import WebService/Schema. Unable to import binding 'RecoBinding' from namespace 'http://ift.tt/1z6QUE5. The operation 'test_test' on portType 'RecoPortType' from namespace 'http://ift.tt/1z6QUE5' had the following syntax error: The operation has no matching binding. Check if the operation, input and output names in the Binding section match with the corresponding names in the PortType section."
Thank you so much for your help anyways! If someone can tell me something till tomorrow I would be grateful.
Thank you again.
EDIT: The server hosting the service is a local machine of the same network I am at. I read something about the svcutil.exe, but that command should be run on client or server? can I generate only once the missing file "...vti_bin/http://ift.tt/1rtgT3V" and then put it on the server hosting the WSDL?
Aucun commentaire:
Enregistrer un commentaire