Hi,

I have following problem with a client test program I wrote:
In the WSDL file the types are defined as follows:
------

        <types>
                <s:schema elementFormDefault="qualified"
targetNamespace="http://www.xml-webservices.net/services/maths";>
                        <s:element name="Add">
                                <s:complexType>
                                        <s:sequence>
                                                <s:element minOccurs="1"
maxOccurs="1" name="a" type="s:float"/>
...

------
As you can see, the schema element has set the elementFormDefault
attribute to qualified.
When I now call the webservice my soap document is like that:
------

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <SOAP-ENV:Body>
                <ns1:Add
xmlns:ns1="http://www.xml-webservices.net/services/maths";>
                        <a xsi:type="xsd:float">10.0</arg0>
<------ MISSING "ns1:"
                        <b xsi:type="xsd:float">10.0</arg1>
<------ MISSING "ns1:"
                </ns1:Add>
        </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

------

The interesting line is where parameter "a" (or "b") is set.
As far as I found out it should read "<ns1:a
xsi:type="xsd:float">10.0</ns1:arg0>" as the wsdl document requires
qualified elements. (I tried the 2nd version with Xml Spy SOAP request
generator and it worked.)

Could someone please give me a hint how to get the parameters qualified
in the soap request, cause I coud not find out myself...

Any suggestions?

Thanks,
Till



-- 
Caught in our narrowminded believe...
-------------------------------------
Till Woerner
Berlin, Germany
EMail:[EMAIL PROTECTED]
ICQ#: 7162410

Reply via email to