axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimuthu Leelarathne" <>
Subject No such operation fault in doc\lit
Date Tue, 03 Sep 2002 04:22:10 GMT
I send this mail yesterday, but it doesn't appear in the list today. It has
got lost somehow, So I am sending it again. If there are multiple copies I
am really sorry about it.


I am hoping to write a doc/literal sample that does not use wsdl so that new
users can use it to understand doc/literal services without going into wsdl.
But I get a very puzzling behavior.
My soap message looks like this ...( good old purchaseOrder example).

<PurchaseOrder xmlns="urn:DoclitOrder">
<description xmlns="">Wood carving of an Elephant</description>
<item xmlns="">ER234</item>
<quantity xmlns="">1</quantity>

But I get a fault string
 faultString: No such operation &apos; PurchaseOrder &apos;&#xd;
but the operation name ( whis is "process") travels in the http header. My
HTTP header is;

POST /axis/services/ProcessOrder
HTTP/1.0Content-Type: text/xml; charset=utf-8Accept: application/soap+xml,
application/dime, multipart/related, text/*
User-Agent: Axis/1.1RC2
Host: no-cachePragma:
no-cacheSOAPAction: "process"
Content-Length: 462

I am using Axis - 1.0 for server side and TomCat 4.1.24. Now if I manually
replace the word "PurchaseOrder" with "process" in the SOAPMessage using
tcpMonitor. Everything works fine. I have given the wsdd I wrote below.

<service name="ProcessOrder" provider="java:RPC" style="document">
<parameter name="className" value="samples.doclit.SimpleProcessor"/>
<parameter name="allowedMethods" value="*"/>

Any input is really appriciated.


View raw message