Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

224
Visualizações
Why is a SoapActionCallBack sometimes necessairy?

I'm working on a webservice client using Spring-WS. It's not my first webservice project, using Spring-WS. But I am new in this particular project.

We generate dao-objects by using the maven-jaxb2-plugin.

I'm using Spring-WS WebServiceTemplate, with a standard marshaller and unmarshaller set.

In a previous project, I could just do my webservice calls using:

webserviceTemplate.marshallSendAndReceive(new ObjectFactory().createSomeRequest());

In my current project, I need to provide a SoapActionCallback, provided with the SoapActionUrl.

webserviceTemplate.marshallSendAndReceive(new ObjectFactory().createSomeRequest, new SoapActionCallback("http://some-action-url.com/action"));

If I do not provide this SoapActionUrl, I don't get a result, and when debugging, I see a surpressed exception:

Couldn't get a SAX parser while constructing a envelope

I'd like to remove those SoapActionUrls. Using the correct generated objects by maven-jaxb2-plugin, should automatically refer to the correct actionurl?

I've googled this, but did not find too much info about it. I'd like to know why I just could 'leave the SoapActionCallback' in the first case, and in the second case, I'm obligated to provide this. I'm not aware of specific technology used on the server-side, as the webservices are developed by an external partner.

Can someone explain this?

over 4 years ago · Santiago Trujillo
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda