Hello, I am sorry I am not replying because I can help you. I was just wondering where do you set this SEND_TYPE_ATTR? I am having some trouble with xsd polymorphism and axis2+xmlbeans. So my problem is exactly the opposite, I need the xsi:types, but axis2 is not generating it.
Anyway, back to your problem, could you please explain why the xml that axis sends is "not accepted" ? Is there an exception perhaps? SoapUI has an error log if this is the case... On Wednesday 11 June 2008 04:26:00 am Roger P wrote: > 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] -- Ing. David Ojeda Integra Consultores +58 416 6262898 Caracas, Venezuela --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
