I am a long time user of Delphi, and am currently using
Delphi 5 with
IndySOAP 9 for the client, while running against a Java
Webservice.
I've succesfully managed to generate the client proxies and
can invoke
web services from the client.
Is there a way to get IndySOAP to add namespaces to the SOAP
request
(other than the default)?
What I want to achieve is something like this below (in
terms of
having multiple namespaces for my SOAP request body...
<?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 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>
<ns1:product>
<ns1:description/>
<ns1:productCode/>
<ns1:productId/>
<ns1:productName/>
</ns1:product>
</tns:updateProduct>
</soap:Body>
</soap:Envelope>
However, at the moment I am having to force all my java
domain objects
to sit in the same namespace as the webservice.
This is because IndySOAP seem to be adding only the default
namespace
when calling a web service, even though the domain objects
are in a
different namespace.
Eg. The request that IndySOAP is generating by default:
<?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 sd=&
quot;http://www.w3.org/20
01/XMLSchema"
xmlns:tns="http://service.p
rintstockmanager.org">
<soap:Body>
<tns:updateProduct>
<tns:product>
<tns:description/>
<tns:productCode/>
<tns:productId/>
<tns:productName/>
</tns:product>
</tns:updateProduct>
</soap:Body>
</soap:Envelope>
Consequently, the webservice is receiving an empty object,
because of
the namespace mismatch. Eg. <tns:product> versus
<ns1:product>
Any ideas?
Thanks,
Jason
------------------------ Yahoo! Groups Sponsor
--------------------~-->
Home is just a click away. Make Yahoo! your home page now.
http://us.click.yahoo.com/DHchtC/3FxNAA/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/
|