Server did not recogize the value of Http header ------------------------------------------------
Key: XFIRE-1126 URL: http://jira.codehaus.org/browse/XFIRE-1126 Project: XFire Issue Type: Bug Environment: Windows XP, Eclipse 3.3, xfire plugin org.codehaus.xfire.eclipse_1.0.2.xfire126.jar Reporter: Richard Johnson Assignee: Dan Diephouse Attachments: lists.wsdl I am generating java classes based on the attached wsdl with the Eclipse plugin. When the code is executed there is a returned error stating that the soap action header was not set. There was a similar bug that was marked fixed however I am still seeing this issue. Could the patched code not have made it to the plugin functionality? In any case, there is still an issue that needs to be addressed. Here is the code being executed. Service service = new ObjectServiceFactory().create(ListsSoap.class); HttpParams params = HttpClientParams.getDefaultParams(); params.setParameter(CredentialsProvider.PROVIDER, new DieselCredentialsProvider()); service.setProperty(CommonsHttpMessageSender.HTTP_CLIENT_PARAMS, params); XFire xfire = XFireFactory.newInstance().getXFire(); XFireProxyFactory factory = new XFireProxyFactory(xfire); String serviceUrl = "http://xxxxx/_vti_bin/lists.asmx"; ListsSoap client = (ListsSoap) factory.create(service, serviceUrl); GetListItems list = new GetListItems(); list.setListName("listname"); GetListItemsResponse response = client.getListItems(list); When executing the above code I get the following error. org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Server did not recognize the value of HTTP Header SOAPAction: . org.codehaus.xfire.fault.XFireFault: Server did not recognize the value of HTTP Header SOAPAction: . at org.codehaus.xfire.fault.Soap11FaultSerializer.readMessage(Soap11FaultSerializer.java:31) at org.codehaus.xfire.fault.SoapFaultSerializer.readMessage(SoapFaultSerializer.java:28) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.checkForFault(ReadHeadersHandler.java:111) at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:67) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Client.onReceive(Client.java:406) at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139) at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114) at org.codehaus.xfire.client.Client.invoke(Client.java:336) at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) at $Proxy10.getListItems(Unknown Source) at com.dieselpoint.pipeline.connector.sharepoint.stub.TestXFireStubs.testLists(TestXFireStubs.java:52) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:164) at junit.framework.TestCase.runBare(TestCase.java:130) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:120) at junit.framework.TestSuite.runTest(TestSuite.java:230) at junit.framework.TestSuite.run(TestSuite.java:225) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email