Hello, All,
I use a Xfire generated client stub to make web services calls to a remote
server.
The Java code looks like:
FrightEstimationServiceSoapQSServiceClient client = new
FrightEstimationServiceSoapQSServiceClient();
FrightEstimationServiceSoap frightEstimationServiceSoap =
client.getFrightEstimationServiceSoapQSPort();
FreightEstimationRequest soapRequest = new FreightEstimationRequest();
soapRequest.setAccountNumber("94031");
However, the generated request is not correct in its namespace.
<getFrightAndHandlingCharges
xmlns="http://mheducation.com/FreightEstimation">
<ns2:FreightEstimationRequest
xmlns:ns2="http://mheducation.com/FreightEstimation/FreightEstimationRequest">
<AccountNumber>94031</AccountNumber>
....
The AccountNumber is associated with the default namespace
xmlns="http://mheducation.com/FreightEstimation" instead of the expected one
as
xmlns:ns2="http://mheducation.com/FreightEstimation/FreightEstimationRequest">
I am not sure whether it is a bug or a configurable thing. I have to admit I
am very green using Xfire even though using other web services tools for
many years. Any helps will be appreciated.
Thanks.
Denis
--
View this message in context:
http://www.nabble.com/wrong-namespace-using-Xfire-generated-client-stub-tf3240579.html#a9008120
Sent from the XFire - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email