- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我的代码:
try {
String endpoint = "http://alsb3-soa:80/Numero";
Service service = new Service();
Call call = (Call) service.createCall();
MessageContext message = call.getMessageContext();
SOAPMessage soapMessage = message.getMessage();
SOAPPart sp = (SOAPPart) soapMessage.getSOAPPart();
SOAPEnvelope env = (SOAPEnvelope) sp.getEnvelope();
} catch (Exception e) {
logger.error("Error: " + e.getMessage());
}
行中的 NullPointException - SOAPEnvelope env = (SOAPEnvelope) sp.getEnvelope();
因为这一行 - SOAPMessagesoapMessage = message.getMessage();
这一行返回一个对象 null
我的 WSDL
<WL5G3N2:definitions targetNamespace="http://www.vivo.com.br/SN/Numero"><WL5G3N0:Policy WL5G3N1:Id="encrypt-custom-body-element-and-username-token"><wssp:Identity><wssp:SupportedTokens><wssp:SecurityToken TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken"><wssp:UsePassword Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"/></wssp:SecurityToken></wssp:SupportedTokens></wssp:Identity></WL5G3N0:Policy><wsp:UsingPolicy WL5G3N2:Required="true"/><WL5G3N2:types><s:schema elementFormDefault="qualified" targetNamespace="http://www.vivo.com.br/MC/Sigan"><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FModeloCanonico%2FXSD%2FSigan%2FNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FModeloCanonico%2FXSD%2FSigan%2FPesquisaNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FModeloCanonico%2FXSD%2FSigan%2FLocalidade"/><s:element name="PesquisaNumero" type="sig:PesquisaNumero"/><s:element name="Localidade" type="sig:Localidade"/><s:element name="Numero" type="sig:Numero"/></s:schema><s:schema elementFormDefault="qualified" targetNamespace="http://www.vivo.com.br/MC/Portabilidade"><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FModeloCanonico%2FXSD%2FPortabilidade%2FPortabilidade"/></s:schema><s:schema elementFormDefault="qualified" targetNamespace="http://www.vivo.com.br/ConsultarOperadoraNumero/"><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FCNV2%2FREQUEST%2FAPI%2FConsultarOperadoraNumero%2FProduct%2FProduct%2FProduct"/><s:element name="Product" type="rprod:Product"/></s:schema><s:schema elementFormDefault="qualified" targetNamespace="http://www.vivo.com.br/SN/Numero"><s:import namespace="http://www.vivo.com.br/MC/Geral" schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FModeloCanonico%2FXSD%2FGeral%2FCabecalhoVivo"/><s:import namespace="http://www.vivo.com.br/MC/Geral" schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FModeloCanonico%2FXSD%2FGeral%2FErroInfo"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosBuscarListaNumerosDisponiveis"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosReservarNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametroAtualizarStatusNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametroConsultarDadosNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametroCriarNumeroPortabilidade"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosBuscareReservarNumeros"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosRecuperarEOTPorCNL"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FResultadoReservarNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FResultadoConsultarDadosNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FResultadoBuscareReservarNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FResultadoConsultarOperadoraNumero"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosBuscarDDDPorCNL"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosAtualizarNumeroFixo"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FResultadoAtualizarNumeroFixo"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FParametrosConsultarNumeroEncaminhamento"/><s:include schemaLocation="http://alsb3-soa:80/Numero?SCHEMA%2FServicosNegocio%2FNumero%2FXSD%2FResultadoConsultarNumeroEncaminhamento"/><s:element name="buscarListaNumerosDisponiveisRequest" type="snn:ParametrosBuscarListaNumerosDisponiveis"/><s:element name="reservarNumeroRequest" type="snn:ParametrosReservarNumero"/><s:element name="reservarNumeroResponse" type="snn:ResultadoReservarNumero"/><s:element name="atualizarStatusNumeroRequest" type="snn:ParametroAtualizarStatusNumero"/><s:element name="atualizarStatusNumeroResponse"/><s:element name="consultarDadosNumeroRequest" type="snn:ParametroConsultarDadosNumero"/><s:element name="consultarDadosNumeroResponse" type="snn:ResultadoConsultarDadosNumero"/><s:element name="criarNumeroPortabilidadeRequest" type="snn:ParametroCriarNumeroPortabilidade"/><s:element name="criarNumeroPortabilidadeResponse"/><s:element name="buscareReservarNumeroRequest" type="snn:ParametrosBuscareReservarNumeros"/><s:element name="buscareReservarNumeroResponse" type="snn:ResultadoBuscareReservarNumero"/><s:element name="recuperarEOTPorCNLRequest" type="snn:ParametrosRecuperarEOTPorCNL"/><s:element name="consultarOperadoraNumeroResponse" type="snn:ResultadoConsultarOperadoraNumero"/><s:element name="buscarDDDPorCNLRequest" type="snn:ParametrosBuscarDDDPorCNL"/><s:element name="atualizarNumeroFixoRequest" type="snn:ParametrosAtualizarNumeroFixo"/><s:element name="atualizarNumeroFixoResponse" type="snn:ResultadoAtualizarNumeroFixo"/><s:element name="consultarNumeroEncaminhamentoRequest" type="snn:ParametrosConsultarNumeroEncaminhamento"/><s:element name="consultarNumeroEncaminhamentoResponse" type="snn:ResultadoConsultarNumeroEncaminhamento"/></s:schema></WL5G3N2:types><WL5G3N2:message name="erroInfoFault"><WL5G3N2:part element="WL5G3N3:erroInfo" name="erroInfo"/></WL5G3N2:message><WL5G3N2:message name="cabecalhoVIVO"><WL5G3N2:part element="WL5G3N3:cabecalhoVivo" name="cabecalhoVIVO"/></WL5G3N2:message><WL5G3N2:message name="atualizarStatusNumeroResponse"><WL5G3N2:part element="WL5G3N4:atualizarStatusNumeroResponse" name="atualizarStatusNumeroResponse"/></WL5G3N2:message><WL5G3N2:message name="atualizarStatusNumeroRequest"><WL5G3N2:part element="WL5G3N4:atualizarStatusNumeroRequest" name="atualizarStatusNumeroRequest"/></WL5G3N2:message><WL5G3N2:message name="reservarNumeroResponse"><WL5G3N2:part element="WL5G3N4:reservarNumeroResponse" name="reservarNumeroResponse"/></WL5G3N2:message><WL5G3N2:message name="buscarListaNumerosDisponiveisRequest"><WL5G3N2:part element="WL5G3N4:buscarListaNumerosDisponiveisRequest" name="buscarListaNumerosDisponiveisRequest"/></WL5G3N2:message><WL5G3N2:message name="reservarNumeroRequest"><WL5G3N2:part element="WL5G3N4:reservarNumeroRequest" name="reservarNumeroRequest"/></WL5G3N2:message><WL5G3N2:message name="PesquisaNumero"><WL5G3N2:part element="WL5G3N5:PesquisaNumero" name="PesquisaNumero"/></WL5G3N2:message><WL5G3N2:message name="consultarDadosNumeroRequest"><WL5G3N2:part element="WL5G3N4:consultarDadosNumeroRequest" name="consultarDadosNumeroRequest"/></WL5G3N2:message><WL5G3N2:message name="consultarDadosNumeroResponse"><WL5G3N2:part element="WL5G3N4:consultarDadosNumeroResponse" name="consultarDadosNumeroResponse"/></WL5G3N2:message><WL5G3N2:message name="criarNumeroPortabilidadeRequest"><WL5G3N2:part element="WL5G3N4:criarNumeroPortabilidadeRequest" name="criarNumeroPortabilidadeRequest"/></WL5G3N2:message><WL5G3N2:message name="criarNumeroPortabilidadeResponse"><WL5G3N2:part element="WL5G3N4:criarNumeroPortabilidadeResponse" name="criarNumeroPortabilidadeResponse"/></WL5G3N2:message><WL5G3N2:message name="buscareReservarNumeroRequest"><WL5G3N2:part element="WL5G3N4:buscareReservarNumeroRequest" name="buscareReservarNumeroRequest"/></WL5G3N2:message><WL5G3N2:message name="buscareReservarNumeroResponse"><WL5G3N2:part element="WL5G3N4:buscareReservarNumeroResponse" name="buscareReservarNumeroResponse"/></WL5G3N2:message><WL5G3N2:message name="recuperarEOTPorCNLRequest"><WL5G3N2:part element="WL5G3N4:recuperarEOTPorCNLRequest" name="recuperarEOTPorCNLRequest"/></WL5G3N2:message><WL5G3N2:message name="Localidade"><WL5G3N2:part element="WL5G3N5:Localidade" name="Localidade"/></WL5G3N2:message><WL5G3N2:message name="Numero"><WL5G3N2:part element="WL5G3N5:Numero" name="Numero"/></WL5G3N2:message><WL5G3N2:message name="Product"><WL5G3N2:part element="WL5G3N6:Product" name="Product"/></WL5G3N2:message><WL5G3N2:message name="consultarOperadoraNumeroResponse"><WL5G3N2:part element="WL5G3N4:consultarOperadoraNumeroResponse" name="consultarOperadoraNumeroResponse"/></WL5G3N2:message><WL5G3N2:message name="buscarDDDPorCNLRequest"><WL5G3N2:part element="WL5G3N4:buscarDDDPorCNLRequest" name="buscarDDDPorCNLRequest"/></WL5G3N2:message><WL5G3N2:message name="atualizarNumeroFixoRequest"><WL5G3N2:part element="WL5G3N4:atualizarNumeroFixoRequest" name="atualizarNumeroFixoRequest"/></WL5G3N2:message><WL5G3N2:message name="atualizarNumeroFixoResponse"><WL5G3N2:part element="WL5G3N4:atualizarNumeroFixoResponse" name="atualizarNumeroFixoResponse"/></WL5G3N2:message><WL5G3N2:message name="consultarNumeroEncaminhamentoRequest"><WL5G3N2:part element="WL5G3N4:consultarNumeroEncaminhamentoRequest" name="consultarNumeroEncaminhamentoRequest"/></WL5G3N2:message><WL5G3N2:message name="consultarNumeroEncaminhamentoResponse"><WL5G3N2:part element="WL5G3N4:consultarNumeroEncaminhamentoResponse" name="consultarNumeroEncaminhamentoResponse"/></WL5G3N2:message><WL5G3N2:portType name="NumeroSOAP"><WL5G3N2:operation name="buscarListaNumerosDisponiveis"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:buscarListaNumerosDisponiveisRequest"/><WL5G3N2:output message="WL5G3N4:PesquisaNumero"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="reservarNumero"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:reservarNumeroRequest"/><WL5G3N2:output message="WL5G3N4:reservarNumeroResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="atualizarStatusNumero"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:atualizarStatusNumeroRequest"/><WL5G3N2:output message="WL5G3N4:atualizarStatusNumeroResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="consultarDadosNumero"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:consultarDadosNumeroRequest"/><WL5G3N2:output message="WL5G3N4:consultarDadosNumeroResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="criarNumeroPortabilidade"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:criarNumeroPortabilidadeRequest"/><WL5G3N2:output message="WL5G3N4:criarNumeroPortabilidadeResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="buscareReservarNumero"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:buscareReservarNumeroRequest"/><WL5G3N2:output message="WL5G3N4:buscareReservarNumeroResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="recuperarEOTPorCNL"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:recuperarEOTPorCNLRequest"/><WL5G3N2:output message="WL5G3N4:Localidade"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="consultarOperadoraNumero"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:Product"/><WL5G3N2:output message="WL5G3N4:consultarOperadoraNumeroResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="buscarDDDPorCNL"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:buscarDDDPorCNLRequest"/><WL5G3N2:output message="WL5G3N4:Localidade"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="atualizarNumeroFixo"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:atualizarNumeroFixoRequest"/><WL5G3N2:output message="WL5G3N4:atualizarNumeroFixoResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation><WL5G3N2:operation name="consultarNumeroEncaminhamento"><WL5G3N2:documentation></WL5G3N2:documentation><WL5G3N2:input message="WL5G3N4:consultarNumeroEncaminhamentoRequest"/><WL5G3N2:output message="WL5G3N4:consultarNumeroEncaminhamentoResponse"/><WL5G3N2:fault message="WL5G3N4:erroInfoFault" name="erroInfoFault"/></WL5G3N2:operation></WL5G3N2:portType><WL5G3N2:binding name="NumeroSOAP" type="WL5G3N4:NumeroSOAP"><WL5G3N7:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/><WL5G3N2:operation name="buscarListaNumerosDisponiveis"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="buscarListaNumerosDisponiveisRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="PesquisaNumero" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="reservarNumero"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="reservarNumeroRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="reservarNumeroResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="atualizarStatusNumero"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="atualizarStatusNumeroRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="atualizarStatusNumeroResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="consultarDadosNumero"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="consultarDadosNumeroRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="consultarDadosNumeroResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="criarNumeroPortabilidade"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="criarNumeroPortabilidadeRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="criarNumeroPortabilidadeResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="buscareReservarNumero"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="buscareReservarNumeroRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="buscareReservarNumeroResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="recuperarEOTPorCNL"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="recuperarEOTPorCNLRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="Localidade" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="consultarOperadoraNumero"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="Product" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="consultarOperadoraNumeroResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="buscarDDDPorCNL"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="buscarDDDPorCNLRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="Localidade" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="atualizarNumeroFixo"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="atualizarNumeroFixoRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="atualizarNumeroFixoResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation><WL5G3N2:operation name="consultarNumeroEncaminhamento"><WL5G3N7:operation/><WL5G3N2:input><WL5G3N7:header message="WL5G3N4:cabecalhoVIVO" part="cabecalhoVIVO" use="literal"/><wsp:Policy><wsp:PolicyReference URI="#encrypt-custom-body-element-and-username-token"/></wsp:Policy><WL5G3N7:body parts="consultarNumeroEncaminhamentoRequest" use="literal"/></WL5G3N2:input><WL5G3N2:output><WL5G3N7:body parts="consultarNumeroEncaminhamentoResponse" use="literal"/></WL5G3N2:output><WL5G3N2:fault name="erroInfoFault"><WL5G3N7:fault name="erroInfoFault" use="literal"/></WL5G3N2:fault></WL5G3N2:operation></WL5G3N2:binding><WL5G3N2:service name="NumeroSOAPQSService"><WL5G3N2:port binding="WL5G3N4:NumeroSOAP" name="NumeroSOAPQSPort"><WL5G3N7:address location="http://alsb3-soa:80/Numero"/></WL5G3N2:port></WL5G3N2:service></WL5G3N2:definitions>
最佳答案
我认为你在这里有一些工作要做..
我会告诉你你正在犯的一个愚蠢的错误。您没有将端点设置为您的服务对象。因此服务对象不知道要访问哪个端点。
应该是这样的
URL enpoint = new URL("http://alsb3-soa:80/Numero");
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(enpoint);
现在调用端点上可用的任何方法(wsdl 中的操作)。并传递一个 input 类型的对象(在 wsdl 中输入该操作的消息)
RequestObject ro = new RequestObject();
Object[] args = new Object[1];
args[0] = ro;
Object result = call.invoke("somemethod", args);
您可能想从一个小示例开始。检查这个link
关于java - 如何在 Axis 1.4 中获取 SOAPPart?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20121870/
我需要将文本放在 中在一个 Div 中,在另一个 Div 中,在另一个 Div 中。所以这是它的样子: #document Change PIN
奇怪的事情发生了。 我有一个基本的 html 代码。 html,头部, body 。(因为我收到了一些反对票,这里是完整的代码) 这是我的CSS: html { backgroun
我正在尝试将 Assets 中的一组图像加载到 UICollectionview 中存在的 ImageView 中,但每当我运行应用程序时它都会显示错误。而且也没有显示图像。 我在ViewDidLoa
我需要根据带参数的 perl 脚本的输出更改一些环境变量。在 tcsh 中,我可以使用别名命令来评估 perl 脚本的输出。 tcsh: alias setsdk 'eval `/localhome/
我使用 Windows 身份验证创建了一个新的 Blazor(服务器端)应用程序,并使用 IIS Express 运行它。它将显示一条消息“Hello Domain\User!”来自右上方的以下 Ra
这是我的方法 void login(Event event);我想知道 Kotlin 中应该如何 最佳答案 在 Kotlin 中通配符运算符是 * 。它指示编译器它是未知的,但一旦知道,就不会有其他类
看下面的代码 for story in book if story.title.length < 140 - var story
我正在尝试用 C 语言学习字符串处理。我写了一个程序,它存储了一些音乐轨道,并帮助用户检查他/她想到的歌曲是否存在于存储的轨道中。这是通过要求用户输入一串字符来完成的。然后程序使用 strstr()
我正在学习 sscanf 并遇到如下格式字符串: sscanf("%[^:]:%[^*=]%*[*=]%n",a,b,&c); 我理解 %[^:] 部分意味着扫描直到遇到 ':' 并将其分配给 a。:
def char_check(x,y): if (str(x) in y or x.find(y) > -1) or (str(y) in x or y.find(x) > -1):
我有一种情况,我想将文本文件中的现有行包含到一个新 block 中。 line 1 line 2 line in block line 3 line 4 应该变成 line 1 line 2 line
我有一个新项目,我正在尝试设置 Django 调试工具栏。首先,我尝试了快速设置,它只涉及将 'debug_toolbar' 添加到我的已安装应用程序列表中。有了这个,当我转到我的根 URL 时,调试
在 Matlab 中,如果我有一个函数 f,例如签名是 f(a,b,c),我可以创建一个只有一个变量 b 的函数,它将使用固定的 a=a1 和 c=c1 调用 f: g = @(b) f(a1, b,
我不明白为什么 ForEach 中的元素之间有多余的垂直间距在 VStack 里面在 ScrollView 里面使用 GeometryReader 时渲染自定义水平分隔线。 Scrol
我想知道,是否有关于何时使用 session 和 cookie 的指南或最佳实践? 什么应该和什么不应该存储在其中?谢谢! 最佳答案 这些文档很好地了解了 session cookie 的安全问题以及
我在 scipy/numpy 中有一个 Nx3 矩阵,我想用它制作一个 3 维条形图,其中 X 轴和 Y 轴由矩阵的第一列和第二列的值、高度确定每个条形的 是矩阵中的第三列,条形的数量由 N 确定。
假设我用两种不同的方式初始化信号量 sem_init(&randomsem,0,1) sem_init(&randomsem,0,0) 现在, sem_wait(&randomsem) 在这两种情况下
我怀疑该值如何存储在“WORD”中,因为 PStr 包含实际输出。? 既然Pstr中存储的是小写到大写的字母,那么在printf中如何将其给出为“WORD”。有人可以吗?解释一下? #include
我有一个 3x3 数组: var my_array = [[0,1,2], [3,4,5], [6,7,8]]; 并想获得它的第一个 2
我意识到您可以使用如下方式轻松检查焦点: var hasFocus = true; $(window).blur(function(){ hasFocus = false; }); $(win
我是一名优秀的程序员,十分优秀!