cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Rapant (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-1475) Dynamic client invocation places argument in soap header
Date Thu, 13 Mar 2008 02:11:46 GMT
Dynamic client invocation places argument in soap header
--------------------------------------------------------

                 Key: CXF-1475
                 URL: https://issues.apache.org/jira/browse/CXF-1475
             Project: CXF
          Issue Type: Bug
          Components: Soap Binding
    Affects Versions: 2.0.4
         Environment: Windows XP SP2, Java 1.6, generated web service from http://www.xignite.com/xNews.asmx?WSDL
            Reporter: Robert Rapant


			DynamicClientFactory dcf = DynamicClientFactory.newInstance();
			Client client = dcf.createClient("file:src/test/xNews.wsdl");
			Object[] res = client.invoke("GetStockHeadlines", "MSFT", 3);

produces: 

	<soap:Envelope
		xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
		<soap:Header>
			<Header xmlns:ns3="http://www.w3.org/2001/XMLSchema"
				xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
				xmlns="http://www.xignite.com/services/" xsi:type="ns3:int">3
			</Header>
		</soap:Header>
		<soap:Body>
			<ns1:GetStockHeadlines
				xmlns:ns1="http://www.xignite.com/services/">
				<Symbols xmlns="http://www.xignite.com/services/">
					MSFT
				</Symbols>
			</ns1:GetStockHeadlines>
		</soap:Body>
	</soap:Envelope>

exception:

Server was unable to read request. --> There is an error in XML document (1, 85). -->
The specified type was not recognized: name='i
nt', namespace='http://www.w3.org/2001/XMLSchema', at &lt;Header xmlns='http://www.xignite.com/services/'&gt;.

In contrast, the direct manner of invocation below works fine:
			XigniteNews newsService = new XigniteNews();
			XigniteNewsSoap soap = newsService.getXigniteNewsSoap();
			ArrayOfStockNews newsArray = soap.getStockHeadlines("MSFT", 3);


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message