Lior,

The issue is probably the namespace associated with DirNotificationData.  GLUE
is using http://www.themindelectric.com/package/emblaze/ .  Having not used
GLUE, I do not know how you might change this.  However, it is possible to
change your Apache SOAP service to accept this by simply adding an entry to the
deployment descriptor for the service.  For example, the AddressBook sample has
the following in its deployment descriptor:

    <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
             xmlns:x="urn:xml-soap-address-demo" qname="x:address"
             javaType="samples.addressbook.Address"
             java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"

xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>

The xmlns:x specifies the namespace for the element being mapped.  Your dd
probably already has an entry for DirNotificationData with some namespace.  Add
a new entry with the same data, except use the namespace from GLUE.

Scott

----- Original Message -----
From: "Lior Weintraub" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 09, 2002 12:01 PM
Subject: RE: glue client apache server problems


> Hello Scott,
>
> Thanks for answering so fast.
>
> The soap fault is :
>
> No Deserializer found to deserialize a
> 'http://www.themindelectric.com/package/emblaze/:DirNotificationData' using
> encoding style 'http://schemas.xmlsoap.org/soap/encoding/
>
> This is the SOAP Fault as received :
>
> <?xml version='1.0' encoding='UTF-8'?>
>   <SOAP-ENV:Envelope
> xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
> xmlns:xsi='http://www.w3.org/1999/XMLSchema-instance'
> xmlns:xsd='http://www.w3.org/1999/XMLSchema'>
>     <SOAP-ENV:Body>
>       <SOAP-ENV:Fault>
>         <faultcode>SOAP-ENV:Client</faultcode>
>         <faultstring>No Deserializer found to deserialize a
> &apos;http://www.themindelectric.com/package/emblaze/:DirNotificationData&ap
> os; using encoding style
> &apos;http://schemas.xmlsoap.org/soap/encoding/&apos;.</faultstring>
>         <faultactor>/soap/servlet/rpcrouter</faultactor>
>       </SOAP-ENV:Fault>
>     </SOAP-ENV:Body>
>   </SOAP-ENV:Envelope>
>
> Lior.
>
> -----Original Message-----
> From: Scott Nichol [mailto:[EMAIL PROTECTED]]
> Sent: Tue, April 09, 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: Re: glue client apache server problems
>
>
> Lior,
>
> What is the nature of the error, e.g., are you getting a SOAP Fault?  If so,
> can
> you post the text of the fault?
>
> Scott
>
> ----- Original Message -----
> From: "Lior Weintraub" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 09, 2002 11:44 AM
> Subject: glue client apache server problems
>
>
> > Hi,
> >
> > I'm having a problem invoking a service deployed in apache server with
> > tomcat 3.3 using GLUE 2-2 client.
> >
> > The service name is notify(DirNotificationData data) where
> > DirNotificationData is a user defined object.
> >
> > This service worked fine when using an apache soap client.
> >
> > Here is the request sent by the GLUE client:
> >
> > <?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/";
> > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
> > soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
> > xmlns:ns5="http://www.themindelectric.com/package/emblaze/";>
> > <soap:Body>
> > <n:notify xmlns:n="urn:emblaze">
> > <arg0 href="#id0"/>
> > </n:notify>
> > <id0 id="id0" soapenc:root="0"
> > xsi:type="ns5:DirNotificationData">
> > <sid xsi:type="xsd:int">1</sid>
> > <entryType href="#id1"/>
> > <eventType href="#id2"/>
> > <entryId xsi:type="xsd:string">46</entryId>
> > </id0>
> > <id1 id="id1" soapenc:root="0"
> > xsi:type="ns5:DIR_ENTRY_TYPE">
> > <m_iValue xsi:type="xsd:int">1</m_iValue>
> > </id1>
> > <id2 id="id2" soapenc:root="0"
> > xsi:type="ns5:DIRECTORY_EVENT_TYPE">
> > <m_iValue xsi:type="xsd:int">1</m_iValue>
> > </id2>
> > </soap:Body>
> > </soap:Envelope>
> >
> >
> > Is that a problem between the implementation of apache soap and GLUE?
> >
> > thanks,
> > Lior Weintraub.
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to