|
|
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Решил поиграться с soap, для тестов выбрал это , как потом выяснилось - зря. Всё настроил, всё нагенерил, но не работает :( запрос отправляется, а в ответ null. Пробовал тоже самое для другого сервиса(нашёл в каком-то туториале в гугле) там всё работает как и описано в статье. Возможно это связанно с тем что сбер использует .NET для своих сервисов и соответственно без бубнотанцев тут не обойтись. Пробовал wsimport и мавеновский cxf-codegen-plugin Через soapUI запрос отправляться и ответ приходит с данными. С soap до вчерашнего дня ни разу не работал. вот так генерю стабы Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. вот так пытаюсь получить данные Код: java 1. 2. 3. вот выхлоп в консоль автор07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - Invoke, operation info: [BindingOperationInfo: { http://web.cbr.ru/%7DSearchByName%5D]http://web.cbr.ru/}SearchByName], params: [Москвы] 07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - set requestContext to message be{java.lang.reflect.Method=public abstract ru.cbr.web.SearchByNameResponse$SearchByNameResult ru.cbr.web.CreditOrgInfoSoap.searchByName(java.lang.String), org.apache.cxf.jaxws.context.WrappedMessageContext.SCOPES={org.apache.cxf.message.Message.ENDPOINT_ADDRESS=APPLICATION}, org.apache.cxf.message.Message.ENDPOINT_ADDRESS=http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx} 07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by bus: [org.apache.cxf.ws.policy.PolicyOutInterceptor@b5a817] 07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by client: [] 07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by endpoint: [org.apache.cxf.interceptor.MessageSenderInterceptor@2e9803, org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@fe07b8, org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@1acf1c0, org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@133b1a1] 07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by binding: [org.apache.cxf.interceptor.AttachmentOutInterceptor@d30037, org.apache.cxf.interceptor.StaxOutInterceptor@b35bed, org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@1584cf8, org.apache.cxf.interceptor.WrappedOutInterceptor@255fb5, org.apache.cxf.interceptor.BareOutInterceptor@1ae9b8b, org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@65c7a4, org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@15f3ad] 07-ноя-2014 12:16:23 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by databinding: [] 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.ws.policy.PolicyOutInterceptor@b5a817 to phase setup 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@2e9803 to phase prepare-send 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@fe07b8 to phase pre-logical 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@1acf1c0 to phase pre-logical 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@133b1a1 to phase pre-logical 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.AttachmentOutInterceptor@d30037 to phase pre-stream 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.StaxOutInterceptor@b35bed to phase pre-stream 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@1584cf8 to phase pre-logical 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.WrappedOutInterceptor@255fb5 to phase marshal 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.BareOutInterceptor@1ae9b8b to phase marshal 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@65c7a4 to phase post-logical 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@15f3ad to phase write 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.HTTPConduit DEBUG - Conduit '{http://web.cbr.ru/}CreditOrgInfoSoap.http-conduit' has been (re)configured for plain http. 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.HTTPConduit DEBUG - No Trust Decider configured for Conduit '{http://web.cbr.ru/}CreditOrgInfoSoap.http-conduit' 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.HTTPConduit DEBUG - No Auth Supplier configured for Conduit '{http://web.cbr.ru/}CreditOrgInfoSoap.http-conduit' 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.HTTPConduit DEBUG - Conduit '{http://web.cbr.ru/}CreditOrgInfoSoap.http-conduit' has been configured for plain http. 07-ноя-2014 12:16:23 org.apache.cxf.transport.AbstractObservable DEBUG - registering incoming observer: org.apache.cxf.endpoint.ClientImpl@125df8a 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@1648bd9 was created. Current flow: setup [PolicyOutInterceptor] pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor] post-logical [SoapPreProtocolOutInterceptor] prepare-send [MessageSenderInterceptor] pre-stream [AttachmentOutInterceptor, StaxOutInterceptor] write [SoapOutInterceptor] marshal [WrappedOutInterceptor, BareOutInterceptor] 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.ws.policy.PolicyOutInterceptor@b5a817 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.HolderOutInterceptor@133b1a1 07-ноя-2014 12:16:23 org.apache.cxf.jaxws.interceptors.HolderOutInterceptor DEBUG - op: [OperationInfo: { http://web.cbr.ru/%7DSearchByName%5D]http://web.cbr.ru/}SearchByName] 07-ноя-2014 12:16:23 org.apache.cxf.jaxws.interceptors.HolderOutInterceptor DEBUG - op.hasOutput(): true 07-ноя-2014 12:16:23 org.apache.cxf.jaxws.interceptors.HolderOutInterceptor DEBUG - op.getOutput().size(): 1 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.SwAOutInterceptor@fe07b8 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.WrapperClassOutInterceptor@1acf1c0 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapHeaderOutFilterInterceptor@1584cf8 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapPreProtocolOutInterceptor@65c7a4 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.MessageSenderInterceptor@2e9803 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@139be67 to phase prepare-send-ending 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@1648bd9 was modified. Current flow: setup [PolicyOutInterceptor] pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor] post-logical [SoapPreProtocolOutInterceptor] prepare-send [MessageSenderInterceptor] pre-stream [AttachmentOutInterceptor, StaxOutInterceptor] write [SoapOutInterceptor] marshal [WrappedOutInterceptor, BareOutInterceptor] prepare-send-ending [MessageSenderEndingInterceptor] 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentOutInterceptor@d30037 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxOutInterceptor@b35bed 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.StaxOutEndingInterceptor@6195c9 to phase pre-stream-ending 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@1648bd9 was modified. Current flow: setup [PolicyOutInterceptor] pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor] post-logical [SoapPreProtocolOutInterceptor] prepare-send [MessageSenderInterceptor] pre-stream [AttachmentOutInterceptor, StaxOutInterceptor] write [SoapOutInterceptor] marshal [WrappedOutInterceptor, BareOutInterceptor] pre-stream-ending [StaxOutEndingInterceptor] prepare-send-ending [MessageSenderEndingInterceptor] 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor@15f3ad 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor@13a1de9 to phase write-ending 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@1648bd9 was modified. Current flow: setup [PolicyOutInterceptor] pre-logical [HolderOutInterceptor, SwAOutInterceptor, WrapperClassOutInterceptor, SoapHeaderOutFilterInterceptor] post-logical [SoapPreProtocolOutInterceptor] prepare-send [MessageSenderInterceptor] pre-stream [AttachmentOutInterceptor, StaxOutInterceptor] write [SoapOutInterceptor] marshal [WrappedOutInterceptor, BareOutInterceptor] write-ending [SoapOutEndingInterceptor] pre-stream-ending [StaxOutEndingInterceptor] prepare-send-ending [MessageSenderEndingInterceptor] 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.WrappedOutInterceptor@255fb5 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.BareOutInterceptor@1ae9b8b 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor@13a1de9 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxOutEndingInterceptor@6195c9 07-ноя-2014 12:16:23 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor@139be67 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.Headers DEBUG - Accept: */* 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.Headers DEBUG - SOAPAction: " http://web.cbr.ru/SearchByName" 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream DEBUG - No Trust Decider for Conduit '{http://web.cbr.ru/}CreditOrgInfoSoap.http-conduit'. An afirmative Trust Decision is assumed. 07-ноя-2014 12:16:23 org.apache.cxf.transport.http.URLConnectionHTTPConduit$URLConnectionWrappedOutputStream DEBUG - Sending POST Message with Headers to http://www.cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx Conduit :{ http://web.cbr.ru/}CreditOrgInfoSoap.http-conduit 07-ноя-2014 12:16:24 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by bus: [org.apache.cxf.ws.policy.PolicyInInterceptor@1d9c4c4] 07-ноя-2014 12:16:24 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by client: [] 07-ноя-2014 12:16:24 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by endpoint: [org.apache.cxf.jaxws.interceptors.WrapperClassInInterceptor@53345, org.apache.cxf.jaxws.interceptors.HolderInInterceptor@169369f, org.apache.cxf.jaxws.interceptors.SwAInInterceptor@811e2b, org.apache.cxf.frontend.WSDLGetInterceptor@e3aeda] 07-ноя-2014 12:16:24 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by binding: [org.apache.cxf.interceptor.AttachmentInInterceptor@1ec6bb1, org.apache.cxf.interceptor.StaxInInterceptor@924b12, org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@7e9758, org.apache.cxf.interceptor.DocLiteralInInterceptor@102293a, org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor@e0b4e5, org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@84342c, org.apache.cxf.binding.soap.interceptor.StartBodyInterceptor@17d4040, org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor@54b57, org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@1953fd7] 07-ноя-2014 12:16:24 org.apache.cxf.endpoint.ClientImpl DEBUG - Interceptors contributed by databinging: [org.apache.cxf.jaxb.attachment.JAXBAttachmentSchemaValidationHack@1925ff1] 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@1d9c4c4 to phase receive 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxws.interceptors.WrapperClassInInterceptor@53345 to phase post-logical 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxws.interceptors.HolderInInterceptor@169369f to phase pre-invoke 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxws.interceptors.SwAInInterceptor@811e2b to phase pre-invoke 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.frontend.WSDLGetInterceptor@e3aeda to phase read 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@1ec6bb1 to phase receive 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.StaxInInterceptor@924b12 to phase post-stream 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@7e9758 to phase read 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@102293a to phase unmarshal 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor@e0b4e5 to phase unmarshal 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@84342c to phase read 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.StartBodyInterceptor@17d4040 to phase read 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor@54b57 to phase post-protocol 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@1953fd7 to phase pre-protocol 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.jaxb.attachment.JAXBAttachmentSchemaValidationHack@1925ff1 to phase post-protocol 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@d8ecf3 was created. Current flow: receive [PolicyInInterceptor, AttachmentInInterceptor] post-stream [StaxInInterceptor] read [WSDLGetInterceptor, ReadHeadersInterceptor, SoapActionInInterceptor, StartBodyInterceptor] pre-protocol [MustUnderstandInterceptor] post-protocol [CheckFaultInterceptor, JAXBAttachmentSchemaValidationHack] unmarshal [DocLiteralInInterceptor, SoapHeaderInterceptor] post-logical [WrapperClassInInterceptor] pre-invoke [SwAInInterceptor, HolderInInterceptor] 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.ws.policy.PolicyInInterceptor@1d9c4c4 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.ws.policy.PolicyVerificationInInterceptor@2af542 to phase pre-invoke 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@d8ecf3 was modified. Current flow: receive [PolicyInInterceptor, AttachmentInInterceptor] post-stream [StaxInInterceptor] read [WSDLGetInterceptor, ReadHeadersInterceptor, SoapActionInInterceptor, StartBodyInterceptor] pre-protocol [MustUnderstandInterceptor] post-protocol [CheckFaultInterceptor, JAXBAttachmentSchemaValidationHack] unmarshal [DocLiteralInInterceptor, SoapHeaderInterceptor] post-logical [WrapperClassInInterceptor] pre-invoke [SwAInInterceptor, HolderInInterceptor, PolicyVerificationInInterceptor] 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.AttachmentInInterceptor@1ec6bb1 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxInInterceptor@924b12 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Adding interceptor org.apache.cxf.interceptor.StaxInEndingInterceptor@6415e2 to phase post-invoke 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Chain org.apache.cxf.phase.PhaseInterceptorChain@d8ecf3 was modified. Current flow: receive [PolicyInInterceptor, AttachmentInInterceptor] post-stream [StaxInInterceptor] read [WSDLGetInterceptor, ReadHeadersInterceptor, SoapActionInInterceptor, StartBodyInterceptor] pre-protocol [MustUnderstandInterceptor] post-protocol [CheckFaultInterceptor, JAXBAttachmentSchemaValidationHack] unmarshal [DocLiteralInInterceptor, SoapHeaderInterceptor] post-logical [WrapperClassInInterceptor] pre-invoke [SwAInInterceptor, HolderInInterceptor, PolicyVerificationInInterceptor] post-invoke [StaxInEndingInterceptor] 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.frontend.WSDLGetInterceptor@e3aeda 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor@84342c 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapActionInInterceptor@7e9758 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.StartBodyInterceptor@17d4040 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.MustUnderstandInterceptor@1953fd7 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor@54b57 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxb.attachment.JAXBAttachmentSchemaValidationHack@1925ff1 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.DocLiteralInInterceptor@102293a 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.binding.soap.interceptor.SoapHeaderInterceptor@e0b4e5 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.WrapperClassInInterceptor@53345 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.SwAInInterceptor@811e2b 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.jaxws.interceptors.HolderInInterceptor@169369f 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.ws.policy.PolicyVerificationInInterceptor@2af542 07-ноя-2014 12:16:24 org.apache.cxf.ws.policy.PolicyVerificationInInterceptor DEBUG - Verified policies for inbound message. 07-ноя-2014 12:16:24 org.apache.cxf.phase.PhaseInterceptorChain DEBUG - Invoking handleMessage on interceptor org.apache.cxf.interceptor.StaxInEndingInterceptor@6415e2 на выходе Сейчас попробую сделать такой же лог к работающему сервису, и сравнить. Но может кто сталкивался с такой проблемой? Или есть предположения куда копать. ----- Если дела идут плохо, есть вероятность, что в ближайшее время они пойдут ещё хуже.(с)Мерфи ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 11:31 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
DDiver, 1) Поиск по Java форуму cbr.ru пробовал? 2) Нахрена вываливать свой DEBUG лог на форум, когда информации в нём ноль? Настрой логирование входящиего и исходящего SOAP XML и тогда можно будет сравнивать. Хотя, HTTP заголовки тоже желательно видеть. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 11:36 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, 1 http://www.sql.ru/forum/afsearch.aspx?s=cbr.ru&submit=?????&bid=38 (По вашему запросу найдено 0 тем. ) это первое что я попробовал. кто же знал, что старый поиск работает иначе!? и нужно им пользоваться ща буду перечитывать. 2 Это лог в DEBUG'е , как дополнительно логировать сами запросы, пока не нашёл. Найду, выложу кашерный лог. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 11:50 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, где искать понятно, просто не дошёл до этого этапа :) вот ответ из лога Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. данные есть, но в объект они не попали всё-таки похоже что-то не так сгенерилось ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 12:16 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
DDiver, Уже интересно. Я такого ещё не видел. Дело в том что WSDL вообще не содержит схемы для этой структуры. Там оно прописано как Any. Поэтому и сгенерить заранее нельзя. Приехавшие данные diffgr:diffgram должны лежать в виде DOM XML (ownerDocument в дебаге) ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 12:29 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Blazkowicz, у них на сайте есть отдельная xsd'ка http://cbr.ru/scripts/CO_XSD/SearchByName.xsd с описанием этой структуры. видимо её нужно как-то прибиндить к схеме. возможно это можно сделать с помощью Customizing JAXB Bindings правда пока с трудом представляю как. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 13:21 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
DDiverу них на сайте есть отдельная xsd'ка http://cbr.ru/scripts/CO_XSD/SearchByName.xsd с описанием этой структуры. WSDL на неё никак не ссылается? DDiverвидимо её нужно как-то прибиндить к схеме. возможно это можно сделать с помощью Customizing JAXB Bindings правда пока с трудом представляю как. Тут две проблемы 1) Сгенерить классы по нужным структурам, которых нет в WSDL 2) Заставить JAXWS вендора (CXF) конвертировать Any в классы, а не в DOM. Я встречал рецепты на stackoverflow. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 07.11.2014, 13:24 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Кто-нибудь победил этот сервис за прошедшие годы? Движок не может десериализовать ответ веб сервиса, в ответе null. Перебрал все известные мне варианты генерации кода по wsdl и реализации клиента веб-сервиса. В итоге, когда я остановился на REST клиенте с двумя HTTP POST запросами и ручном разборе ответа, оказалось что сервис не предоставляет ИНН и номер корреспондентского счета по значению БИК : ) Код: xml 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.06.2017, 12:44 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Кстати, есть альтернатива этому веб-сервису? Есть информация, что где-то на сайте cbr.ru периодически выкладывается документ с соответствующими данными, но я затрудняюсь найти следы. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.06.2017, 15:51 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
antonyjee, ГОСУСЛУГИ нужен договор ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.06.2017, 16:42 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
antonyjeeКто-нибудь победил этот сервис за прошедшие годы? Движок не может десериализовать ответ веб сервиса, в ответе null. Проблема непонятна. Сгенерённый мастером Eclipse web-service client, ругается, конечно, на некоторые несовместимые типы, с Microsoft оно всегда так :), но в целом вполне работоспособен. Посылает запрос - получает ответ, нужно только чуть-чуть напильничком доработать или делайте на C#, VB в Visual Studio, тогда вообще без проблем. К сожалению, Microsoft пожизнено весьма своеобразно понимает общепринятые стандарты, а наши "государственные" организации почему-то очень его любят, у них везде .NET, IIS, Word, Excel, ну это ещё продвинутые, а то некоторые вообще до сих пор на Clipper и FoxPro пишут :(, вот КЛАДР, например. А если же вы хотите по БИК получить номер счёта и т.п., то вам сюда Справочник БИК ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 23.06.2017, 23:46 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
antonyjeeКстати, есть альтернатива этому веб-сервису? Есть информация, что где-то на сайте cbr.ru периодически выкладывается документ с соответствующими данными, но я затрудняюсь найти следы. Лет 8 назад делал загрузку курсов валют с CBR для банка. Там был скрипт на PHP, загружал и парсил XML. В ближайшее время планирую написать на Java SOAP (REST) сервис, загружающий эти данные. Сделаю - опубликую код. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 12:25 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
SQL2008Java SOAP (REST) лучше SOAP REST ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 12:41 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Petro123SQL2008Java SOAP (REST) лучше SOAP REST Значит будет REST. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 12:57 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Petro123SQL2008Java SOAP (REST) лучше SOAP REST Почему-то мне начинает казаться, что меня нае... немного обманули. Нет? Разве у Центробанка есть такой сервис? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 15:24 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
SQL2008Почему-то мне начинает казаться, что меня нае... немного обманули. Нет? Разве у Центробанка есть такой сервис? Тот который ты планируешь написать? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 16:05 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
BlazkowiczSQL2008Почему-то мне начинает казаться, что меня нае... немного обманули. Нет? Разве у Центробанка есть такой сервис? Тот который ты планируешь написать? Я что-то запутался в терминологии... Правильно ли понимаю, что сервис это набор программных решений располагаемых на МОЕМ сервере? А доступ к сервису это мои запросы, которые вытаскивают данные с ЧУЖИХ сервисов. В данном случае я имел в виду делать запросы к CBR.RU и получать данные по курсам валют. Есть такая полезная софтина SoapUI, с помощью неё можно делать SOAP и REST запросы к внешним (но при желании и ко своим внутренним) сервисам. В частности адрес http://www.cbr.ru/scripts/XML_daily.asp?date_req=27/06/2017 замечательно вернул данные в виде XML, которые осталость только грамотно распарсить и загрузить в ЦБ. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 17:05 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
SQL2008осталость только грамотно распарсить и загрузить в ЦБ. О-о-о-о! Будешь курсы валют во всей стране устанавливать? В долю возьмёшь? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 18:02 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
GarrickSQL2008осталость только грамотно распарсить и загрузить в ЦБ. О-о-о-о! Будешь курсы валют во всей стране устанавливать? В долю возьмёшь? А пойдешь? В первое время нужно будет много работать, мало спать и получать ничего. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 18:22 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
SQL2008и загрузить в ЦБ )) "Кто на ком стоял?" ТЗ ======= Взять из банка "курсы" по API которое там есть. И самому написать публичный REST сервис для отдачи всем желающим. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 27.06.2017, 18:29 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
Petro123SQL2008и загрузить в ЦБ )) "Кто на ком стоял?" Это я что-то не то сказал , хотел написать "загрузить в ДБ", но дрогнула рука и плец промахнулся. Petro123ТЗ ======= Взять из банка "курсы" по API которое там есть. И самому написать публичный REST сервис для отдачи всем желающим. Реализовать то можно, вот только зачем? Хотя в качестве раскрутки сайта возможно. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.06.2017, 09:25 |
|
||
|
SOAP к cbr.ru
|
|||
|---|---|---|---|
|
#18+
SQL2008Реализовать то можно, вот только зачем? Хотя в качестве раскрутки сайта возможно. Ну, как зачем. Вот есть JSE API, а есть Apache Commons и Guava. Никто же не спрашивает, зачем они, когда есть JSE. Так и тут. Сделай что-то простое, стабильное, актуальное и рабоающее вместо того монстра, где любой XML внутри SOAP ездит. Нафига там вообще тогда SOAP - не понятно. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 28.06.2017, 14:12 |
|
||
|
|

start [/forum/topic.php?fid=59&msg=39479055&tid=2122807]: |
0ms |
get settings: |
5ms |
get forum list: |
17ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
55ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
59ms |
get tp. blocked users: |
1ms |
| others: | 201ms |
| total: | 355ms |

| 0 / 0 |
