| Author |
weblogic axis soap response problem
|
Nishaachar
Greenhorn
Joined: Sep 15, 2005
Posts: 1
|
|
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; <deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> <service name="CCSSim" provider="java:RPC" xmlns:ns="http://localhost:7013/WSProj22/CCSSim.jws" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <parameter name="className" value="CCSSim"/> <namespace>http://localhost:7013/WSProj22/CCSSim.jws</namespace> <parameter name="allowedMethods" value="CreateCredit, ShowCredit"/> <operation qname="ns:CreateCredit" returnType="xsd:string" returnQName="ns:CreateCreditResult"> <parameter qname="ns:CreateCreditStr" type="xsd:string" mode="IN"/> </operation> </service> </deployment> The returnQName is where I am specifying the element name. When I deploy with the wsdd and try to hit the WSDL i get the following error; AXIS error Could not generate WSDL! There is no SOAP service at this location Any insight into what I'm missing in my server-config.wsdd ? [ September 16, 2005: Message edited by: Amar Java ]
|
 |
 |
|
|
subject: weblogic axis soap response problem
|
|
|