2013-11-21 4 views
1

내 코드 : 라인에서Axis 1.4에서 SOAPPart를 얻으려면 어떻게해야할까요?



    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();

이 줄이 - SOAPMessage soapMessage = 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> 
+0

귀하의 서비스입니까? 브라우저에서 엔드 포인트를 입력 할 때 얻는 결과는 무엇입니까? –

+0

soapenv : 클라이언트 BEA-382033 : 비누 : 바디<사기꾼 :의 errorCode> BEA-382033 봉투 비누를 포함해야합니다 비누 : 봉투 비누 포함해야 몸을<단점 : 위치> 요청 파이프 라인 WhoAre

+0

질문을 편집하고 wsdl을 넣을 수 있습니까? –

답변

1

나는 ... 당신이 할 수있는 몇 가지 작업을 생각

내가 당신에게 당신이하고있는 바보 같은 실수를 말할 것이다

. 엔드 포인트를 서비스 오브젝트로 설정하지 않습니다. 따라서 서비스 개체는 어느 끝점을 알지 못합니다.

URL enpoint = new URL("http://alsb3-soa:80/Numero"); 
Service service = new Service(); 
Call call = (Call) service.createCall(); 
call.setTargetEndpointAddress(enpoint); 

같은

그것은해야 뭔가 지금 (당신의 WSDL에서 작동) 엔드 포인트에서 사용할 수있는 방법 중 하나를 호출합니다. 그리고

RequestObject ro = new RequestObject(); 
Object[] args = new Object[1]; 
args[0] = ro; 
Object result = call.invoke("somemethod", args); 

당신은 시작하는 작은 예제로 시작 할 수 있습니다 (귀하의 WSDL에서 해당 작업의 입력 메시지) 유형의 입력의 객체를 전달합니다. 이것을 확인하십시오 link