http://www.perlmonks.org?node_id=747419


in reply to Re: Webservices and browsers
in thread Webservices and browsers

Hi,

Can you tell me if it is possible to consume a perl webservice from within .NET (C#)? Obviously, these simple perl web services dont use WSDLs or XML because, when for example i try to access my web service from C#, i get an error message stating that XML was expected and it "received text/plain" - this was using the example service on the soap lite site, which just returned a simple string and not a SOAP envelope?!.

I am new to web services and think i need some clarification

Any help appreciated

Thanks --Joe

-----

Eschew obfuscation, espouse eludication!

Replies are listed 'Best First'.
Re^3: Webservices and browsers
by jhourcle (Prior) on Mar 02, 2009 at 17:31 UTC

    The text/plain thing sounds like a problem -- make sure that the CGI is actually executing, and not just the file being returned.

    I've run into a few problems when people tried consuming a SOAP::Lite service using a strictly typed language, and I had to do some work in making sure it serialized correctly -- I had a few items that were strings of numbers, and SOAP::Lite kept marking it as numbers -- I was using RPC/encoded SOAP, and not using SOAP::Data to declare what the values were, as I was getting them from another SOAP call. In the end, I replaced SOAP::Serializer to make sure it sent what I wanted.

    I believe that issues of compatibility have come up in the past on the soaplite mailing list -- you might check their archives, but it's also possible that it's no longer an issue as they've moved away from the overhead of RPC/encoded messages.