You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Getting the Java Axis2 SOAP Getting Started example to compile

Accepted answer
edited Jun 8, 2022 11:54AM in General Technical Discussions 4 comments


I'm trying to run the Connect Getting Started example.  I've downloaded Axis-2 and wss4j libraries and all files compile except one line in the . It is in the createSecurityHeader method and the line of code which won't compile is:

OMFactory factory = new SOAP11Factory();     

The error I get is

"constructor SOAP11Factory in class SOAP11Factory cannot be applied to given types;
  required: OMMetaFactory,NodeFactory
  found: no arguments
  reason: actual and formal argument lists differ in length"


I've checked the SOAP11FactoryImpl() class and it only has a single constructor accepting the arguments above. How do I fix this?

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!