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.
The moose likes BEA/Weblogic and the fly likes weblogic axis soap response problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » BEA/Weblogic
Reply Bookmark "weblogic axis soap response problem" Watch "weblogic axis soap response problem" New topic
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 ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: weblogic axis soap response problem
 
Similar Threads
Axis Complex Type
Why XSL failed to transform the XML when root node has namespace defined?
NullPointerException returned from webservice
beanMapping, typeMapping in Axis 1 (1.4) in server-config.wsdd generates complexType in wsdl
The AXIS engine could not find a target service to invoke