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

SOAP::Lite Server for XStandard-HTML-Editor

Expand Messages
  • Gert Brinkmann
    Hello, I do have a problem to write a picture-upload-server for an HTML-Editor-component XStandard-Editor (http://www.xstandard.com/) that uses SOAP for such
    Message 1 of 1 , Sep 16, 2005
    View Source
    • 0 Attachment
      Hello,

      I do have a problem to write a picture-upload-server for an
      HTML-Editor-component "XStandard-Editor" (http://www.xstandard.com/)
      that uses SOAP for such web-services.

      First it should invoke a method via SOAP that is called
      "doLibraryDescribe". So I did write the following lines for the
      CGI-Server-Side:

      SOAP::Transport::HTTP::CGI
      -> dispatch_to('my::foo')
      -> handle();

      package my::foo;

      sub doLibraryDescribe {
      print STDERR "foo->doLibraryDescribe was called\n";
      return "returned from doLibraryDescribe";
      }

      This routine is never called. So I have tried to use a SOAP::Lite-Client
      for testing:

      my $soap = SOAP::Lite
      -> uri('http://localhost/my/foo')
      -> proxy('..../upload.cgi');

      my $result = $soap->doLibraryDescribe("fooarg");
      ....

      This one works fine. So I have compared the XML-Code that is sent to the
      server:

      XStandard-Editor:

      <?xml version="1.0" encoding="utf-8"?>
      <soap:Envelope
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
      <doLibraryDescribe xmlns="http://xstandard.com/2004/web-services">
      <lang>de</lang>
      </doLibraryDescribe>
      </soap:Body>
      </soap:Envelope>


      SOAP::Lite-Client:

      <?xml version="1.0" encoding="UTF-8"?>
      <SOAP-ENV:Envelope
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
      xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"
      SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <SOAP-ENV:Body>
      <namesp1:doLibraryDescribe xmlns:namesp1="http://locahost/my/foo">
      <c-gensym3 xsi:type="xsd:string">fooarg</c-gensym3>
      </namesp1:doLibraryDescribe>
      </SOAP-ENV:Body>
      </SOAP-ENV:Envelope>

      There are some differences, but I do not know which of them are relevant.

      There is also a difference in one header field that I also do not know
      wether it is important.

      XStandard:
      'HTTP_SOAPACTION' =>
      'http://xstandard.com/2004/web-services/doLibraryDescribe',

      SOAP::Lite-Client:
      'HTTP_SOAPACTION' => '"http://locahost/my/foo#doLibraryDescribe"',

      (Has the method to be delimited by an "/" or an "#"?)

      Because I cannot change the client-side I would like to know if I can do
      something on server-side to accept such an xstandard-request?

      Thank you,

      Gert
    Your message has been successfully submitted and would be delivered to recipients shortly.