0 Replies Latest reply: Jul 14, 2012 2:15 AM by 911262 RSS

    Unmarshalling problem when getting response from SOAP web service

    911262
      I have created client using apache CXF to call SAP B1WS web service.
      Client is generated using maven CXF plugin(WSDL2JAVA) with CXF version 2.6.1.
      When I receive response from web service , I am getting unmarshalling error to get BusinessPartner data.


      java.lang.RuntimeException: org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://www.sap.com/SBO/DIS", local:"CardCode"). Expected elements are <{}OpenOrdersBalance>,<{}MinIntrest>,<{}FrozenFrom>,<{}BillofExchangeonCollection>,<{}CardForeignName>,<{}TaxExemptionLetterNum>,<{}CompanyRegistrationNumber>,<{}NationalInsuranceNum>,<{}OpenOpportunities>,<{}FormCode1099>,<{}EmailAddress>,<{}RateDiffAccount>,<{}SinglePayment>,<{}ShipToDefault>,<{}ReferenceDetails>,<{}U_TestUDF>,<{}DefaultAccount>,<{}DeductionOffice>,<{}PeymentMethodCode>,<{}AdditionalID>,<{}OpenDeliveryNotesBalance>,<{}DeferredTax>,<{}Country>,<{}ProjectCode>,<{}OperationCode347>,<{}DeductionValidUntil>,<{}TaxRoundingRule>,<{}Password>,<{}AccrualCriteria>,<{}ShaamGroup>,<{}CompanyPrivate>,<{}DME>,<{}ExemptNum>,<{}CardType>,<{}BPFiscalTaxIDCollection>,<{}CustomerBillofExchangPres>,<{}BPBankAccounts>,<{}Block>,<{}Equalization>,<{}Picture>,<{}BPAddresses>,<{}MailCity>,<{}DownPaymentClearAct>,<{}BillToBuildingFloorRoom>,<{}InsuranceOperation347>,<{}GroupCode>,<{}WithholdingTaxDeductionGroup>,<{}MailZipCode>,<{}WithholdingTaxCertified>,<{}Properties27>,<{}AvarageLate>,<{}Properties28>,<{}Properties29>,<{}CommissionPercent>,<{}Properties20>,<{}CertificateNumber>,<{}Properties21>,<{}Properties22>,<{}Properties23>,<{}Properties24>,<{}FatherType>,<{}Properties25>,<{}ExpirationDate>,<{}Properties26>,<{}CardName>,<{}PlanningGroup>,<{}Properties38>,<{}CreditCardExpiration>,<{}Pager>,<{}Properties39>,<{}Properties32>,<{}Properties33>,<{}ShippingType>,<{}Properties30>,<{}Properties31>,<{}Properties36>,<{}Properties37>,<{}DunningLevel>,<{}Properties34>,<{}HouseBankBranch>,<{}Properties35>,<{}Notes>,<{}DunningTerm>,<{}Box1099>,<{}MaxAmountOfExemption>,<{}ValidFrom>,<{}DiscountPercent>,<{}DownPaymentInterimAccount>,<{}FrozenTo>,<{}CreditCardCode>,<{}DefaultBankCode>,<{}LastMultiReconciliationNum>,<{}CollectionAuthorization>,<{}BPPaymentMethods>,<{}MaxCommitment>,<{}LanguageCode>,<{}FederalTaxID>,<{}CustomerBillofExchangDisc>,<{}Properties18>,<{}BilltoDefault>,<{}Properties19>,<{}Properties16>,<{}Profession>,<{}Properties17>,<{}Properties14>,<{}Properties15>,<{}Properties12>,<{}HierarchicalDeduction>,<{}Properties13>,<{}Properties10>,<{}ZipCode>,<{}Properties11>,<{}PaymentBlock>,<{}DiscountRelations>,<{}MailCountry>,<{}HouseBankAccount>,<{}CreditCardNum>,<{}ExemptionValidityDateFrom>,<{}Phone1>,<{}VatGroupLatinAmerica>,<{}Phone2>,<{}BlockDunning>,<{}VatLiable>,<{}Territory>,<{}Properties61>,<{}BookkeepingCertified>,<{}Properties62>,<{}Properties60>,<{}FatherCard>,<{}ContactEmployees>,<{}Properties64>,<{}Properties63>,<{}FrozenRemarks>,<{}MailCounty>,<{}CardCode>,<{}ExportCode>,<{}Currency>,<{}Properties3>,<{}Properties4>,<{}Properties5>,<{}Properties6>,<{}Properties7>,<{}Properties8>,<{}Properties9>,<{}DeductionPercent>,<{}Cellular>,<{}ThresholdOverlook>,<{}BPWithholdingTaxCollection>,<{}UnpaidBillofExchange>,<{}DefaultTechnician>,<{}OtherReceivablePayable>,<{}CreditLimit>,<{}MailAddress>,<{}Affiliate>,<{}BankChargesAllocationCode>,<{}Properties40>,<{}DiscountGroups>,<{}Properties2>,<{}PriceListNum>,<{}Properties48>,<{}PayTermsGrpCode>,<{}Properties1>,<{}Properties47>,<{}Properties46>,<{}Properties45>,<{}Properties44>,<{}Properties43>,<{}Properties42>,<{}Properties41>,<{}SurchargeOverlook>,<{}BPPaymentDates>,<{}ValidTo>,<{}Properties49>,<{}SalesPersonCode>,<{}CurrentAccountBalance>,<{}ContactPerson>,<{}VatGroup>,<{}Properties50>,<{}BPAccountReceivablePaybleCollection>,<{}Properties51>,<{}DebitorAccount>,<{}BackOrder>,<{}City>,<{}ValidRemarks>,<{}Priority>,<{}Properties57>,<{}Properties56>,<{}Properties59>,<{}Properties58>,<{}Properties53>,<{}Properties52>,<{}Properties55>,<{}Address>,<{}IntrestRatePercent>,<{}Properties54>,<{}DunningDate>,<{}InstructionKey>,<{}ClosingDateProcedureNumber>,<{}PaymentBlockDescription>,<{}BillToState>,<{}Indicator>,<{}LinkedBusinessPartner>,<{}ShipToBuildingFloorRoom>,<{}SubjectToWithholdingTax>,<{}IBAN>,<{}DeductibleAtSource>,<{}BankCountry>,<{}CommissionGroupCode>,<{}HouseBankCountry>,<{}ISRBillerID>,<{}DiscountBaseObject>,<{}Valid>,<{}WTCode>,<{}FreeText>,<{}ExemptionValidityDateTo>,<{}VerificationNumber>,<{}PartialDelivery>,<{}TypeReport>,<{}ChannelBP>,<{}HouseBank>,<{}OwnerIDNumber>,<{}Website>,<{}Fax>,<{}Frozen>,<{}DefaultBranch>,<{}County>
           at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:108)
           at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:323)
           at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
           at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:206)
           at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:209)
           at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:152)
           at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:114)
           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:184)
           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:112)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:575)
           at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:163)
           at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
           at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:478)
           at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)
           at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
           at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:480)
           at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
           at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
           at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:116)
           at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
           at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
           at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)