axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepal Jayasinghe <dee...@opensource.lk>
Subject Re: [axis2] code generated service :: Operation not found
Date Fri, 30 Jun 2006 07:32:48 GMT
Hi Studium;

As I can see , the problem is in the server side , you have two ways of
fixing the issue ;
  - add the wsdl file into META-INF directory of the service archive file
  - change your services.xml file to add actionMapping
     <service>
   
        <operation name="myMethod">
           
<actionMapping>http://localhost:8080/axis2/services/MyService/myMethod</actionMapping>
        </operation>
     </service>



studium-sbr@web.de wrote:

>Sure, here it is.
>
>Thanks for your time!!
>
>Bille
>
>  
>
>>-----Ursprüngliche Nachricht-----
>>Von: axis-user@ws.apache.org
>>Gesendet: 30.06.06 07:04:06
>>An: axis-user@ws.apache.org
>>Betreff: Re: [axis2] code generated service :: Operation not found
>>    
>>
>
>
>  
>
>>Hi Studium;
>>
>>Could you please post the wsdl as well.
>>
>>studium-sbr@web.de wrote:
>>
>>    
>>
>>>Thank you Deepal, but I think the action is set.
>>>While debugging I can see that the options-Container of the messageContext-Object
has an entry
>>>action with the value 'http://localhost:8080/axis2/services/MyService/myMethod'
>>>which is the correct URL.
>>>
>>>Attached is the client (stubclass).
>>>While stepping through the stubs myMethod the axisOperation within the messageContext
seems to be correct. The field soapAction has the value urn:myMethod. 
>>>Within the OutInAxisOperationClient::execute(), MC.getSoapAction() returns http://localhost:8080/axis2/services/MyService/myMethod
>>>
>>>
>>>Is it possible that the cause of this error is the first element in the body which
is called myMethodRequest
>>>
>>>--------------------------------------
>>>The sent SOAP-Message I get from the MessageContext envelope-variable looks like
this:
>>>
>>><?xml version='1.0' encoding='utf-8'?>
>>><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>>>	<soapenv:Header />
>>>	<soapenv:Body>
>>>	<myMethodRequest xmlns="http://localhost:8080/axis2/services/MyService/xsd">
>>>		<dir xmlns="">
>>>			<dir>hostname</dir>
>>>		</dir>
>>>	</myMethodRequest>
>>>	</soapenv:Body>
>>></soapenv:Envelope>
>>>
>>>Does anyone has further ideas ?
>>>
>>>Thanks so long
>>>
>>>Bille
>>> 
>>>
>>>      
>>>
>>>>-----Ursprüngliche Nachricht-----
>>>>Von: axis-user@ws.apache.org
>>>>Gesendet: 29.06.06 08:00:25
>>>>An: axis-user@ws.apache.org
>>>>Betreff: Re: [axis2] code generated service :: Operation not found
>>>>   
>>>>
>>>>        
>>>>
>>> 
>>>
>>>      
>>>
>>>>Hi Studium;
>>>>As I understand , you are not sending SOAP action in the request.
>>>>try
>>>>option.setAction("myMethod"); , before calling the service.
>>>>
>>>>studium-sbr@web.de wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>Hi,
>>>>>
>>>>>I have a code generated service deployed, let's call it 'MyService'. The
axis service list says the service is fine and has a method 'myMethod'
>>>>>When running the Client with a simple message I get an AxisFault saying:
>>>>>
>>>>>Operation Not found EPR is http://localhost:8080/axis2/services/MyService
and WSA Action =  http://localhost:8080/axis2/services/MyService/myMethod
>>>>>	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>>>>>
>>>>>While debugging I realized, that the instance variable axisOperation isn't
set (DispatchPhase::checkPostCondition()).
>>>>>The AxisEngine class doesn't seem to get the axisOperation set.
>>>>>For code  generation I used the Eclipse PlugIn Version 1.2.0
>>>>>
>>>>>I'm using the nightly build of 07.06.2006.
>>>>>
>>>>>Could anybody give me a hint please of what I'm missing?
>>>>>
>>>>>TIA Bille
>>>>>
>>>>>
>>>>>______________________________________________________________
>>>>>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>>>>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>>>>>
>>>>>
>>>>>---------------------------------------------------------------------
>>>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>-- 
>>>>Thanks,
>>>>Deepal
>>>>................................................................
>>>>~Future is Open~ 
>>>>
>>>>
>>>>
>>>>---------------------------------------------------------------------
>>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>______________________________________________________________
>>>Verschicken Sie romantische, coole und witzige Bilder per SMS!
>>>Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
>>>
>>> 
>>>
>>>------------------------------------------------------------------------
>>>
>>>---------------------------------------------------------------------
>>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>>
>>>      
>>>
>>-- 
>>Thanks,
>>Deepal
>>................................................................
>>~Future is Open~ 
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>>For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>    
>>
>
>
>______________________________________________________________________________
>Mit WEB.DE iNews werden Sie über die Ergebnisse der wichtigsten WM-Begegnungen
>per SMS informiert: http://freemail.web.de/features/inews.htm/?mc=021202
>
>  
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="UTF-8"?>
><wsdl:definitions name="MyService" targetNamespace="http://localhost:8080/axis2/services/MyService/"
xmlns:tns="http://localhost:8080/axis2/services/MyService/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsd1="http://localhost:8080/axis2/services/MyService/xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
>	<wsdl:types>
>		<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost:8080/axis2/services/MyService/xsd"
xmlns:xsd1="http://localhost:8080/axis2/services/MyService/xsd">
>
><!--  alle, die irgendwo als type= referenziert werden -->
>				<xsd:complexType name="group">
>					<xsd:all>
>							<xsd:element name="group" minOccurs="0" maxOccurs="1" type="xsd:string" />
>					</xsd:all>
>					<xsd:attribute name="dn" type="xsd:string" />
>				</xsd:complexType>
>
>				<xsd:complexType name="kid">
>					<xsd:all>
>							<xsd:element name="kid" minOccurs="0" maxOccurs="1" type="xsd:string" />
>					</xsd:all>
>				</xsd:complexType>
>
>				<xsd:complexType name="mu">
>					<xsd:all>
>							<xsd:element name="mu" minOccurs="0" maxOccurs="1" type="xsd:string" />
>					</xsd:all>
>				</xsd:complexType>
>
>				<xsd:complexType name="dir">
>					<xsd:all>
>							<xsd:element name="dir" minOccurs="0" maxOccurs="1" type="xsd:string" />
>					</xsd:all>
>				</xsd:complexType>
>
>				<xsd:complexType name="groups">
>					<xsd:sequence>
>							<xsd:element name="groups" minOccurs="0" maxOccurs="unbounded" type="xsd1:group"
/>
>					</xsd:sequence>
>				</xsd:complexType>
>				
>			<!--  Datenstrukturen der Messages; diese muessen als element deklariert sein -->
>			<xsd:element name="myMethodRequest">
>				<xsd:complexType>
>					<xsd:sequence>
>						<xsd:element name="kid" type="xsd1:kid" minOccurs="1" maxOccurs="1"/>
>						<xsd:element name="mu" type="xsd1:mu" minOccurs="0" maxOccurs="1"/>
>						<xsd:element name="dir" type="xsd1:dir" minOccurs="0" maxOccurs="1"/>
>					</xsd:sequence>
>				</xsd:complexType>
>			</xsd:element>
>			
>			<xsd:element name="myMethodResponse" type="xsd1:kid" />
>
>		</xsd:schema>
>	</wsdl:types>
>	<!-- Nachrichten  -->
>	<wsdl:message name="myMethodResponse">
>		<wsdl:part name="parameters" element="xsd1:myMethodResponse"/>
>	</wsdl:message>
>	<wsdl:message name="myMethodRequest">
>		<wsdl:part name="parameters" element="xsd1:myMethodRequest"/>
>	</wsdl:message>
>	<!-- Port -->
>	<wsdl:portType name="MyServicePortType">
>		<wsdl:operation name="myMethod">
>			<wsdl:input message="tns:myMethodRequest"/>
>			<wsdl:output message="tns:myMethodResponse"/>
>		</wsdl:operation>
>	</wsdl:portType>
>	<!--  Binding -->
>	<wsdl:binding name="MyServicePortBinding" type="tns:MyServicePortType">
>		<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
>		<wsdl:operation name="myMethod">
>			<soap:operation soapAction="http://localhost:8080/axis2/services/MyService/myMethod"
style="document"/>
>			<wsdl:input>
>				<soap:body use="literal"/>
>			</wsdl:input>
>			<wsdl:output>
>				<soap:body use="literal"/>
>			</wsdl:output>
>		</wsdl:operation>
>	</wsdl:binding>
>	<!--  Service -->
>	<wsdl:service name="MyService">
>		<wsdl:port name="MyServicePort" binding="tns:MyServicePortBinding">
>			<soap:address location="http://localhost:8080/axis2/services/MyService"/>
>		</wsdl:port>
>	</wsdl:service>
></wsdl:definitions>
>
>------------------------------------------------------------------------
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>For additional commands, e-mail: axis-user-help@ws.apache.org
>

-- 
Thanks,
Deepal
................................................................
~Future is Open~ 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message