开发者

Problem calling webservice from Silverlight in VisualStudio 2010

I'm trying to consume a WS written in nusoap from Silverlight. When I add WSDL service reference, in VS21010, I see listed all WS functions.

I instanciate object in my code behind:

serviceclient cl=new serviceclient();

But when I digit cl. I cannot see ws methods in IntelliSense. Why?

The same thing, made in a windows form application 开发者_如何学Pythonruns fine.

Can you help me please?


Did you inspect the Reference.cs file that VS2010 generated for your Service Reference? The file I mentioned resides in the directory [projectfolder]/ServicesReferences/[YourServiceReferenceName]


Check out the register method. There is parameter called Use. Make sure you pass it as 'literal' and style as 'rpc' . Make sure your ComplexType if you have, does not use 'Soap-Enc:arrayType'.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜