This is more a comprehension question regarding SOAP
syntax....
<?xml version="1.0"
encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://sche
mas.xmlsoap.org/soap/envelope/"
xmlns si=&
quot;http://www.
w3.org/2001/XMLSchema-instance"
xmlns:ns="http://domain.pri
ntstockmanager.org"><soap:Body><update
Product
xmlns="http://service.p
rintstockmanager.org"><in0
xsi:type="ns:Product"><productCode>SC1&
lt;/productCode><productId>1</productId><p
roductName>My
Test</productName></in0></updateProduct>&l
t;/soap:Body></soap:Envelope>
Given that productCode, productID and productName don't
have a
namespace assigned to them,which namespace do they belong to
in the
above example?
The only difference I can see between the example that works
and this
one, is that each of the element values for the parameter
values of
in0, are not prefixed with the namespace of the class type
to which
they belong.
Oh and what does xsi:type="ns:Product" meant to
do?
Thanks,
Jason
--- In indy-soap-public@yahoogroups.com, "Jason
Field"
<ukkiwisurfer ...> wrote:
>
> This is only for the client side.
>
> I am currently in this routine at the moment tracing
through it.
>
> I also noticed that LRoot.ForceTypeInXml is not
evaluating to true.
> Not sure whether this is the right place to be prodding
at, as forcing
> it to true, generates the namespace info like below..
>
> <?xml version="1.0"
encoding="UTF-8"?>
> <soap:Envelope xmlns:soap="http://sche
mas.xmlsoap.org/soap/envelope/"
> xmlns si=&
quot;http://www.
w3.org/2001/XMLSchema-instance"
> xmlns:ns="http://domain.pri
ntstockmanager.org"><soap:Body><update
Product
> xmlns="http://service.p
rintstockmanager.org"><in0
>
xsi:type="ns:TProduct"><productCode>SC1
</productCode><productId>1</productId><
productName>My
>
Test</productName></in0></updateProduct>&l
t;/soap:Body></soap:Envelope>
>
> Ideally I am trying to generate a soap message like
> <soap:Envelope xmlns:soap="http://sche
mas.xmlsoap.org/soap/envelope/"
> xmlns si=&
quot;http://www.
w3.org/2001/XMLSchema-instance"
> xmlns sd=&
quot;http://www.w3.org/20
01/XMLSchema"
> xmlns:tns="http://service.p
rintstockmanager.org"
> xmlns:ns1="http://domain.pri
ntstockmanager.org">
>
> <soap:Body>
> <tns:updateProduct>
> <tns:in0>
>
<ns1:productCode>Sc1</ns1:productCode>
> <ns1:productId>1</ns1:productId>
>
<ns1:productName>Test</ns1:productName>
> </tns:in0>
> </tns:updateProduct>
> </soap:Body>
>
> I have tested this with Crossochecks' SOAPSonar and
this definitely
> gets through to the server fine, and the server can
process the
> message correctly.
>
------------------------ Yahoo! Groups Sponsor
--------------------~-->
Everything you need is one click away. Make Yahoo! your
home page now.
http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/i7folB/TM
------------------------------------------------------------
--------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http:
//groups.yahoo.com/group/indy-soap-public/
<*> To unsubscribe from this group, send an email to:
indy-soap-public-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.c
om/info/terms/
|