Well, the whole point of using standards like XML Web Services is that you
don't have to do anything "special" to get interop (at least as long as you
follow the standards)...
So yes, we had Silverlight client code talking to a Java web service. We
even had basic HTTP authentication authenticating against an Oracle ID store
thingy.
The only minor issues we bumped into where things like nullable types, some
date issues, and the byte order mark problem. To stop the WCF client to emit
the UTF8 byte order mark you do this:
BasicHttpBinding binding = new BasicHttpBinding();
binding.TextEncoding = new UTF8Encoding(false);
EndpointAddress address = new EndpointAddress("youServiceUrl");
serviceClient = new GetNewsClient(binding, address);
The false paramter in the UTF8Encoding constructur is what you need...
Cheers,
Jonas
On Sun, Aug 10, 2008 at 9:42 PM, Stephen Price <[EMAIL PROTECTED]>wrote:
> Exactly the question I should have asked!
>
> So if I read your message correct, you used the Silverlight WCF stack but
> made it call a Java web service instead or a .net web service? Sounds just
> what I'm after. Do you have any example code you could blog? Would love to
> see Silverlight play well with others.
>
> Might also be a good excuse to play with some Ruby, I've not had a reason
> to yet (nor the time!)
>
> thanks!
> Stephen
>
>
> On Sun, Aug 10, 2008 at 6:55 PM, Jonas Follesø <[EMAIL PROTECTED]> wrote:
>
>> So the actual question is really "how do I create a web service in
>> something that is not .NET". Which by the way is a fair question ;)
>>
>> Java is probably the easiest answer (if C# is your primary language, doing
>> Java should be fairly simple). There are multiple web service frameworks
>> from Java you can use. I guess it also depends on what other "stuff" your
>> hoster have enabled on your server.
>>
>> Something more fun would perhaps be to build something in Python or Ruby,
>> a quick google search show that there are heaps of frameworks to help you
>> with this as well.
>>
>> As for hosting XAP the only thing you need to do is set up the MIME type:
>> *.xap* to *application/x-silverlight-app*.
>>
>> I've done some work with a Silverlight service talking to an Oracle (Java)
>> web service, hosted by Apache. The only problem was with UTF8 byte order
>> marks (the Silverlight WCF stack automatically add the byte order mark), but
>> the Java service didn't like that ;)
>>
>> Cheers,
>> Jonas
>>
>>
>>
>>
>>
>> On Sun, Aug 10, 2008 at 8:46 PM, .net noobie <[EMAIL PROTECTED]>wrote:
>>
>>> you can host a silverlight app on any webserver as far as i can see, the
>>> .xap file is downloaded and run in the users web browser
>>>
>>>
>>> On 8/10/08, Stephen Price <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Hey all,
>>>>
>>>> Was just wondering if anyone had thought of (or tried?) a way of running
>>>> Silverlight on a purely LAMP system?
>>>>
>>>> I use a webhost that uses Apache and MySQL. I'd like to be able to use
>>>> MySQL for the backend but am not sure how I'd get around not being able to
>>>> run my webservice on a non-microsoft web server. I'm assuming that I'd have
>>>> to write a java (or some other similar technology) to get that working.
>>>>
>>>> So the webserver would of course serve my Silverlight app, which would
>>>> make calls to the webservice which talks to the MySQL server.
>>>>
>>>> cheers,
>>>> Stephen
>>>> -------------------------------------------------------------------
>>>> OzSilverlight.com - to unsubscribe from this list, send a message back to
>>>> the list with 'unsubscribe' as the subject.
>>>> Powered by mailenable.com - List managed by www.readify.net
>>>
>>>
>>>
>>>
>>> --
>>> .net noobie™
>>>
>>> This Framework is not Big Enough for the both of us...
>>> -------------------------------------------------------------------
>>> OzSilverlight.com - to unsubscribe from this list, send a message back to
>>> the list with 'unsubscribe' as the subject.
>>> Powered by mailenable.com - List managed by www.readify.net
>>
>>
>> -------------------------------------------------------------------
>> OzSilverlight.com - to unsubscribe from this list, send a message back to
>> the list with 'unsubscribe' as the subject.
>> Powered by mailenable.com - List managed by www.readify.net
>>
>
> -------------------------------------------------------------------
> OzSilverlight.com - to unsubscribe from this list, send a message back to
> the list with 'unsubscribe' as the subject.
> Powered by mailenable.com - List managed by www.readify.net
>
-------------------------------------------------------------------
OzSilverlight.com - to unsubscribe from this list, send a message back to the
list with 'unsubscribe' as the subject.
Powered by mailenable.com - List managed by www.readify.net