I've created a service that has a method that takes a parameter of
java.net.URL.  I had to developed a serializer and deserializer for this
because soap 2.2 doesn't support URL's as parameters (see attached).

When I execute the client I get back a fault (the soap request envelope
looks good going to the server):

    Fault Code = SOAP-ENV:Server.Exception:
    Fault String = org/apache/soap/util/xml/Serilizer

That's it.  I've looked at the rpcrouter servlet and it's here that I
think it's generating the fault response.  I modeled my serializer and
deserializer after the DateSerializer/Deserializer.

I'm not sure what is wrong, but any help would be appreciated.  Thanks




--
David Turner <[EMAIL PROTECTED]>
Senior Software Engineer
Whitehead Institute/MIT Center for Genome Research
One Kendall Square, Bldg. 300
Cambridge, MA 02139-1561 USA
phone 617-252-1573 / fax 617-252-1902

URLSerializer.java

SimpleURLService.java

SimpleURLServiceClient.java

URLDeserializer.java

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment";
             id="urn:SimpleURLService">
  <isd:provider type="java"
                scope="Session"
                methods="serviceMethod">
    <isd:java class="examples.omnitide.SimpleURLService.SimpleURLService" static="false"/>
  </isd:provider>

  <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>

  <isd:mappings>
    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
             xmlns:x="urn:SimpleURLService" qname="x:url"
             javaType="java.net.URL"
             java2XMLClassName="edu.mit.wi.omnigene.omnitide.encoding.URLSerializer"
             xml2JavaClassName="edu.mit.wi.omnigene.omnitide.encoding.URLDeserializer"/>
  </isd:mappings>    

</isd:service>

Reply via email to