Tell me more ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am trying to aquire data through Mathematica's WebServices and this example works just fine:

<<WebServices`
InstallService["http://www.webservicex.net/CurrencyConvertor.asmx?WSDL"]
ConversionRate["USD","RUB"]

However, when I try to install this service:

InstallService["http://cbr.ru/secinfo/secinfo.asmx?WSDL"]

Mathematica returns with error messages:

LoadSchema::unsupported: any is not supported in sequence.
LoadSchema::elementschema: The element schema cannot be found for {http://www.w3.org/2001/XMLSchema, schema}.

I'm not very well versed in XML however it seems that there's an "any" tag present in the code of the service, is that a provider's mistake?

share|improve this question
I once encountered this and then used Java instead to generate Web Service classes, then plugged into Mathematica. Of course this is of a little help, but the point is that Java version did work with the same service. – Leonid Shifrin Dec 2 '12 at 15:05
The funny thing is, it was the same exact web service, which is cbr.ru. – Leonid Shifrin Dec 2 '12 at 15:15
1  
I suspected that could be the case. Would love to help you with that, but I'm too busy with other stuff at the moment. One thing I could still suggest is to learn the very basics of Java and JLink, which may not be that hard actually. With those files you have, you won't need to actually implement any new Java functionality, just call Java methods from Mathematica. For that, you only have to understand how to create new Java objects via JLink and how to call Java methods on them via JLink, and may be M-Java core types conversion. This can be learned in a couple of days, really. – Leonid Shifrin Dec 2 '12 at 16:58
1  
You can use rextester.com/runcode to run some simple complete Java examples interactively, to get a feel for it. – Leonid Shifrin Dec 2 '12 at 17:12
1  
I did not remember how to do that by heart, so I used this [tutorial](px.pats.no/px/Eclipse_tutorial.html ) for those files I sent to you, and it worked with no problems. – Leonid Shifrin Dec 2 '12 at 17:20
show 5 more comments

closed as too localized by Leonid Shifrin, Oleksandr R., tkott, rm -rf Dec 6 '12 at 3:20

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.