Hi,

Having successfully exposed my web services, I am still struggling with this:

On Nov 15, 2004, at 4:31 PM, Alessandro Vernet wrote:

Matthew J. Graham wrote:

- how do I return the WSDL for the web service using the standard "http://service/endpoint?wsdl"; syntax?

If you want the same path to serve both the WSDL and implement the service, map that path (/endpoint) to an XPL, and in the XPL based on the parameters (that you get with the request generator) either execute the service or send the WSDL file.

If I change the start of my XPL to include /request/parameters or /request/path-info:


  <!-- Get SOAP envelope -->
  <p:processor name="oxf:request">
    <p:input name="config">
      <config stream-type="xs:anyURI">
        <include>/request/parameters</include>
        <include>/request/body</include>
      </config>
    </p:input>
    <p:output name="data" id="env"/>
  </p:processor>

<p:processor name="oxf:url-generator">
<p:input name="config" href="aggregate('config', aggregate('url', #env#xpointer(string(/request/body))))"/>
<p:output name="data" id="request"/>
</p:processor>


then when I try and call: http://localhost:8080/orbeon/services?wsdl, I get;

class org.orbeon.oxf.common.ValidationException
Message Error Content of element "url" is incomplete(schema: http://www.orbeon.org/oxf/xml/url)
Location
Line N/A
Column N/A
Stack Trace
Class Name Method Name File Name Line Number
org.orbeon.oxf.processor.validation.MSVValidationProcessor$8 error MSVValidationProcessor.java 185
com.sun.msv.verifier.Verifier onError Verifier.java 336
com.sun.msv.verifier.Verifier onError Verifier.java 326
com.sun.msv.verifier.Verifier endElement Verifier.java 290
org.orbeon.oxf.xml.TeeContentHandler endElement TeeContentHandler.java 85
org.orbeon.oxf.xml.ForwardingContentHandler endElement ForwardingContentHandler.java 51
org.orbeon.oxf.processor.pipeline.AggregatorProcessor$1 readImpl AggregatorProcessor.java 85
org.orbeon.oxf.processor.ProcessorImpl$6 read ProcessorImpl.java
...


Of course, I can return the wsdl via http://localhost:8080/orbeon/services.wsdl but I would like to use the ?wsdl attached to the service endpoint convention if at all possible.

        Cheers,

        Matthew



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to