[JBoss JIRA] Created: (JBWS-1815) Cannot add fault detail
by Thomas Diesler (JIRA)
Cannot add fault detail
-----------------------
Key: JBWS-1815
URL: http://jira.jboss.com/jira/browse/JBWS-1815
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Thomas Diesler
Fix For: jbossws-2.0.2
Hello!
I can't get the detail element of the SOAPFault. Is there a magic way to do this. I have a Provider< SOAPMessage > implementation. When I do the following ...
Code:
@Local
@Stateless
@WebServiceProvider(
serviceName = "MyService",
portName = "MyServiceSoap11Port",
targetNamespace = "http://my.service.com/something",
wsdlLocation = "META-INF/wsdl/my-service.wsdl")
@ServiceMode(value = Service.Mode.MESSAGE)
public class MyServiceEndpointProvider implements Provider<SOAPMessage> {
public SOAPMessage invoke(SOAPMessage requestSoapMessage) {
...
SOAPFault theSOAPFault = SOAPFactory.newInstance().createFault();
Detail soapFaultDetail = soapFault.addDetail();
SOAPElement myFaultElement = soapFaultDetail.addChildElement(new QName("http://my.service.com/common-ws/types", "myFault"));
SOAPElement myCodeElement = myFaultElement.addChildElement(new QName("http://my.service.com/common-ws/types", "code"));
myCodeElement.setNodeValue("SC_BAD_REQUEST");
SOAPElement myMessageElement = myFaultElement.addChildElement(new QName("http://my.service.com/common-ws/types", "message"));
myMessageElement.setNodeValue("This is a faked error");
throw new SOAPFaultException(theSOAPFault)
...
}
}
... the detail part of the fault is missing, i.e. the serialized response does not contain my detail information, just the top fault element. Am I missing something obvious here or is it a bug. I'm using JBoss 4.2.1.GA with JBossWS 2.0.1.GA. And yes, my wsdl points out a fault element specifying the detail above.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months
[JBoss JIRA] Created: (JBWS-1810) In wstools use String.replace(CharSequence,char,char) instead of String.replace(CharSequence,CharSequence,CharSequence)
by Darran Lofthouse (JIRA)
In wstools use String.replace(CharSequence,char,char) instead of String.replace(CharSequence,CharSequence,CharSequence)
-----------------------------------------------------------------------------------------------------------------------
Key: JBWS-1810
URL: http://jira.jboss.com/jira/browse/JBWS-1810
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: tools-jaxrpc
Affects Versions: jbossws-2.0.1
Reporter: Darran Lofthouse
Assigned To: Darran Lofthouse
Fix For: jbossws-2.0.2
In wstools use String.replace(CharSequence,char,char) instead of String.replace(CharSequence,CharSequence,CharSequence), this is due to a limitation in the version of JBoss Retro included in some JBoss AS releases returning an empty String when you call the second replace method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 3 months