Take the 2-minute tour ×
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
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
2  
"I will vote to close this question as too localized, since we have no evidence currently that this problem is encountered for any other web service". Well, I just encountered exactly the same problem with another webservice site, so I vote to reopen this question. –  Sjoerd C. de Vries Oct 3 '13 at 8:15

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.