Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

215
Views
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?

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!