2013年7月24日星期三

VS2012 webservice problem can not be called

In win8 system, using vs2012 Ultimate, create a simple C # ASP.NET service, and then in another project (win8metro App) Right click Add Service Reference, and then put the webservice address to it, and then add reference, but it creates an instance of webservice when unsuccessful, such as my name is a reference to localhost, the method call webservice wrote: localhost.serverice instance = new localhost.serverice (); And when I write Tip no serverice missing references, on the contrary can only be called localhost following servericeSoap, which is what does that mean? Solving


------ For reference only ----- ----------------------------------
tune with ServiceSoapClient method inside
---- - For reference only ---------------------------------------
you try add web reference -> Advanced -> add web reference
------ For reference only ------------------------- --------------



Thank you, I found the problem, and I of this project is win8 metro app add references of the service, which simply do not add advanced web reference this one, but with that ServiceSoapClient instance to invoke the webservice method does not work, no helloworld () This one may be win8's App does not support webservice it, you know why Well?
------ For reference only -------------------------------------- -
understand, I am also the same problem.
------ For reference only -------------------------------------- -
same question, this damn broken, does the landlord resolved not
------ For reference only -------------------- -------------------
 
localhost.localhostSoapClient api = new localhost.localhostSoapClient (); / / Call the methods inside
api api.helloworld ();
------ For reference only ---------------------------------- -----
LZ, resolved not to continue to help

没有评论:

发表评论