I want to add a service reference in Visual studio 2012, I have a wsdl file and I don't have url to type in url box. I add wsdl file path in my local computer to url box, is it ok? when I add this wsdl file to soapUI its work and return true data in response, but when I add this wsdl file path to visualstudio it not work(return null when I call the method), its force.
in the wsdl file the service url is "http://xxx.xx.xxx.xxx/soap" (and soapUI use this url) but Visual studio don't accept this url because it doesn't have xxx.asmx postfix?
I add the wsdl file path to url box in visual studio and vs generate some files, then I create instance of that service and call web method, like this:
service1.xxxServicesClient proxy=new service1.xxxServicesClient ;
service1.RequestType request= new service1.RequestType;
request.param1="123";
service1.ResponseType response= new service1.ResponseType ;
response= proxy.methodx(request);
I build successfully that, but I get null in response when call the methodx()! I add this wsdl file to soapUI and pass same parameter and soapUI return data(work fine)!
I do not know technology of destination web service, maybe it's a java web service.