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


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

Nothing obvious in error logs either.

Nevertheless it would be good to know what is being written there.

When you set up a webservice, you are probably interested in accessing the server's methods from wherever, so your web application is one more client. What you need to call is the client script.

If everything works fine from the command line, then all you need to care about is sending the information you get from the server into the browser. Since I don't know your code, I can only guess that maybe you are forgetting to send the content-type header to the browser?

update The content-type be text/html. Before you send anything to the browser you must print "Content-Type: text/html\n\n";

The WSDL describes the service being provided, its methods, data types, how to reach it, etc. Read WSDL Tutorial for an understanding about its purpose and syntax.

Replies are listed 'Best First'.
Re^4: Webservices and browsers
by joec_ (Scribe) on Feb 27, 2009 at 00:17 UTC
    As i am not at work, i will post logs tomorrow.

    My code is exactly the same as the example on the soap lite site here

    How do i go about getting the WSDL definition though?

    Should the content-type be text/xml ?

    Thanks

    -----

    Eschew obfuscation, espouse eludication!