I've googled but get either too many or too few hits. I'm forced to
use a set of products and they don't want to play with each other.

I've got this web service that I can successfully call using Soapui
but it fails when I use Axis 1.2.1. The code is generated by Borland
Jbuilder so I don't have that many configuration options (in the GUI
editor).

Anyway this is part of what the sever thinks is OK:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:xsd="http://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd";
        xmlns:xsd1="http://fk.se/ICC/IntegrationsCommon/xsd";>
   <soapenv:Header/>
   <soapenv:Body>
      <xsd:BeraknaBostadsbidragRequest>
<!-- snip -->
         <xsd:AntalBarnHemma>1</xsd:AntalBarnHemma>
<!-- snip -->
      </xsd:BeraknaBostadsbidragRequest>
   </soapenv:Body>
</soapenv:Envelope>


And this is what Axis sends (not accepted):
   <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
        xmlns:xsd="http://www.w3.org/2001/XMLSchema";
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
      <soapenv:Body>
         <BeraknaBostadsbidragRequest
xmlns="http://fk.se/ICC/Integrations/I0021/BeraknaBostadsbidrag/xsd";>
<!-- snip -->
            <AntalBarnHemma xsi:type="xsd:short">1</AntalBarnHemma>
<!-- snip -->
         </BeraknaBostadsbidragRequest>
      </soapenv:Body>
   </soapenv:Envelope>


The relevant part of the xsd:
<xs:element name="AntalBarnHemma">
<xs:simpleType>
        <xs:restriction base="xs:short">
        <xs:totalDigits value="1" />
        <xs:minInclusive value="0" />
        <xs:maxInclusive value="9" />
        </xs:restriction>
</xs:simpleType>
</xs:element>

So how can I get Axis to use something similar to the accepted
version? If I intercept using TCPMonitor and remove
xsi:type="xsd:short" then it works. SEND_TYPE_ATTR is set to false.
WSDL element soap:body has attribute use="literal" so I tried
"wrapped" with setEncodingStyle.

Thanks!
Roger P

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to