| Author |
Message |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Fri May 25, 2007 4:34 pm Post subject: Can not add a web reference to a new project |
|
|
I am trying to do load testing on a webservice but when I attempt to add a web reference to the project I get the following message:
"There was a problem adding the web reference
Unable to compile Web References Expected class, delegate, enum, interface, or struct.Unable to compile Web References Expected class, delegate, enum, interface, or struct.Unable to compile Web References Expected class, delegate, enum, interface, or struct.Unable to compile Web References Expected class, delegate, enum, interface, or struct.Unable to compile Web References Expected class, delegate, enum, interface, or struct.Unable to compile Web References Expected class, delegate, enum, interface, or struct."
I can access the site that I'm trying to add and can successfully send requests to the service using other applications from my PC.
I have tried this on several machines and get the same result. One of my co-workers is able to add this web reference and successfully test however I will not be able to use this persons PC for testing. Any help would be most appreciated. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Sat May 26, 2007 11:30 pm Post subject: |
|
|
Hi,
I think the first step would be to try using the WSDL tool (c:\program files\ants load\wsdl.exe) and creating a code file for the website, and see if this works. ANTS Load uses this method, then compiles the resulting code file. Running WSDL.exe will tell us if the problem is at the code-generation, or the compilation level.
| Code: |
| "c:\program files\ants load\WSDL.exe /language:VB /namespace:"your-server" /protocol:SOAP /out:Service1.vb http://your-server/webservice.asmx?wsdl |
If this comes out with an error message, please let me know! _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Tue May 29, 2007 4:32 pm Post subject: |
|
|
| No error when I run the WSDL.EXE file, a cmd screen flashes when its ran. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue May 29, 2007 5:06 pm Post subject: |
|
|
Ah, have you run the command from start->run or using the command prompt? If you use start->run the console window will open and close and you will not see any error messages. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Tue May 29, 2007 5:29 pm Post subject: |
|
|
If I put the following through Start>Run
"C:\Program Files\ANTS Load\wsdl.exe /language:VB/namespace:"10.2.6.14"/protocol:SOAP/out:Service1.vb http://10.2.6.14/PCiServerWebService/PCiServerWebService.asmx?wsdl"
I get the following message:
C:\Program Files\ANTS Load\wsdl.exe /language:VB/namespace:"10.2.6.14/protocol:SOAP/out:Service1.vb http:\ is not accessible.
The filename,directory name, or volumne label syntax is incorrect
Is the commands syntax tht im entering correct? When I run it through the command prompt I get a similar message. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue May 29, 2007 5:49 pm Post subject: |
|
|
Okay: slight change in plan. Give this a try. I think the URL needs to be in quotes:
| Code: |
| "c:\program files\ants load\WSDL.exe" /language:VB /namespace:"your-server" /protocol:SOAP /out:Service1.vb "http://your-server/webservice.asmx?wsdl" |
_________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Tue May 29, 2007 7:52 pm Post subject: |
|
|
Alright I think this one worked, when I run that command the following error displays:
Error: Value 'VB/namespace:10.2.6.14/protocol:SOAP/out:Service1.vb' for switch/language is not a known ICodeGenerator or CodeDomProvider. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Tue May 29, 2007 10:20 pm Post subject: |
|
|
Hi,
Looks like you need a space between 'VB' and '/namespace', I think. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Wed May 30, 2007 3:08 pm Post subject: |
|
|
When I run the command I get the following message:
Error: There was an error processing 'http://10.2.6.14/PCiServerWebService/PCiSe
rverWebService.asmx?wsdl'.
- There was an error downloading 'http://10.2.6.14/PCiServerWebService/PCiServ
erWebService.asmx?wsdl'.
- Unable to connect to the remote server
- A connection attempt failed because the connected party did not properly res
pond after a period of time, or established connection failed because connected
host has failed to respond
However I am able to open a browser and browse to the location successfully. I had a co-worker who is able to run ANTS fine run this command and for him it creates a .vb file. |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Wed May 30, 2007 3:19 pm Post subject: |
|
|
Could the difference be that you need to go through a proxy to reach the webservice and your colleague does not? Can you check your 'connections' setting in Internet Explorer and make sure you aren't using a proxy server?
Thanks! _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Wed May 30, 2007 4:02 pm Post subject: |
|
|
I was not setup to use a proxy however I was set to Automatically Detect Settings, which my co-worker was not so I unchecked this option and tried again, below is the new error that I am getting after unchecking this option and making sure that all of my advanced IE options are identical to his.
Error: Initialization failure. Please review input options and documents for validity.
- The type name:"10.2.6.14/protocol:SOAP /out:Service1.vb" on the property:"Na
e" of type:"System.CodeDom.CodeNamespace" is not a valid language-independent t
pe name.
Parameter name: typeName
This is the command I ran:
"C:\Program Files\ANTS Load\wsdl.exe" /language:VB /namespace:"10.2.6.14"/protocol:SOAP /out:Service1.vb "http://10.2.6.14/PCiServerWebService/PCiServerWebService.asmx?wsdl" |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Thu May 31, 2007 9:46 am Post subject: |
|
|
It looks like there is a missing space in the command (after VB). _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Thu May 31, 2007 4:03 pm Post subject: |
|
|
| I double checked and there is a single space after VB, this is the exact command that my co-worker runs and has a .vb file created. Is there some configuration or permissions that would have to do with this failing? |
|
| Back to top |
|
 |
QAPCI
Joined: 08 Jan 2007 Posts: 11
|
Posted: Thu May 31, 2007 4:21 pm Post subject: |
|
|
I just found that another co-worker is able to run the software, the main thing in common with the two machines that are able to run ANTS is that ANTS was installed on these machine over a year ago. All machines are on the same domain in the same network, so the only thing I can think of being the cause of this would be machine conifgurations or permissions or the new install .exe file that I have being bad, any suggestions on any of these. Also would it be possible that this is being cause by some licensing issue?
Thanks, |
|
| Back to top |
|
 |
Brian Donahue
Joined: 23 Aug 2004 Posts: 6348 Location: Red Gate Software
|
Posted: Thu May 31, 2007 4:49 pm Post subject: |
|
|
Are they all the same version of ANTS Load?
There was a change between 1.5 and 1.6 -- the latter and up run on .NET Framework 1.1 and the earlier ran on .NET Framework 1.0. If you have got Load 1.6+ please make sure you have .NET 1.1 installed. _________________ Brian Donahue
Technical Support
Red Gate Software Ltd.
44 (0)870 160 0037 ext 8521
US and CAN 1-866-RED GATE ext 8521 |
|
| Back to top |
|
 |
|