This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
Here's my situation; I'm building a jws simulator which simulates is a web services app (app_B) that services requests from app_A. Both app_A and app_B are built using WebLogic workshop. I've used Axis to build the webservices simulator and get the following error when app_A posts a request; 9998-SERVICE FAULT: Code:com.bea.xml.marshal.XmlEncodingException String:Unrecognized element CreateCreditReturn - expected CreateCreditResult@http://www.openuri.org/ Detail: END SERVICE FAULT
I know the cause but not the solution. The cause is that when the simulator responds it uses the element name "CreateCreditReturn" while "CreateCreditResult" is the element name that app_B originallyuses and hence app_A expects.
It seems as though Axis uses the suffix "Return" by default in the soap response and weblogic uses the suffix "Result" by default. Is there any way in Axis to configure the response to use the element name suffis "Result" ?
Ok here's what i've figured out over the last 24 hrs; The response can be configured in the server-config.wsdd file but I seem to be constructing it wrong. Here's the serverconfig.wsdd file I've put in the WEB-INF folder;