Loading ...
Sorry, an error occurred while loading the content.

WSDL

Expand Messages
  • Dan Havey
    Ok I ve got: package world; sub new { my $self = {}; bless($self); return $self; } sub hello { my $self = shift; return Hello, World! ; } sub goodbye { my
    Message 1 of 1 , Dec 12, 2002
    View Source
    • 0 Attachment

      Ok I've got:

      package world;

      sub new { my $self = {}; bless($self); return $self; }

      sub hello { my $self = shift; return "Hello, World!"; }

      sub goodbye { my ($self,$adjective) = @_; return "Goodbye $adjective World\n"; }

      return 1;

      and my world.wsdl looks like this:

        <?xml version="1.0" encoding="UTF-8" ?>
      - <definitions name="world" targetNamespace="http://127.0.0.1/wsdl/world.wsdl" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://127.0.0.1/wsdl/world.wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      - <message name="helloResponse">
        <part name="greeting" type="xsd:string" />
        </message>
      - <message name="goodbyeRequest">
        <part name="adjective" type="xsd:string" />
        </message>
      - <message name="goodbyeResponse">
        <part name="bye" type="xsd:string" />
        </message>
      - <portType name="hello_PortType">
      - <operation name="hello">
        <output message="tns:helloResponse" />
        </operation>
        </portType>
      - <portType name="goodbye_PortType">
      - <operation name="goodbye">
        <input message="tns:goodbyeRequest" />
        <output message="tns:goodbyeResponse" />
        </operation>
        </portType>
      - <binding name="world_Binding" type="tns:world_PortType">
        <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
      - <operation name="hello">
        <soap:operation soapAction="hello" />
      - <output>
        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="urn:examples:worldservice" use="encoded" />
        </output>
        </operation>
        </binding>
      - <service name="world_Service">
        <documentation>WSDL File for worldService</documentation>
      - <port binding="tns:world_Binding" name="world_Port">
        <soap:address location="http://127.0.0.1/cgi-bin/webservices/soapServer.pl" />
        </port>
        </service>
        </definitions>
       
      Is that how it should be?
       
      Thanks in advance...
      Daniel Havey



      Do you Yahoo!?
      Yahoo! Mail Plus - Powerful. Affordable. Sign up now
    Your message has been successfully submitted and would be delivered to recipients shortly.