I'll go simple... Apache assume that under the body there's the Method(
soapServiceHandler) and under the method there's the parameter (name=San
Francisco). Without specifying it in the SOAP message you can assume the
datatype of a parameter by adding some code to the client. Maybe that's
what occurs.
Steeve...
Yong Chen <[EMAIL PROTECTED]> on 31/07/2001 01:17:23 PM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc: (bcc: Steeve Gilbert/G_STGEORGES/CANAM_MANAC)
Subject: RE: a basic question
thanks a lot Gopinath, but that's exactly where my question is: I don't
have
a schema called "urn:MyService" defined. Somehow the apache soap server
knows how to parse the elements under 'body', even if you don't have those
elements defined in a schema.
thanks
Yong Chen
-----Original Message-----
From: gopi [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 11:06 PM
To: [EMAIL PROTECTED]
Subject: Re: a basic question
Hi,
The element 'soapServiceHandler' is supposed to be an element declared
in your service schema (which has namespace = 'urn:MyService'). Any
element
within soapServiceHandler without any prefix will belong to "urn:MyService"
namespace according to xml namespace spec.
So the datatype of 'soapServiceHandler' and 'name' must be specified in
schema with targetNamespace="urn:MyService".
If you want to know more about the namespace binding with elements you
better use a SAX parser and print the element names and their namespaces
(in
startElement event), it will help you to understand the namespace concept
clearly.
I hope it helps....
regards,
Gopinath.M.R.
----- Original Message -----
From: "Yong Chen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 31, 2001 8:59 AM
Subject: a basic question
>
> Hi Soap experts:
>
> I seem to have not understood soap encoding well. Let's say I have
following
> simple envelope, I know 'Envelope' and 'Body' are defined as complexType
in
> http://schemas.xmlsoap.org/soap/envelope, but what is the data type for
> elements 'soapServiceHandler' and 'name'?
>
> thanks
> Yong Chen
>
>
>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"
> s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
> <s:Body>
> <soapServiceHandler xmlns="urn:MyService">
> <name>
> San Francisco
> </name>
> </soapServiceHandler>
> </s:Body>
> </s:Envelope>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com