Hi,
 
I am new to Axis2. I have generated the stub java classes by using WSDL2java code and deployed the .aar file successfully in tomcat.
 
When i try to  invoke the service i am getting following Exception:
   
Here Also I have attached my wsdl. Please help me to fix this problem.
 
In this exception Credentials is <xsd:any> type. My Objective is i have to add any number of elements under <Credentials>. Please help me to fix this issue.
 
 
<<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Header />
<soapenv:Body>
<soapenv:Fault>
  <faultcode>soapenv:Client</faultcode>
  <faultstring>java.lang.RuntimeException: Unexpected subelement Credentials</faultstring>
 <detail>
  <Exception>org.apache.axis2.AxisFault: java.lang.RuntimeException: Unexpected subelement Credentials; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement Credentials at org.apache.axis2.AxisFault.makeFault(AxisFault.java:318) at org.eclipse.alf.eventManager.ALFEventManagerMessageReceiverInOut.invokeBusinessLogic(ALFEventManagerMessageReceiverInOut.java:95) at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:492) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:324) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:230) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:868) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:663) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement Credentials at org.eclipse.alf.eventManager.ALFEventManagerMessageReceiverInOut.fromOM(ALFEventManagerMessageReceiverInOut.java:196) at org.eclipse.alf.eventManager.ALFEventManagerMessageReceiverInOut.invokeBusinessLogic(ALFEventManagerMessageReceiverInOut.java:73) ... 20 more Caused by: java.lang.RuntimeException: Unexpected subelement Credentials at org.eclipse.www.alf.xmlschema.events_xsd.CredentialsType$Factory.parse(CredentialsType.java:282) at org.eclipse.www.alf.xmlschema.events_xsd.UserType$Factory.parse(UserType.java:434) at org.eclipse.www.alf.xmlschema.events_xsd.EventBaseType$Factory.parse(EventBaseType.java:891) at org.eclipse.www.alf.xmlschema.events_xsd.ALFEventType$Factory.parse(ALFEventType.java:406) at org.eclipse.www.alf.xmlschema.events_xsd.EventNotice$Factory.parse(EventNotice.java:207) at org.eclipse.alf.eventManager.ALFEventManagerMessageReceiverInOut.fromOM(ALFEventManagerMessageReceiverInOut.java:183) ... 21 more</Exception>
  </detail>
  </soapenv:Fault>
  </soapenv:Body>
  </soapenv:Envelope>
 
Regards,
Niraimathi R
 
 
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com

Attachment: ALFEventManager.wsdl
Description: ALFEventManager.wsdl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to