You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by brijesh <br...@gmail.com> on 2009/01/29 15:59:42 UTC

cxf-bc & xml message

hello , 

I have xbean configuration for smx-bc component. as follows 

 <cxfbc:consumer wsdl="classpath:3rcontract.wsdl"
  					  service="eka:ContractService"
  					  targetService="eka:contractBeanRouter"
  					  useJBIWrapper="false" 
  					  useSOAPEnvelope="false"
  					 endpoint="ContractServicePort"/>
 	

i am generating client .NET , 
But in my in target service i have cxf-bean which is giving xml as with
&gt;&lt instead of ><

is there a way to avoid this, or any work around for this?? my xml as
follows 

<?xml version="1.0" encoding="UTF-8"?><CreateContract
xmlns="http://ekaplus.com/contract"><ipContractXML>&lt;com:Contract
xmlns:com="com.ekaplus.v7.cotton.physical.contract"&gt;&lt;com:UserConte
xt&gt;&lt;UserName&gt;admin&lt;/UserName&gt;&lt;CoportateId&gt;NCT&lt;/CoportateId&gt;&lt;/com:UserContext&gt;&lt;com:Header&gt;&lt;ContractNo&gt;123456&lt;/ContractNo&gt;&lt;Type&gt;P&lt;/Type&gt;&lt;/com:Header&gt;
&lt;com:Data&gt;&lt;com:ContractDetails&gt;&lt;com:ContractIssueDate&gt;11-Jan-2009&lt;/com:ContractIssueDate&gt;&lt;com:BookId&gt;CPC-9&lt;/com:BookId&gt;&lt;!--Optional:--&gt;&lt;com:TraderId&gt;USER-000082&lt;/com
:TraderId&gt;&lt;!--Optional:--&gt;&lt;com:OurPersonInChargeId&gt;GAB-1&lt;/com:OurPersonInChargeId&gt;&lt;com:CPId&gt;PHD-1&lt;/com:CPId&gt;&lt;!--Optional:--&gt;&lt;com:CPContractRefNo&gt;PCM-800&lt;/com:CPContract
RefNo&gt;&lt;!--Optional:--&gt;&lt;com:CPPersonInChargeId&gt;GAB-1&lt;/com:CPPersonInChargeId&gt;&lt;!--Optional:--&gt;&lt;com:AgentId&gt;PHD-1&lt;/com:AgentId&gt;&lt;!--Optional:--&gt;&lt;com:AgentRefNo&gt;shan&lt;/
com:AgentRefNo&gt;&lt;!--Optional:--&gt;&lt;com:AgentPersonInChargeId&gt;GAB-1&lt;/com:AgentPersonInChargeId&gt;&lt;!--Optional:--&gt;&lt;com:AgentCommission
com:Price="1200" com:PriceUnitId="PPU-1"/&gt;&lt;com:Contr
actQuantityUnitId&gt;&lt;/com:ContractQuantityUnitId&gt;&lt;/com:ContractDetails&gt;&lt;com:ItemDetails&gt;&lt;!--1
or more repetitions:--&gt;&lt;com:Item
com:ItemNo="1"&gt;&lt;com:ProductDetails&gt;&lt;com:ProductId
&gt;PDM-1&lt;/com:ProductId&gt;&lt;com:OriginId&gt;POM-70&lt;/com:OriginId&gt;&lt;com:CropYearId&gt;5&lt;/com:CropYearId&gt;&lt;com:QualityId&gt;QAT-4&lt;/com:QualityId&gt;&lt;!--Optional:--&gt;&lt;com:QualityPDSched
uleId&gt;QPD-1&lt;/com:QualityPDScheduleId&gt;&lt;!--Optional:--&gt;&lt;com:WeightTermsId&gt;1&lt;/com:WeightTermsId&gt;&lt;!--Optional:--&gt;&lt;com:QualityDescription&gt;QAT-4&lt;/com:QualityDescription&gt;&lt;!--O
ptional:--&gt;&lt;com:UseShortDescription&gt;N&lt;/com:UseShortDescription&gt;&lt;/com:ProductDetails&gt;&lt;com:QuantityDetails&gt;&lt;!--Optional:--&gt;&lt;com:IsAreaContract&gt;N&lt;/com:IsAreaContract&gt;&lt;com:
PackingTypeId&gt;BALES&lt;/com:PackingTypeId&gt;&lt;com:Area
com:Quantity="100" com:QuantityUnitId="AQU-1"&gt;&lt;com:Yield
com:Quantity="100" com:QuantityUnitId="YQU-1"/&gt;&lt;com:Withheld
com:Quantity="100" com:Qu
antityUnitId="QUM-1"/&gt;&lt;/com:Area&gt;&lt;com:ItemQuantity
com:Quantity="100"
com:QuantityUnitId="QUM-1"/&gt;&lt;/com:QuantityDetails&gt;&lt;com:PriceDetails
com:PayInCurrencyId="CM-1"&gt;&lt;!--You have a CHOICE
 of the next 4 items at this
level--&gt;&lt;com:Fixed&gt;&lt;com:ContractPrice com:Price="1200"
com:PriceUnitId="PPU-3"/&gt;&lt;/com:Fixed&gt;&lt;com:Equity&gt;&lt;com:EquityPremium
com:Price="" com:PriceUnitId=""/&g
t;&lt;com:LoanPrice com:Price=""
com:PriceUnitId=""/&gt;&lt;/com:Equity&gt;&lt;com:OnCallBasisFixed&gt;&lt;com:FuturesExchangeContractId&gt;&lt;/com:FuturesExchangeContractId&gt;&lt;com:PriceFixById&gt;&lt;/com:Price
FixById&gt;&lt;com:PriceFixDateRange com:PriceFixDate=""
com:DescriptionId=""/&gt;&lt;com:PriceFixMethodId&gt;&lt;/com:PriceFixMethodId&gt;&lt;com:OnCallToEquity&gt;&lt;/com:OnCallToEquity&gt;&lt;!--1
or more repetit
ions:--&gt;&lt;com:PriceMonthDetails&gt;&lt;com:PriceMonthQtyId
com:Quantity=""
com:QuantityUnit=""/&gt;&lt;com:PriceMonthId&gt;&lt;/com:PriceMonthId&gt;&lt;com:PriceYearId&gt;&lt;/com:PriceYearId&gt;&lt;/com:PriceMo
nthDetails&gt;&lt;/com:OnCallBasisFixed&gt;&lt;com:OnCallBasisUnFixed&gt;&lt;com:FutureContractId&gt;&lt;/com:FutureContractId&gt;&lt;com:PriceFixById&gt;&lt;/com:PriceFixById&gt;&lt;com:PriceFixDateRange
com:PriceFi
xDate=""
com:DescriptionId=""/&gt;&lt;com:PriceFixMethodId&gt;&lt;/com:PriceFixMethodId&gt;&lt;!--Optional:--&gt;&lt;com:OnCallToEquity&gt;&lt;/com:OnCallToEquity&gt;&lt;!--1
or more repetitions:--&gt;&lt;com:PriceMo
nthDetails&gt;&lt;com:PriceMonthQtyId com:Quantity=""
com:QuantityUnit=""/&gt;&lt;com:PriceMonthId&gt;&lt;/com:PriceMonthId&gt;&lt;com:PriceYearId&gt;&lt;/com:PriceYearId&gt;&lt;/com:PriceMonthDetails&gt;&lt;/com:OnC
allBasisUnFixed&gt;&lt;/com:PriceDetails&gt;&lt;com:DeliveryDetails&gt;&lt;com:Origination
com:countryId="CYM-209" com:cityId="CIM-785"/&gt;&lt;com:Destination
com:CountryId="CYM-209" com:CityId="CIM-785"/&gt;&lt;com
:WarehouseId&gt;SHM-18&lt;/com:WarehouseId&gt;&lt;!--Optional:--&gt;&lt;com:OptionalDestinationRequired&gt;N&lt;/com:OptionalDestinationRequired&gt;&lt;!--1
or more repetitions:--&gt;&lt;com:OptionalDestination&gt;&l
t;com:Destination com:CountryId="SHM-18"
com:CityId="CIM-785"/&gt;&lt;!--Optional:--&gt;&lt;com:WarehouseId&gt;SHM-18&lt;/com:WarehouseId&gt;&lt;com:Basis
com:Price="1200" com:PriceUnitId="PPU-1"/&gt;&lt;/com:Optiona
lDestination&gt;&lt;!--1 or more
repetitions:--&gt;&lt;com:DeliveryPeriod&gt;&lt;com:DeliveryPeriodQuantity
com:Quantity="100"com:QuantityUnitId="QUM-1"/&gt;&lt;com:DeliveryPeriod
com:Start="14-Jan-2009" com:End="18-
Jan-2009"/&gt;&lt;/com:DeliveryPeriod&gt;&lt;/com:DeliveryDetails&gt;&lt;/com:Item&gt;&lt;/com:ItemDetails&gt;&lt;com:TermsandConditions&gt;&lt;com:INCOTermsId&gt;ITM-3&lt;/com:INCOTermsId&gt;&lt;!--Optional:--&gt;&l
t;com:FreightTermsId&gt;FRM-1&lt;/com:FreightTermsId&gt;&lt;com:PaymentTermsId&gt;PYM-1&lt;/com:PaymentTermsId&gt;&lt;com:PaymentDueDate&gt;20-Jan-2009&lt;/com:PaymentDueDate&gt;&lt;!--Optional:--&gt;&lt;com:PrePayme
nt com:PercentageBy="10"
com:Days="15"/&gt;&lt;!--Optional:--&gt;&lt;com:StopLoss&gt;15&lt;/com:StopLoss&gt;&lt;!--Optional:--&gt;&lt;com:BankId&gt;PHD-1&lt;/com:BankId&gt;&lt;!--Optional:--&gt;&lt;com:CarryTerms
com
:Price="1200"
com:PriceUnitId="CTD-1"/&gt;&lt;com:ProvInvPercIfUnpriced&gt;10&lt;/com:ProvInvPercIfUnpriced&gt;&lt;!--Optional:--&gt;&lt;com:ProvInvPercIfUnweighted&gt;15&lt;/com:ProvInvPercIfUnweighted&gt;&lt;!--Opt
ional:--&gt;&lt;com:InternalComments&gt;shan&lt;/com:InternalComments&gt;&lt;!--Optional:--&gt;&lt;com:OutputDocumentText&gt;shan&lt;/com:OutputDocumentText&gt;&lt;!--Optional:--&gt;&lt;com:AdditionalSpecialrequireme
nts&gt;shan&lt;/com:AdditionalSpecialrequirements&gt;&lt;/com:TermsandConditions&gt;&lt;!--Optional:--&gt;&lt;com:ModifyContract&gt;&lt;!--Optional:--&gt;&lt;com:ModificationDate&gt;&lt;/com:ModificationDate&gt;&lt;!
--Optional:--&gt;&lt;com:Description&gt;&lt;/com:Description&gt;&lt;/com:ModifyContract&gt;&lt;/com:Data&gt;&lt;!--Optional:--&gt;&lt;com:Accruels
xmlns:com1="com.ekaplus.v7.cotton.common.document.accrual"&gt;&lt;com
1:CostAccruals
ItemNo=""&gt;&lt;com1:CostTypeId&gt;&lt;/com1:CostTypeId&gt;&lt;com1:CostComponentId&gt;&lt;/com1:CostComponentId&gt;&lt;com1:CpId&gt;&lt;/com1:CpId&gt;&lt;com1:RateTypeId&gt;&lt;/com1:RateTypeId&gt;&l
t;com1:CostValue Cost=""
PriceUnitId=""/&gt;&lt;com1:CostAmount&gt;&lt;/com1:CostAmount&gt;&lt;com1:FxtoBase&gt;&lt;/com1:FxtoBase&gt;&lt;com1:EffectiveDate&gt;&lt;/com1:EffectiveDate&gt;&lt;/com1:CostAccruals&gt;&lt
;/com:Accruels&gt;&lt;/com:Contract&gt;</ipContractXML></CreateContract>


thanks a lot for the help 

Brijesh N K
-- 
View this message in context: http://www.nabble.com/cxf-bc---xml-message-tp21728519p21728519.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.