Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

222
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda