You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by matthew denner <ma...@evtechnology.com> on 2001/04/30 16:52:58 UTC

SOAP issues

Dear all,

i've been trying to use the Apache SOAP implementation to provide access to
our software via a method other than RMI.  i've found several minor issues
with the SOAP code itself (which i've patched) but i'm having problems 
getting my SOAP client to communicate with my SOAP object (if that's the
right terminology); and, yes, i am new to SOAP so bear with me.

the main problem i'm having is that the client calls into an interace such
as:

  public interface Connection {
    public ResultInfo sendRequest(RequestInfo request);
  }

both ResultInfo and RequestInfo are interfaces and are implemented by 
ResultInfoImp and RequestInfoImp respectively.

i'm a little stumped as to how to setup the serializers for the RequestInfo
parameter and the ResultInfo result value.  should both sides use:

"requestinfo" maps to RequestInfoImp (class)
"resultinfo" maps to ResultInfoImp (class)

[ NOTE: i've tried this without any success.  the server side complains     ]
[ that ResultInfo doesn't map to anything and if i fix that then the client ]
[ side complains about construction of interfaces.                          ]

or should they use opposites, like:

- client side:
  "requestinfo" maps to RequestInfo (class)
  "resultinfo" maps to ResultInfoImp (class)

- server side:
  "requestinfo" maps to RequestInfoImp (class)
  "resultinfo" maps to ResultInfo (class)

i can see that the second option would see to make sense as a client may
implement the RequestInfo interface in many different ways but the server
should handle each of these as though it is a normal RequestInfoImp instance.

or is this a case for a specialised serialiser?

Cheers,
Matt

-----------------------------------------------------------------------------
Sessami is a trademark of Escape Velocity Technology Mobile Services Limited.
All information contained in this e-mail is confidential and for the use of
the addressee only.  If you receive this message in error please notify.

---------------------------------------------------------------------
To unsubscribe, e-mail: soap-user-unsubscribe@xml.apache.org
For additional commands, email: soap-user-help@xml.apache.org