I am aware of Sandesha, but what i am trying to accomplish is a service that
lets me force errors in a sandesha sender for testing purposes, this is why
i include those operations.

any ideas about how could i get a 200 ok and a response instead of a 202
accepted when the incoming message has no body parts???

Thank you very much.

Enrique.

enrique_s wrote:
> 
> 
> 
> enrique_s wrote:
>> 
>> hi, i have wsdl-generated a web service that should respond to a certain
>> incoming SOAP message
>> 
>> the thing is that incoming message has no body parts, info is in header,
>> and Axis2 won't let me process it or respond in the skeleton, and ALWAYS
>> ends up with (whatever i put in the skeleton method):
>> 
>> HTTP/1.1 202 Accepted
>> Server: Apache-Coyote/1.1
>> Content-Length: 0
>> Date: Mon, 28 Mar 2011 08:50:23 GMT
>> 
>> Is there any way to tell axis2 NOT to respond with a 202 and let me
>> generate a SOAP message in the skeleton instead??
>> 
>> This is getting on my nerves.
>> 
>> Thank you.
>> 
> 
> WSDL used to generate the skeleton is shown below:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <wsdl:definitions name="DeviceObservationConsumer"
> targetNamespace="urn:ihe:pcd:dec:2010"
> xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
> xmlns:rm="http://docs.oasis-open.org/ws-rx/wsrm/200702";
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
> xmlns:tns="urn:ihe:pcd:dec:2010"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:wsam="http://www.w3.org/2007/02/addressing/metadata";
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
> xmlns:wsmc="http://docs.oasis-open.org/ws-rx/wsmc/200702";
> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";>
>   <wsdl:types>
>     <xsd:schema>
>                       <xsd:import namespace="urn:ihe:pcd:dec:2010"
> schemaLocation="DeviceObservationConsumer.xsd"/>
>                       <xsd:import 
> namespace="http://docs.oasis-open.org/ws-rx/wsrm/200702";
> schemaLocation="http://docs.oasis-open.org/ws-rx/wsrm/200702/wsrm-1.1-schema-200702.xsd"/>
>                       <xsd:import 
> namespace="http://docs.oasis-open.org/ws-rx/wsmc/200702";
> schemaLocation="http://docs.oasis-open.org/ws-rx/wsmc/200702/wsmc-1.1-schema-200702.xsd"/>
>                       <xsd:import
> namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing";
> schemaLocation="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
>       </xsd:schema>
>   </wsdl:types>
>   
>   <wsdl:message name="CreateSequenceResponse">
>     <wsdl:part name="createResponse" element="rm:CreateSequenceResponse">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="TerminateSequence">
>     <wsdl:part name="terminate" element="rm:TerminateSequence">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="CreateSequence">
>     <wsdl:part name="create" element="rm:CreateSequence">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="TerminateSequenceResponse">
>     <wsdl:part name="terminateResponse"
> element="rm:TerminateSequenceResponse">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="CloseSequence">
>     <wsdl:part name="close" element="rm:CloseSequence">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="CommunicatePCDData_Message">
> <wsdl:documentation>Communicate PCD Data</wsdl:documentation>
>     <wsdl:part name="body" element="tns:CommunicatePCDData">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="CommunicatePCDDataResponse_Message">
> <wsdl:documentation>Communicate PCD Data Response</wsdl:documentation>
>     <wsdl:part name="body" element="tns:CommunicatePCDDataResponse">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="CloseSequenceResponse">
>     <wsdl:part name="closeResponse" element="rm:CloseSequenceResponse">
>     </wsdl:part>
>   </wsdl:message>
>   
>   <wsdl:message name="SequenceAcknowledgement">
>   </wsdl:message>
>   
>    <wsdl:message name="AckRequested">
>   </wsdl:message>
>   
>   
>   
>   <wsdl:portType name="DeviceObservationConsumer_PortType">
>   
>     <wsdl:operation name="CommunicatePCDData">
>       <wsdl:input message="tns:CommunicatePCDData_Message"
> wsaw:Action="urn:ihe:pcd:2010:CommunicatePCDData">
>     </wsdl:input>
>       <wsdl:output message="tns:CommunicatePCDDataResponse_Message"
> wsaw:Action="urn:ihe:pcd:2010:CommunicatePCDDataResponse">
>     </wsdl:output>
>     </wsdl:operation>
>     
>     <wsdl:operation name="CreateSequence">
>       <wsdl:input message="tns:CreateSequence"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/CreateSequence";>
>       </wsdl:input>
>       <wsdl:output message="tns:CreateSequenceResponse"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/CreateSequenceResponse";>
>       </wsdl:output>
>     </wsdl:operation>
>     
>     <wsdl:operation name="CloseSequence">
>       <wsdl:input message="tns:CloseSequence"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence";>
>     </wsdl:input>
>       <wsdl:output message="tns:CloseSequenceResponse"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequenceResponse";>
>     </wsdl:output>
>     </wsdl:operation>
>     
>     <wsdl:operation name="TerminateSequence">
>       <wsdl:input message="tns:TerminateSequence"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/TerminateSequence";>
>     </wsdl:input>
>       <wsdl:output message="tns:TerminateSequenceResponse"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/TerminateSequenceResponse";>
>     </wsdl:output>
>     </wsdl:operation>
> 
>     
>     <wsdl:operation name="AckRequested">
>     <wsdl:input message="tns:AckRequested"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/AckRequested";>
>     </wsdl:input>
>     <wsdl:output message="tns:SequenceAcknowledgement"
> wsam:Action="http://docs.oasis-open.org/ws-rx/wsrm/200702/SequenceAcknowledgement";>
>     </wsdl:output>
>     </wsdl:operation>
>   </wsdl:portType>
>   
>   <wsdl:binding name="DeviceObservationConsumer_Binding_Soap12"
> type="tns:DeviceObservationConsumer_PortType">
>     <soap12:binding style="document"
> transport="http://schemas.xmlsoap.org/soap/http"/>
>    
>     <wsdl:operation name="CommunicatePCDData">
>       <soap12:operation soapAction="urn:ihe:pcd:2010:CommunicatePCDData"/>
>       <wsdl:input>
>         <soap12:body use="literal"/>
>       </wsdl:input>
>       <wsdl:output>
>         <soap12:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>     
>     <wsdl:operation name="CreateSequence">
>       <soap12:operation
> soapAction="http://docs.oasis-open.org/ws-rx/wsrm/200702/CreateSequence"/>
>       <wsdl:input>
>         <soap12:body use="literal"/>
>       </wsdl:input>
>       <wsdl:output>
>         <soap12:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>     
>     <wsdl:operation name="CloseSequence">
>       <soap12:operation
> soapAction="http://docs.oasis-open.org/ws-rx/wsrm/200702/CloseSequence"/>
>       <wsdl:input>
>         <soap12:body use="literal"/>
>       </wsdl:input>
>       <wsdl:output>
>         <soap12:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>     
>     <wsdl:operation name="TerminateSequence">
>       <soap12:operation
> soapAction="http://docs.oasis-open.org/ws-rx/wsrm/200702/TerminateSequence"/>
>       <wsdl:input>
>         <soap12:body use="literal"/>
>       </wsdl:input>
>       <wsdl:output>
>         <soap12:body use="literal"/>
>       </wsdl:output>
>     </wsdl:operation>
>     
>   
>  
>   
>     <wsdl:operation name="AckRequested">     
>     <soap12:operation
> soapAction="http://docs.oasis-open.org/ws-rx/wsrm/200702/AckRequested"/>
>       <wsdl:input>   
>         
>       </wsdl:input>     
>      <wsdl:output>       
>       
>       </wsdl:output>
>     </wsdl:operation>
>  
>  
>   </wsdl:binding>
>   
>   <wsdl:service name="DeviceObservationConsumer_Service">
>     <wsdl:port name="DeviceObservationConsumer_Port_Soap12"
> binding="tns:DeviceObservationConsumer_Binding_Soap12">
>       <soap12:address location="http://www.example.org"/>
>     </wsdl:port>
>   </wsdl:service>
>   
> </wsdl:definitions>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Axis2-won%27t-respond-to-empty-SOAP-body-tp31256179p31285026.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
For additional commands, e-mail: java-user-h...@axis.apache.org

Reply via email to