You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Robert Rapant (JIRA)" <ji...@apache.org> on 2008/03/13 03:11:46 UTC

[jira] Created: (CXF-1475) Dynamic client invocation places argument in soap header

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.