I'm glad somebody's making progress! Yes, the asmx service you have set up does work, but my specific problem involves consuming a php web service that is configured with WSDL 1.1. It seems like we still have the problem of consuming WSDL 1.1 type services.
I'm getting the same problem as you. I have generated the WSDL with gSOAP. I have found this on gSOAP docs: "The toolkit follows the WS-I Basic Profile 1.0a compliance recommendations."
I notice that three people (including you) reported about this warning in this forum.. I would like to take a look at this. Could you please sample project and send it to me? You can reach me with this email mchlsync AT gmail DOT com.
The only one that I noticed is that the version of mscorlib seems wrong. It should be 2.0.5.0. That dll is located under this directory C:\Program Files\Microsoft Silverlight\2.0.30226.2\
Could you please check whether you are referencing the wrong one or not? Go to Solution Explorer. Open "Reference" node of Silverlight project. Select "mscorlib" library. Choose "Open in Object Browser". Please take a look at the selection in Object browser..
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)
You can ignore those warnings, they shouldn't be getting generated at all. I am working on getting rid of them right now, actually... [;)]
Yes, there are some known issues in Beta 1 consuming amazon and other internet web services, and sharepoint web services for that matter. Believe me, we are well aware of the issue. :) For Beta 1 your best bet to get started is to use a WCF or asmx web
service hosted in the same project that is hosting the silverlight control. This stuff is def. better in Beta 2.
Thanks
Alex DeJarnatt
Connected Framework Team - Silverlight
Microsoft
Thanks for your reply, Alex. It's really great to get the comment from MS.
I have a few mail-conversations with him yesterday.. It's strange that we won't get no warning if we re-open the project. I opened the sample that he sent. I got no warning. So, I took the screenshot and sent them back to him. He said that he doesn't get
any warning now. (maybe, VS is counting how many time we open VS 2008 :D ) So, he tried to remove the reference the re-add the web-service to his project. then, he got the warning again. He also said that he is using a SOAP web service implemented with gSOAP
(that generate Profile 1.0a )
Anyway, As you said, we should probably ignore those warnings. :)
Thanks.
(If this has answered your question, please click on "Mark as Answer" on this post. Thank you!)
Thanks for your help ;) As Michael tells, I use a SOAP web service, basic profile 1.0a, implemented with gSOAP (for some reasons we must use it). We are very interested on implementing some stuff with Silverlight, but our currently web service must be the
same. Do you know whether in Beta 2, Silverlight will support more SOAP profiles appart from 1.1? This would be nice :)
Our goal with Beta 2 is to support all WS-I Basic Profile compliant services out there. note one potentially significant "gotcha": the BP prohibits use="encoded" services and Silverlight 2 will not support them.
If you could send me a pointer to the service you're using I could try it out with the latest Beta 2 bits and make sure it works..
thanks
Alex DeJarnatt
Connected Framework Team - Silverlight
Microsoft
If you could give me an email I would send you the WSDL. I have checked it and it had use="encoded". I have removed all of them and I get no error, but the service does not run properly. My email is jtost [at] activasoft [dot] com.
devin.brown
Member
8 Points
7 Posts
Re: How to call a web service from Silverlight 2.0 project
Mar 11, 2008 03:59 AM | LINK
I'm glad somebody's making progress! Yes, the asmx service you have set up does work, but my specific problem involves consuming a php web service that is configured with WSDL 1.1. It seems like we still have the problem of consuming WSDL 1.1 type services.
jtost
Member
30 Points
21 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 24, 2008 08:40 AM | LINK
Hi!
I'm getting the same problem as you. I have generated the WSDL with gSOAP. I have found this on gSOAP docs: "The toolkit follows the WS-I Basic Profile 1.0a compliance recommendations."
Anybody knows how make it run? :S
Thanks for your help!
Jordi
jtost
Member
30 Points
21 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 24, 2008 09:04 AM | LINK
Hi!
I don't get the errors, but I get two warnings. I get them with any webservice, and that didn't happen with WPF projects.
Warning 1
===================
Custom tool warning: Removing unsupported type System.Windows.Controls.OpenFileDialog
System.TypeLoadException: Could not load type 'System.Security.SecuritySafeCriticalAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(Module decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
at System.Reflection.CustomAttribute.IsDefined(RuntimeType type, RuntimeType caType, Boolean inherit)
at System.RuntimeType.IsDefined(Type attributeType, Boolean inherit)
at Microsoft.VisualStudio.ServicesProxy.WcfSilverlightCodeGenerationExtension.WsdlImporting(WsdlImporter importer)
Warning 2
===================
Custom tool warning: Removing unsupported type System.Windows.Browser.HttpUtility
System.TypeLoadException: Could not load type 'System.Security.SecuritySafeCriticalAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.IsCustomAttributeDefined(Module decoratedModule, Int32 decoratedMetadataToken, RuntimeType attributeFilterType, Boolean mustBeInheritable)
at System.Reflection.CustomAttribute.IsDefined(RuntimeType type, RuntimeType caType, Boolean inherit)
at System.RuntimeType.IsDefined(Type attributeType, Boolean inherit)
at Microsoft.VisualStudio.ServicesProxy.WcfSilverlightCodeGenerationExtension.WsdlImporting(WsdlImporter importer)
mchlSync
Star
14968 Points
2799 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 24, 2008 09:25 AM | LINK
I notice that three people (including you) reported about this warning in this forum.. I would like to take a look at this. Could you please sample project and send it to me? You can reach me with this email mchlsync AT gmail DOT com.
The only one that I noticed is that the version of mscorlib seems wrong. It should be 2.0.5.0. That dll is located under this directory C:\Program Files\Microsoft Silverlight\2.0.30226.2\
Could you please check whether you are referencing the wrong one or not? Go to Solution Explorer. Open "Reference" node of Silverlight project. Select "mscorlib" library. Choose "Open in Object Browser". Please take a look at the selection in Object browser..
Regards,
Michael Sync
Silverlight MVP
Blog : http://michaelsync.net
jtost
Member
30 Points
21 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 24, 2008 09:36 AM | LINK
Hi Michael, thanks for your help.
Yes, mscorlib has thi path: C:\Program Files\Microsoft Silverlight\2.0.30226.2\
So, it seems to be ok.
I send to your mail a sample project ;)
Jordi
Alex DeJarna...
Member
62 Points
11 Posts
Microsoft
Re: How to call a web service from Silverlight 2.0 project
Apr 24, 2008 11:25 PM | LINK
You can ignore those warnings, they shouldn't be getting generated at all. I am working on getting rid of them right now, actually... [;)]
Yes, there are some known issues in Beta 1 consuming amazon and other internet web services, and sharepoint web services for that matter. Believe me, we are well aware of the issue. :) For Beta 1 your best bet to get started is to use a WCF or asmx web service hosted in the same project that is hosting the silverlight control. This stuff is def. better in Beta 2.
Thanks
Connected Framework Team - Silverlight
Microsoft
mchlSync
Star
14968 Points
2799 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 25, 2008 03:05 AM | LINK
Thanks for your reply, Alex. It's really great to get the comment from MS.
I have a few mail-conversations with him yesterday.. It's strange that we won't get no warning if we re-open the project. I opened the sample that he sent. I got no warning. So, I took the screenshot and sent them back to him. He said that he doesn't get any warning now. (maybe, VS is counting how many time we open VS 2008 :D ) So, he tried to remove the reference the re-add the web-service to his project. then, he got the warning again. He also said that he is using a SOAP web service implemented with gSOAP (that generate Profile 1.0a )
Anyway, As you said, we should probably ignore those warnings. :)
Thanks.
Regards,
Michael Sync
Silverlight MVP
Blog : http://michaelsync.net
jtost
Member
30 Points
21 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 25, 2008 07:38 AM | LINK
Hi Alex,
Thanks for your help ;) As Michael tells, I use a SOAP web service, basic profile 1.0a, implemented with gSOAP (for some reasons we must use it). We are very interested on implementing some stuff with Silverlight, but our currently web service must be the same. Do you know whether in Beta 2, Silverlight will support more SOAP profiles appart from 1.1? This would be nice :)
Thanks again, and thanks Michael too!!
Jordi
Alex DeJarna...
Member
62 Points
11 Posts
Microsoft
Re: How to call a web service from Silverlight 2.0 project
Apr 25, 2008 03:32 PM | LINK
Our goal with Beta 2 is to support all WS-I Basic Profile compliant services out there. note one potentially significant "gotcha": the BP prohibits use="encoded" services and Silverlight 2 will not support them.
If you could send me a pointer to the service you're using I could try it out with the latest Beta 2 bits and make sure it works..
thanks
Connected Framework Team - Silverlight
Microsoft
jtost
Member
30 Points
21 Posts
Re: How to call a web service from Silverlight 2.0 project
Apr 28, 2008 07:25 AM | LINK
Hi Alex,
If you could give me an email I would send you the WSDL. I have checked it and it had use="encoded". I have removed all of them and I get no error, but the service does not run properly. My email is jtost [at] activasoft [dot] com.
Thanks for your help!
Jordi