3

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 runs fine.
Can you help me please?

iknow
  • 8,358
  • 12
  • 41
  • 68
Cris
  • 12,124
  • 27
  • 92
  • 159

2 Answers2

0

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]

Oliver Weichhold
  • 10,259
  • 5
  • 45
  • 87
  • I'll go to check it; what can i modify in this file? – Cris Sep 07 '10 at 12:43
  • You shouldn't modify it because its autogenerated but you could at least check if it contains anything meaningful. – Oliver Weichhold Sep 07 '10 at 12:57
  • it does not contain expected methods i'm waiting but i don't see errors at all. If i make a non-silverlight project instead i see all web service method, so it seems like a Silverlight issue... – Cris Sep 07 '10 at 14:49
  • Which version of SL are you using? – vc 74 Oct 13 '10 at 15:10
0

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'.