Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Webservices and browsers

by olus (Curate)
on Feb 26, 2009 at 23:53 UTC ( [id://746706]=note: print w/replies, xml ) Need Help??


in reply to Webservices and browsers

You should check your error log for information on what is going on. If everything works fine from the command line then maybe you have permissions issues, or maybe different Perl installations, or your scripts aren't executable....

Replies are listed 'Best First'.
Re^2: Webservices and browsers
by joec_ (Scribe) on Feb 26, 2009 at 23:59 UTC
    The scripts are executable...what should i put in the browser though? Demo.cgi or hibye.pl? Demo.cgi is the soap server and hibye.pl is the client....

    Nothing obvious in error logs either.

    How can i obtain a WSDL for the web service as well?

    Thanks

    -----

    Eschew obfuscation, espouse eludication!

      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.

        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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://746706]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found