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
5
Views
4
Comments
edited Aug 16, 2016 10:42AM in Integrations and APIs 4 comments

Content

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 SampleClient.java . 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.

Register

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