[
http://jira.jboss.com/jira/browse/JBWS-1688?page=all ]
Thomas Diesler updated JBWS-1688:
---------------------------------
Summary: Fix @WebParam handling (was: Add support for SwaRef)
Description:
Fix various issues with @WebParam. For example the default xmlName when @WebParam is not
specified
There also seems to be some JAXB context issues.
[tdiesler@tdvaio xfire]$ cat
output-tests/reports/TEST-org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.txt
Testsuite: org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase
Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 2.995 sec
Testcase: testEcho took 1.993 sec
Caused an ERROR
Parameter arg0 does not exist!
javax.xml.ws.soap.SOAPFaultException: Parameter arg0 does not exist!
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.echo(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testEcho(WebParamTestCase.java:69)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testPingOneWay took 0.049 sec
Caused an ERROR
Could not unmarshall type : "org.jboss.test.ws.jaxws.samples.webparam" doesnt
contain ObjectFactory.class or jaxb.index
javax.xml.ws.soap.SOAPFaultException: Could not unmarshall type :
"org.jboss.test.ws.jaxws.samples.webparam" doesnt contain ObjectFactory.class or
jaxb.index
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.pingOneWay(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testPingOneWay(WebParamTestCase.java:77)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testPingTwoWay took 0.049 sec
Caused an ERROR
Could not unmarshall type : "org.jboss.test.ws.jaxws.samples.webparam" doesnt
contain ObjectFactory.class or jaxb.index
javax.xml.ws.soap.SOAPFaultException: Could not unmarshall type :
"org.jboss.test.ws.jaxws.samples.webparam" doesnt contain ObjectFactory.class or
jaxb.index
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.pingTwoWay(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testPingTwoWay(WebParamTestCase.java:86)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testSecurePing took 0.065 sec
Caused an ERROR
Could not unmarshall type : "org.jboss.test.ws.jaxws.samples.webparam" doesnt
contain ObjectFactory.class or jaxb.index
javax.xml.ws.soap.SOAPFaultException: Could not unmarshall type :
"org.jboss.test.ws.jaxws.samples.webparam" doesnt contain ObjectFactory.class or
jaxb.index
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.securePing(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testSecurePing(WebParamTestCase.java:97)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
was:
15:53:23,212 INFO [ServiceBean] Exposing service with name
{http://swaref.samples.jaxws.ws.test.jboss.org}BareEndpointImpl
15:53:23,231 INFO [ServiceBean] Exposing service with name
{http://swaref.samples.jaxws.ws.test.jboss.org}RpcLitEndpointImpl
15:53:23,253 INFO [ServiceBean] Exposing service with name
{http://swaref.samples.jaxws.ws.test.jboss.org}WrappedEndpointImpl
15:53:23,258 ERROR [XFireServletController] Couldn't invoke servlet request.
org.jdom.IllegalNameException: The name "" is not legal for JDOM/XML namespaces:
Namespace URIs must be non-null and non-empty Strings.
at org.jdom.Namespace.getNamespace(Namespace.java:164)
at
org.codehaus.xfire.util.NamespaceHelper.getUniquePrefix(NamespaceHelper.java:58)
at org.codehaus.xfire.wsdl.AbstractWSDL.getNamespacePrefix(AbstractWSDL.java:291)
at
org.codehaus.xfire.wsdl11.builder.WSDLBuilder.writeParameters(WSDLBuilder.java:564)
at
org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createInputParts(WSDLBuilder.java:548)
at
org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createInputMessage(WSDLBuilder.java:373)
at
org.codehaus.xfire.wsdl11.builder.WSDLBuilder.createAbstractInterface(WSDLBuilder.java:234)
at org.codehaus.xfire.wsdl11.builder.WSDLBuilder.write(WSDLBuilder.java:161)
at
org.codehaus.xfire.wsdl11.builder.WSDLBuilderAdapter.write(WSDLBuilderAdapter.java:40)
at org.codehaus.xfire.DefaultXFire.generateWSDL(DefaultXFire.java:104)
at
org.jboss.wsf.stack.xfire.XFireServletControllerExt.generateWSDL(XFireServletControllerExt.java:85)
at
org.codehaus.xfire.transport.http.XFireServletController.doService(XFireServletController.java:125)
Fix @WebParam handling
----------------------
Key: JBWS-1688
URL:
http://jira.jboss.com/jira/browse/JBWS-1688
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: integration-xfire
Reporter: Thomas Diesler
Assigned To: Thomas Diesler
Fix For: jbossws-2.1.0
Fix various issues with @WebParam. For example the default xmlName when @WebParam is not
specified
There also seems to be some JAXB context issues.
[tdiesler@tdvaio xfire]$ cat
output-tests/reports/TEST-org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.txt
Testsuite: org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase
Tests run: 4, Failures: 0, Errors: 4, Time elapsed: 2.995 sec
Testcase: testEcho took 1.993 sec
Caused an ERROR
Parameter arg0 does not exist!
javax.xml.ws.soap.SOAPFaultException: Parameter arg0 does not exist!
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.echo(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testEcho(WebParamTestCase.java:69)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testPingOneWay took 0.049 sec
Caused an ERROR
Could not unmarshall type : "org.jboss.test.ws.jaxws.samples.webparam" doesnt
contain ObjectFactory.class or jaxb.index
javax.xml.ws.soap.SOAPFaultException: Could not unmarshall type :
"org.jboss.test.ws.jaxws.samples.webparam" doesnt contain ObjectFactory.class or
jaxb.index
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.pingOneWay(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testPingOneWay(WebParamTestCase.java:77)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testPingTwoWay took 0.049 sec
Caused an ERROR
Could not unmarshall type : "org.jboss.test.ws.jaxws.samples.webparam" doesnt
contain ObjectFactory.class or jaxb.index
javax.xml.ws.soap.SOAPFaultException: Could not unmarshall type :
"org.jboss.test.ws.jaxws.samples.webparam" doesnt contain ObjectFactory.class or
jaxb.index
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.pingTwoWay(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testPingTwoWay(WebParamTestCase.java:86)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
Testcase: testSecurePing took 0.065 sec
Caused an ERROR
Could not unmarshall type : "org.jboss.test.ws.jaxws.samples.webparam" doesnt
contain ObjectFactory.class or jaxb.index
javax.xml.ws.soap.SOAPFaultException: Could not unmarshall type :
"org.jboss.test.ws.jaxws.samples.webparam" doesnt contain ObjectFactory.class or
jaxb.index
at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:171)
at
com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:94)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:240)
at
com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:210)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:103)
at $Proxy25.securePing(Unknown Source)
at
org.jboss.test.ws.jaxws.samples.webparam.WebParamTestCase.testSecurePing(WebParamTestCase.java:97)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
at junit.extensions.TestSetup.run(TestSetup.java:23)
--
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