You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "daryoush mehrtash (JIRA)" <ax...@ws.apache.org> on 2005/06/04 01:25:43 UTC
[jira] Created: (AXIS-2039) Axis generates invalid fault messages.
Axis generates invalid fault messages.
--------------------------------------
Key: AXIS-2039
URL: http://issues.apache.org/jira/browse/AXIS-2039
Project: Axis
Type: Bug
Components: Serialization/Deserialization
Versions: 1.2
Reporter: daryoush mehrtash
Attachments: 133wsdl.xml, StockQuoteProviderSoapBindingImpl.java
I used the attached wsdl to generate my service. I then changed my BindingImpl to throw the exceptions.
The detail elements of the fault do not seem to be correct. Anne Thomas Manes suggested that:
This definition:
<schema…..>
<complexType name="MyOtherException">
<sequence>
<element name="myOtherString" nillable="true" type="xsd:string"/>
<element name="myString" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<element name="fault1" type="impl:MyOtherException"/>
</schema>
…………….
<wsdl:message name="MyOtherException">
<wsdl:part element="impl:fault1" name="fault"/>
</wsdl:message>
should produce this:
<detail>
<ns1:fault1 xmlns:ns1="your-schema-targetNamespace">
<ns1:myOtherString>xxxx</ns1:myOtherString>
<ns1:myString>2ndString</ns1:myString>
</ns1:fault1>
</detail>
(That's assuming you used elementFormDefault="qualified" -- if not, then the two subelements would not be namespace qualified).
But I get the following messages:
> MyOtherException:
>
> <?xml version="1.0" encoding="UTF-8"?> <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>
> <soapenv:Fault>
> <faultcode>soapenv:Server.generalException</faultcode>
> <faultstring />
> <detail>
> <web.MyOtherException>
> <ns1:myOtherString
> xmlns:ns1="http://web">xxxx</ns1:myOtherString>
> <ns2:myString
> xmlns:ns2="http://web">2ndString</ns2:myString>
> </web.MyOtherException>
> <ns3:exceptionName
> xmlns:ns3="http://xml.apache.org/axis/">web.MyOtherException</ns3:exceptionName>
> <ns4:hostname
> xmlns:ns4="http://xml.apache.org/axis/">DMEHRTAS02</ns4:hostname>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
>
>
>
>
>
>
> InvalidTickerException:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?> <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>
> <soapenv:Fault>
> <faultcode>soapenv:Server.generalException</faultcode>
> <faultstring />
> <detail>
> <ns1:fault xmlns:ns1="http://web">
>
> <ns1:tickerSymbol>xxx</ns1:tickerSymbol>
> </ns1:fault>
> <ns2:exceptionName
> xmlns:ns2="http://xml.apache.org/axis/">web.InvalidTickerException</ns2:exceptionName>
> <ns3:hostname
> xmlns:ns3="http://xml.apache.org/axis/">DMEHRTAS02</ns3:hostname>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
>
I have attached my wsdl and my bindingimpl to reproduce the test.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-2039) Axis generates invalid fault messages.
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2039?page=comments#action_12313275 ]
Davanum Srinivas commented on AXIS-2039:
----------------------------------------
daryoush,
can you please send in a patch as discussed?
thanks,
dims
> Axis generates invalid fault messages.
> --------------------------------------
>
> Key: AXIS-2039
> URL: http://issues.apache.org/jira/browse/AXIS-2039
> Project: Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2
> Reporter: daryoush mehrtash
> Attachments: 133wsdl.xml, StockQuoteProviderSoapBindingImpl.java
>
> I used the attached wsdl to generate my service. I then changed my BindingImpl to throw the exceptions.
> The detail elements of the fault do not seem to be correct. Anne Thomas Manes suggested that:
> This definition:
> <schema?..>
> <complexType name="MyOtherException">
> <sequence>
> <element name="myOtherString" nillable="true" type="xsd:string"/>
> <element name="myString" nillable="true" type="xsd:string"/>
> </sequence>
> </complexType>
> <element name="fault1" type="impl:MyOtherException"/>
> </schema>
> ?????.
> <wsdl:message name="MyOtherException">
> <wsdl:part element="impl:fault1" name="fault"/>
> </wsdl:message>
>
> should produce this:
> <detail>
> <ns1:fault1 xmlns:ns1="your-schema-targetNamespace">
> <ns1:myOtherString>xxxx</ns1:myOtherString>
> <ns1:myString>2ndString</ns1:myString>
> </ns1:fault1>
> </detail>
> (That's assuming you used elementFormDefault="qualified" -- if not, then the two subelements would not be namespace qualified).
> But I get the following messages:
> > MyOtherException:
> >
> > <?xml version="1.0" encoding="UTF-8"?> <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>
> > <soapenv:Fault>
> > <faultcode>soapenv:Server.generalException</faultcode>
> > <faultstring />
> > <detail>
> > <web.MyOtherException>
> > <ns1:myOtherString
> > xmlns:ns1="http://web">xxxx</ns1:myOtherString>
> > <ns2:myString
> > xmlns:ns2="http://web">2ndString</ns2:myString>
> > </web.MyOtherException>
> > <ns3:exceptionName
> > xmlns:ns3="http://xml.apache.org/axis/">web.MyOtherException</ns3:exceptionName>
> > <ns4:hostname
> > xmlns:ns4="http://xml.apache.org/axis/">DMEHRTAS02</ns4:hostname>
> > </detail>
> > </soapenv:Fault>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> >
> >
> >
> >
> >
> >
> > InvalidTickerException:
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?> <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>
> > <soapenv:Fault>
> > <faultcode>soapenv:Server.generalException</faultcode>
> > <faultstring />
> > <detail>
> > <ns1:fault xmlns:ns1="http://web">
> >
> > <ns1:tickerSymbol>xxx</ns1:tickerSymbol>
> > </ns1:fault>
> > <ns2:exceptionName
> > xmlns:ns2="http://xml.apache.org/axis/">web.InvalidTickerException</ns2:exceptionName>
> > <ns3:hostname
> > xmlns:ns3="http://xml.apache.org/axis/">DMEHRTAS02</ns3:hostname>
> > </detail>
> > </soapenv:Fault>
> > </soapenv:Body>
> >
> I have attached my wsdl and my bindingimpl to reproduce the test.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (AXIS-2039) Axis generates invalid fault messages.
Posted by "daryoush mehrtash (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-2039?page=all ]
daryoush mehrtash updated AXIS-2039:
------------------------------------
Attachment: StockQuoteProviderSoapBindingImpl.java
133wsdl.xml
> Axis generates invalid fault messages.
> --------------------------------------
>
> Key: AXIS-2039
> URL: http://issues.apache.org/jira/browse/AXIS-2039
> Project: Axis
> Type: Bug
> Components: Serialization/Deserialization
> Versions: 1.2
> Reporter: daryoush mehrtash
> Attachments: 133wsdl.xml, StockQuoteProviderSoapBindingImpl.java
>
> I used the attached wsdl to generate my service. I then changed my BindingImpl to throw the exceptions.
> The detail elements of the fault do not seem to be correct. Anne Thomas Manes suggested that:
> This definition:
> <schema?..>
> <complexType name="MyOtherException">
> <sequence>
> <element name="myOtherString" nillable="true" type="xsd:string"/>
> <element name="myString" nillable="true" type="xsd:string"/>
> </sequence>
> </complexType>
> <element name="fault1" type="impl:MyOtherException"/>
> </schema>
> ?????.
> <wsdl:message name="MyOtherException">
> <wsdl:part element="impl:fault1" name="fault"/>
> </wsdl:message>
>
> should produce this:
> <detail>
> <ns1:fault1 xmlns:ns1="your-schema-targetNamespace">
> <ns1:myOtherString>xxxx</ns1:myOtherString>
> <ns1:myString>2ndString</ns1:myString>
> </ns1:fault1>
> </detail>
> (That's assuming you used elementFormDefault="qualified" -- if not, then the two subelements would not be namespace qualified).
> But I get the following messages:
> > MyOtherException:
> >
> > <?xml version="1.0" encoding="UTF-8"?> <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>
> > <soapenv:Fault>
> > <faultcode>soapenv:Server.generalException</faultcode>
> > <faultstring />
> > <detail>
> > <web.MyOtherException>
> > <ns1:myOtherString
> > xmlns:ns1="http://web">xxxx</ns1:myOtherString>
> > <ns2:myString
> > xmlns:ns2="http://web">2ndString</ns2:myString>
> > </web.MyOtherException>
> > <ns3:exceptionName
> > xmlns:ns3="http://xml.apache.org/axis/">web.MyOtherException</ns3:exceptionName>
> > <ns4:hostname
> > xmlns:ns4="http://xml.apache.org/axis/">DMEHRTAS02</ns4:hostname>
> > </detail>
> > </soapenv:Fault>
> > </soapenv:Body>
> > </soapenv:Envelope>
> >
> >
> >
> >
> >
> >
> >
> >
> > InvalidTickerException:
> >
> >
> >
> > <?xml version="1.0" encoding="UTF-8"?> <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>
> > <soapenv:Fault>
> > <faultcode>soapenv:Server.generalException</faultcode>
> > <faultstring />
> > <detail>
> > <ns1:fault xmlns:ns1="http://web">
> >
> > <ns1:tickerSymbol>xxx</ns1:tickerSymbol>
> > </ns1:fault>
> > <ns2:exceptionName
> > xmlns:ns2="http://xml.apache.org/axis/">web.InvalidTickerException</ns2:exceptionName>
> > <ns3:hostname
> > xmlns:ns3="http://xml.apache.org/axis/">DMEHRTAS02</ns3:hostname>
> > </detail>
> > </soapenv:Fault>
> > </soapenv:Body>
> >
> I have attached my wsdl and my bindingimpl to reproduce the test.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira