Click here to Skip to main content
15,890,995 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi Guys,

So I have been asked to see if I can change an existing website to utilize a web-service (which is provided by a company called EmailCenterUK).

Now I opened Visual Studio 2012 express, created a console application and added the following as a service reference:
https://maxemail.emailcenteruk.com/api/soap/file_upload?wsdl[^]
The proxy class was generated with no problems when I did this. They appeared to generate with no errors but in fact they failed in the same ways as the VS2008 attempt does

However, I was then told that it needs to be used with this existing website which as .Net 3.5 and not .Net 4. This is when my issue started, for some reason this wsdl will not work with 3.5 primarily because it cannot find the Soap Encoding definition for the type "Array". This bugs me because if I browse to the following (which is the path provided in the wsdl):
http://schemas.xmlsoap.org/encoding
I can find the "Array" type defined.

Any ideas a) how I can get Visual Studio 2008 (or 2012 with project framework set to 3.5) to read this WSDL? b) Once it is read (if I need to make changes after the read process) how can I make it generate the proxy class(es) ?

I've tried a few things which talk about setting an import so I can specify the location of the namespace file, but I have been unable to get the proxy class to generate.


Hope you can help me. If you need more info let me know.


Information for anyone interested
I have found out the following, by using soapUI I tested the WSDL document for compliance to the WS-I, unfortunately the document does not comply with the standard and as a result Visual Studio is unable to process it. This is not framework dependent or version dependent so my question was a bit misleading.

I adjust this question as follows:

Does anyone have a suggestion on how I can consume a non-compliant service via Visual Studios?
Posted
Updated 5-Aug-13 4:28am
v2

1 solution

Hello,

check this to add a web reference of the URL that you have provide :
but i think you should create it HTTP not HTTPS it will give some error.

http://msdn.microsoft.com/en-us/library/bb628649.aspx[^]

Hope it help.
 
Share this answer
 
Comments
Pheonyx 5-Aug-13 10:23am    
Hi Jokler,

Thanks for that unfortunately it made no difference.
I have however found out that my question is slightly incorrect and know the issue now. But there is no fix for it without getting the owner of the web-service to change their service.
[no name] 5-Aug-13 11:37am    
try when adding the wsdl to your project:
1.right click on Service References then choose Add Service References
2.choose Advanced and then check Allow generation of asynchronous operations
3.Then Press Add Web Reference then add your link

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900