Гость
Целевая тема:
Создать новую тему:
Автор:
Форумы / Java [игнор отключен] [закрыт для гостей] / SOAP к cbr.ru / 24 сообщений из 24, страница 1 из 1
07.11.2014, 11:31
    #38798260
DDiver
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Решил поиграться с 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.
            <plugin>
                <groupId>org.apache.cxf</groupId>
                <artifactId>cxf-codegen-plugin</artifactId>
                <version>${cxf.version}</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <sourceRoot>${basedir}/src/main/java/</sourceRoot>
                            <wsdlOptions>
                                <wsdlOption>
                                    <wsdl>http://cbr.ru/CreditInfoWebServ/CreditOrgInfo.asmx?WSDL</wsdl>
                                    <extraargs>
                                        <extraarg>-xjc-b,${basedir}/src/main/config/XMLSchema.xsd</extraarg>
                                        <extraarg>-client</extraarg>
                                    </extraargs>
                                </wsdlOption>
                            </wsdlOptions>
                        </configuration>
                        <goals>
                            <goal>wsdl2java</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


вот так пытаюсь получить данные
Код: java
1.
2.
3.
CreditOrgInfo creditOrgInfo = new CreditOrgInfo();
CreditOrgInfoSoap soap = creditOrgInfo.getCreditOrgInfoSoap();
SearchByNameResponse.SearchByNameResult result = soap.searchByName("Москвы");


вот выхлоп в консоль
автор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

на выходе


Сейчас попробую сделать такой же лог к работающему сервису, и сравнить. Но может кто сталкивался с такой проблемой? Или есть предположения куда копать.

-----
Если дела идут плохо, есть вероятность, что в ближайшее время они пойдут ещё хуже.(с)Мерфи
...
Рейтинг: 0 / 0
07.11.2014, 11:36
    #38798270
Blazkowicz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
DDiver,

1) Поиск по Java форуму cbr.ru пробовал?
2) Нахрена вываливать свой DEBUG лог на форум, когда информации в нём ноль? Настрой логирование входящиего и исходящего SOAP XML и тогда можно будет сравнивать. Хотя, HTTP заголовки тоже желательно видеть.
...
Рейтинг: 0 / 0
07.11.2014, 11:50
    #38798288
DDiver
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Blazkowicz,

1 http://www.sql.ru/forum/afsearch.aspx?s=cbr.ru&submit=?????&bid=38 (По вашему запросу найдено 0 тем. )
это первое что я попробовал.
кто же знал, что старый поиск работает иначе!? и нужно им пользоваться
ща буду перечитывать.

2 Это лог в DEBUG'е , как дополнительно логировать сами запросы, пока не нашёл. Найду, выложу кашерный лог.
...
Рейтинг: 0 / 0
07.11.2014, 11:52
    #38798293
Blazkowicz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
...
Рейтинг: 0 / 0
07.11.2014, 12:16
    #38798340
DDiver
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
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.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <SearchByNameResponse xmlns="http://web.cbr.ru/">
            <SearchByNameResult>
                <xs:schema id="CreditOrg" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
                    <xs:element name="CreditOrg" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
                        <xs:complexType>
                            <xs:choice minOccurs="0" maxOccurs="unbounded">
                                <xs:element name="EnumCredits">
                                    <xs:complexType>
                                        <xs:sequence>
                                            <xs:element name="IntCode" msdata:Caption="Вн. код КО" type="xs:decimal" minOccurs="0" />
                                            <xs:element name="OrgName" msdata:Caption="Название орг." type="xs:string" minOccurs="0" />
                                            <xs:element name="bic" msdata:Caption="Код BIC" type="xs:string" minOccurs="0" />
                                            <xs:element name="cregnum" msdata:Caption="рег. номер" type="xs:decimal" minOccurs="0" />
                                        </xs:sequence>
                                    </xs:complexType>
                                </xs:element>
                            </xs:choice>
                        </xs:complexType>
                    </xs:element>
                </xs:schema>
                <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
                    <CreditOrg xmlns="">
                        <EnumCredits diffgr:id="EnumCredits1" msdata:rowOrder="0">
                            <IntCode>450000601</IntCode>
                            <OrgName>БАНК МОСКВЫ</OrgName>
                            <bic>044525219</bic>
                            <cregnum>2748</cregnum>
                        </EnumCredits>
                        <EnumCredits diffgr:id="EnumCredits2" msdata:rowOrder="1">
                            <IntCode>450000384</IntCode>
                            <OrgName>ОГНИ МОСКВЫ</OrgName>
                            <bic>044525592</bic>
                            <cregnum>2328</cregnum>
                        </EnumCredits>
                    </CreditOrg>
                </diffgr:diffgram>
            </SearchByNameResult>
        </SearchByNameResponse>
    </soap:Body>
</soap:Envelope>


данные есть, но в объект они не попали
всё-таки похоже что-то не так сгенерилось
...
Рейтинг: 0 / 0
07.11.2014, 12:29
    #38798368
Blazkowicz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
DDiver,

Уже интересно. Я такого ещё не видел. Дело в том что WSDL вообще не содержит схемы для этой структуры. Там оно прописано как Any. Поэтому и сгенерить заранее нельзя. Приехавшие данные diffgr:diffgram должны лежать в виде DOM XML (ownerDocument в дебаге)
...
Рейтинг: 0 / 0
07.11.2014, 13:21
    #38798456
DDiver
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Blazkowicz,

у них на сайте есть отдельная xsd'ка http://cbr.ru/scripts/CO_XSD/SearchByName.xsd с описанием этой структуры.
видимо её нужно как-то прибиндить к схеме.
возможно это можно сделать с помощью Customizing JAXB Bindings правда пока с трудом представляю как.
...
Рейтинг: 0 / 0
07.11.2014, 13:24
    #38798464
Blazkowicz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
DDiverу них на сайте есть отдельная xsd'ка http://cbr.ru/scripts/CO_XSD/SearchByName.xsd с описанием этой структуры.

WSDL на неё никак не ссылается?

DDiverвидимо её нужно как-то прибиндить к схеме.
возможно это можно сделать с помощью Customizing JAXB Bindings правда пока с трудом представляю как.
Тут две проблемы
1) Сгенерить классы по нужным структурам, которых нет в WSDL
2) Заставить JAXWS вендора (CXF) конвертировать Any в классы, а не в DOM. Я встречал рецепты на stackoverflow.
...
Рейтинг: 0 / 0
Период между сообщениями больше года.
23.06.2017, 12:44
    #39476702
antonyjee
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Кто-нибудь победил этот сервис за прошедшие годы? Движок не может десериализовать ответ веб сервиса, в ответе 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.
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
        <CreditInfoByIntCodeExXMLResponse xmlns="http://web.cbr.ru/">
            <CreditInfoByIntCodeExXMLResult>
                <CreditOrgInfo xmlns="">
                    <CO>
                        <IntCode>350000004</IntCode>
                        <RegNumber>1481</RegNumber>
                        <BIC>044525225</BIC>
                        <OrgName>СБЕРБАНК РОССИИ</OrgName>
                        <OrgFullName>Публичное акционерное общество "Сбербанк России"</OrgFullName>
                        <phones>(495) 500-55-50, (495) 957-58-62</phones>
                        <DateKGRRegistration>1991-06-20T00:00:00+03:00</DateKGRRegistration>
                        <MainRegNumber>1027700132195</MainRegNumber>
                        <MainDateReg>2002-08-16T00:00:00+03:00</MainDateReg>
                        <UstavAdr>117997,  г. Москва, ул. Вавилова, д.19</UstavAdr>
                        <FactAdr>117997,  г. Москва, ул. Вавилова, д.19</FactAdr>
                        <Director />
                        <UstMoney>67760844000</UstMoney>
                        <OrgStatus>норм.</OrgStatus>
                        <RegCode>16</RegCode>
                        <SSV_Date>2004-12-29T00:00:00+03:00</SSV_Date>
                    </CO>
                    <LIC>
                        <IntCode>350000004</IntCode>
                        <LCode>3</LCode>
                        <LT>Лицензия на привлечение во вклады и размещение драгоценных металлов</LT>
                        <LDate>2015-08-11T00:00:00+03:00</LDate>
                    </LIC>
                    <LIC>
                        <IntCode>350000004</IntCode>
                        <LCode>7</LCode>
                        <LT>Генеральная лицензия на осуществление банковских операций</LT>
                        <LDate>2015-08-11T00:00:00+03:00</LDate>
                    </LIC>
                </CreditOrgInfo>
            </CreditInfoByIntCodeExXMLResult>
        </CreditInfoByIntCodeExXMLResponse>
    </soap:Body>
</soap:Envelope>

...
Рейтинг: 0 / 0
23.06.2017, 15:51
    #39476824
antonyjee
Гость
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Кстати, есть альтернатива этому веб-сервису? Есть информация, что где-то на сайте cbr.ru периодически выкладывается документ с соответствующими данными, но я затрудняюсь найти следы.
...
Рейтинг: 0 / 0
23.06.2017, 16:42
    #39476860
Petro123
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
antonyjee,
ГОСУСЛУГИ
нужен договор
...
Рейтинг: 0 / 0
23.06.2017, 23:46
    #39477039
Garrick
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
antonyjeeКто-нибудь победил этот сервис за прошедшие годы? Движок не может десериализовать ответ веб сервиса, в ответе null.

Проблема непонятна. Сгенерённый мастером Eclipse web-service client, ругается, конечно, на некоторые несовместимые типы, с Microsoft оно всегда так :), но в целом вполне работоспособен. Посылает запрос - получает ответ, нужно только чуть-чуть напильничком доработать или делайте на C#, VB в Visual Studio, тогда вообще без проблем. К сожалению, Microsoft пожизнено весьма своеобразно понимает общепринятые стандарты, а наши "государственные" организации почему-то очень его любят, у них везде .NET, IIS, Word, Excel, ну это ещё продвинутые, а то некоторые вообще до сих пор на Clipper и FoxPro пишут :(, вот КЛАДР, например.

А если же вы хотите по БИК получить номер счёта и т.п., то вам сюда Справочник БИК
...
Рейтинг: 0 / 0
27.06.2017, 12:25
    #39478366
SQL2008
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
antonyjeeКстати, есть альтернатива этому веб-сервису? Есть информация, что где-то на сайте cbr.ru периодически выкладывается документ с соответствующими данными, но я затрудняюсь найти следы.
Лет 8 назад делал загрузку курсов валют с CBR для банка.
Там был скрипт на PHP, загружал и парсил XML.
В ближайшее время планирую написать на Java SOAP (REST) сервис, загружающий эти данные.
Сделаю - опубликую код.
...
Рейтинг: 0 / 0
27.06.2017, 12:41
    #39478386
Petro123
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
SQL2008Java SOAP (REST)
лучше
SOAP REST
...
Рейтинг: 0 / 0
27.06.2017, 12:57
    #39478401
SQL2008
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Petro123SQL2008Java SOAP (REST)
лучше
SOAP REST
Значит будет REST.
...
Рейтинг: 0 / 0
27.06.2017, 15:24
    #39478518
SQL2008
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Petro123SQL2008Java SOAP (REST)
лучше
SOAP REST
Почему-то мне начинает казаться, что меня нае... немного обманули.
Нет?
Разве у Центробанка есть такой сервис?
...
Рейтинг: 0 / 0
27.06.2017, 16:05
    #39478550
Blazkowicz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
SQL2008Почему-то мне начинает казаться, что меня нае... немного обманули.
Нет?
Разве у Центробанка есть такой сервис?
Тот который ты планируешь написать?
...
Рейтинг: 0 / 0
27.06.2017, 17:05
    #39478602
SQL2008
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
BlazkowiczSQL2008Почему-то мне начинает казаться, что меня нае... немного обманули.
Нет?
Разве у Центробанка есть такой сервис?
Тот который ты планируешь написать?
Я что-то запутался в терминологии...
Правильно ли понимаю, что сервис это набор программных решений располагаемых на МОЕМ сервере?
А доступ к сервису это мои запросы, которые вытаскивают данные с ЧУЖИХ сервисов.
В данном случае я имел в виду делать запросы к CBR.RU и получать данные по курсам валют.

Есть такая полезная софтина SoapUI, с помощью неё можно делать SOAP и REST запросы к внешним (но при желании и ко своим внутренним) сервисам.

В частности адрес http://www.cbr.ru/scripts/XML_daily.asp?date_req=27/06/2017
замечательно вернул данные в виде XML, которые осталость только грамотно распарсить и загрузить в ЦБ.
...
Рейтинг: 0 / 0
27.06.2017, 18:02
    #39478635
Garrick
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
SQL2008осталость только грамотно распарсить и загрузить в ЦБ.
О-о-о-о! Будешь курсы валют во всей стране устанавливать? В долю возьмёшь?
...
Рейтинг: 0 / 0
27.06.2017, 18:22
    #39478649
SQL2008
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
GarrickSQL2008осталость только грамотно распарсить и загрузить в ЦБ.
О-о-о-о! Будешь курсы валют во всей стране устанавливать? В долю возьмёшь?
А пойдешь?
В первое время нужно будет много работать, мало спать и получать ничего.
...
Рейтинг: 0 / 0
27.06.2017, 18:29
    #39478655
Petro123
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
SQL2008и загрузить в ЦБ
))
"Кто на ком стоял?"

ТЗ
=======
Взять из банка "курсы" по API которое там есть.
И самому написать публичный REST сервис для отдачи всем желающим.
...
Рейтинг: 0 / 0
28.06.2017, 09:25
    #39478802
SQL2008
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
Petro123SQL2008и загрузить в ЦБ
))
"Кто на ком стоял?"

Это я что-то не то сказал , хотел написать "загрузить в ДБ", но дрогнула рука и плец промахнулся.


Petro123ТЗ
=======
Взять из банка "курсы" по API которое там есть.
И самому написать публичный REST сервис для отдачи всем желающим.
Реализовать то можно, вот только зачем? Хотя в качестве раскрутки сайта возможно.
...
Рейтинг: 0 / 0
28.06.2017, 13:49
    #39479030
marcoman
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
...
Рейтинг: 0 / 0
28.06.2017, 14:12
    #39479055
Blazkowicz
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
SOAP к cbr.ru
SQL2008Реализовать то можно, вот только зачем? Хотя в качестве раскрутки сайта возможно.
Ну, как зачем. Вот есть JSE API, а есть Apache Commons и Guava. Никто же не спрашивает, зачем они, когда есть JSE. Так и тут. Сделай что-то простое, стабильное, актуальное и рабоающее вместо того монстра, где любой XML внутри SOAP ездит. Нафига там вообще тогда SOAP - не понятно.
...
Рейтинг: 0 / 0
Форумы / Java [игнор отключен] [закрыт для гостей] / SOAP к cbr.ru / 24 сообщений из 24, страница 1 из 1
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]