Alex,

It's working now when sending in the format sendsoap -a
"urn:someSoapAction".   

Thanks.

Chandan



Alex Boisvert wrote:
> 
> You should pass the SOAPAction parameter to the sendsoap utility, e.g.
> sendsoap -a "urn:someSoapAction".   You can find the correct value for
> your
> operation in the WSDL Binding (search for "soapAction" in your .wsdl file)
> and if it's empty, pass the empty string ("").
> 
> If you want more information on SOAPAction, check out
> http://www.oreillynet.com/xml/blog/2002/11/unraveling_the_mystery_of_soap.html
> 
> alex
> 
> On 8/21/07, chandanj <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello,
>>
>> I am using apache ode 1.0 with tomcat 5.5.20
>>
>> I get the following message when using sendsoap request:
>>
>>
>> C:\Program
>> Files\Tomcat\apache-tomcat-5.5.20\webapps\ode\WEB-INF\processes\Hello
>> MatrixService>sendsoap
>> http://localhost:8080/ematrix/services/JpoTestHelloMatrix
>> MatrixService testRequest.soap
>> WARN - 2007-08-21 12:41:34,543 -
>> <org.apache.commons.httpclient.HttpMethodBase>
>> Going to buffer response body of large or unknown size. Using
>> getResponseBodyAsS
>> tream instead is recommended.
>> <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
>> xmlns:soapenv="http://sc
>> hemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"; x
>> mlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>> <soapenv:Body>
>>   <soapenv:Fault>
>>    <faultcode
>> xmlns:ns1="http://xml.apache.org/axis/";>ns1:Client.NoSOAPAction</f
>> aultcode>
>>    <faultstring>no SOAPAction header!</faultstring>
>>    <detail>
>>     <ns2:hostname
>> xmlns:ns2="http://xml.apache.org/axis/";>sms390</ns2:hostname>
>>    </detail>
>>   </soapenv:Fault>
>> </soapenv:Body>
>> </soapenv:Envelope>
>>
>>
>>
>> The wsdl file definition is as follows:
>>
>> <wsdl:definitions targetNamespace="http://client.test.jpo";
>> xmlns:apachesoap="http://xml.apache.org/xml-soap";
>> xmlns:impl="http://client.test.jpo"; xmlns:intf="http://client.test.jpo";
>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
>> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
>> xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/";>
>> <wsdl:types/>
>>   <wsdl:message name="connectRequest">
>>     <wsdl:part name="username" type="xsd:string"/>
>>     <wsdl:part name="password" type="xsd:string"/>
>>   </wsdl:message>
>>   <wsdl:message name="connectResponse">
>>     <wsdl:part name="connectReturn" type="xsd:string"/>
>>   </wsdl:message>
>>   <wsdl:portType name="HelloMatrixMatrixService">
>>     <wsdl:operation name="connect" parameterOrder="username password">
>>       <wsdl:input message="impl:connectRequest" name="connectRequest"/>
>>       <wsdl:output message="impl:connectResponse"
>> name="connectResponse"/>
>>     </wsdl:operation>
>>   </wsdl:portType>
>>   <wsdl:binding name="JpoTestHelloMatrixMatrixServiceSoapBinding"
>> type="impl:HelloMatrixMatrixService">
>>     <wsdlsoap:binding style="rpc"
>> transport="http://schemas.xmlsoap.org/soap/http"/>
>>     <wsdl:operation name="connect">
>>       <wsdlsoap:operation soapAction=""/>
>>       <wsdl:input name="connectRequest">
>>         <wsdlsoap:body
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>> namespace="http://client.test.jpo"; use="encoded"/>
>>       </wsdl:input>
>>       <wsdl:output name="connectResponse">
>>         <wsdlsoap:body
>> encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
>> namespace="http://client.test.jpo"; use="encoded"/>
>>       </wsdl:output>
>>     </wsdl:operation>
>>   </wsdl:binding>
>>   <wsdl:service name="HelloMatrixMatrixServiceService">
>>     <wsdl:port binding="impl:JpoTestHelloMatrixMatrixServiceSoapBinding"
>> name="JpoTestHelloMatrixMatrixService">
>>       <wsdlsoap:address
>> location="
>> http://localhost:8080/ematrix/services/JpoTestHelloMatrixMatrixService"/>
>>     </wsdl:port>
>>   </wsdl:service>
>>
>>      <plnk:partnerLinkType name="HelloMatrixPartnerLinkType">
>>       <plnk:role name="me" portType="impl:HelloMatrixMatrixService"/>
>>       <plnk:role name="you" portType="impl:HelloMatrixMatrixService"/>
>>     </plnk:partnerLinkType>
>>
>> </wsdl:definitions>
>>
>>
>>
>> The testRequest.soap is as follows:
>>
>> <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; >
>>            <soap-env:Header/>
>>
>>   <!-- test soap message -->
>>   <SOAP-ENV:Body>
>>     <ns1:hello xmlns:ns1="http://ode/bpel/unit-test.wsdl";>
>>         <TestPart xmlns="">Hello</TestPart>
>>     </ns1:hello>
>>   </SOAP-ENV:Body>
>> </SOAP-ENV:Envelope>
>>
>>
>>
>>
>> Why am I getting the fault message? Can someone help me with this?
>>
>>
>>
>> Regards
>> Chandan
>> --
>> View this message in context:
>> http://www.nabble.com/Faultstring-no-SOAPAction-header-received-on-sending-sendsoap-request-tf4303509.html#a12249703
>> Sent from the Apache Ode User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Faultstring-no-SOAPAction-header-received-on-sending-sendsoap-request-tf4303509.html#a12269053
Sent from the Apache Ode User mailing list archive at Nabble.com.

Reply via email to