Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

How to create soap server script?

by Boring (Novice)
on Oct 05, 2010 at 10:08 UTC ( #863560=perlquestion: print w/replies, xml ) Need Help??
Boring has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,

I new to SOAP and wsdl.

I have 2 machines, 1 server and 1 client.

And I have a wsdl:

<?xml version="1.0" encoding="UTF-8" ?> - <definitions name="HelloService" targetNamespace="http://www.mysite. +com/HelloService.wsdl" xmlns="" xmlns +:soap="" xmlns:tns="http://www.m" xmlns:xsd=" +ema"> - <message name="SayHelloRequest"> <part name="firstName" type="xsd:string" /> </message> - <message name="SayHelloResponse"> <part name="greeting" type="xsd:string" /> </message> - <portType name="Hello_PortType"> - <operation name="sayHello"> <input message="tns:SayHelloRequest" /> <output message="tns:SayHelloResponse" /> </operation> </portType> - <binding name="Hello_Binding" type="tns:Hello_PortType"> <soap:binding style="rpc" transport=" +/http" /> - <operation name="sayHello"> <soap:operation soapAction="sayHello" /> - <input> <soap:body encodingStyle="" + namespace="urn:examples:helloservice" use="encoded" /> </input> - <output> <soap:body encodingStyle="" + namespace="urn:examples:helloservice" use="encoded" /> </output> </operation> </binding> - <service name="Hello_Service"> <documentation>WSDL File for HelloService</documentation> - <port binding="tns:Hello_Binding" name="Hello_Port"> <soap:address location="" /> + </port> </service> </definitions>

My client side script:

use SOAP::Lite; print "Connecting to Hello Service...\n"; print SOAP::Lite -> service('') -> sayHello;

However, I have problem on writing server side script as I can't find much sample/exampes from the internet.

Please show me some examples/sample codes.

Please help. Thanks

Replies are listed 'Best First'.
Re: How to create soap server script?
by marto (Bishop) on Oct 05, 2010 at 10:22 UTC
      Hi marto,

      Thanks for the information. Yes, I did take a look.

      First of all, please correct me if I'm wrong. Most of the examples are using CGI, that means, server side script will return in CGI method only?

      Please advise. Thanks

        I’m afraid that I don’t understand your point/question.   Could you please rephrase it?   Elaborate a little?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://863560]
Front-paged by Arunbear
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-02-19 22:48 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (266 votes). Check out past polls.