ode-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chandanj <chandan.jeth...@gmail.com>
Subject Faultstring no SOAPAction header received on sending sendsoap request
Date Tue, 21 Aug 2007 14:08:33 GMT

Hello,

I am using apache ode 1.0 with tomcat 5.5.20

Web application gets deployed with the following errors in Tomcat:

INFO: Server startup in 102540 ms
ERROR - GeronimoLog.error(104) |
file:/D:/Matrix_Apache/apache-tomcat-5.5.20/web
apps/ode/WEB-INF/processes/HelloMatrixService/HelloMatrix.bpel:7: error:
[Undecl
aredPartnerLinkType] Attempt to reference undeclared partner link type
"{http://
client.test.jpo}HelloMatrixPartnerLinkType".
18:26:45,646 ERROR [BpelC]
file:/D:/Matrix_Apache/apache-tomcat-5.5.20/webapps/o
de/WEB-INF/processes/HelloMatrixService/HelloMatrix.bpel:7: error:
[UndeclaredPa
rtnerLinkType] Attempt to reference undeclared partner link type
"{http://client
.test.jpo}HelloMatrixPartnerLinkType".
ERROR - GeronimoLog.error(104) | null:33: error: [UndeclaredPartnerLink]
Attempt
 to reference undeclared partner link "matrixPartnerLink".
18:26:45,677 ERROR [BpelC] null:33: error: [UndeclaredPartnerLink] Attempt
to re
ference undeclared partner link "matrixPartnerLink".
ERROR - GeronimoLog.error(108) | Deploy failed; BPEL compilation errors.
org.apache.ode.bpel.compiler.api.CompilationException: error:
[CompilationErrors
] Compilation completed with 2 error(s).
        at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:6
94)
        at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:252)
        at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:322)
        at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:152)
        at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:123)
        at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:16
5)
        at
org.apache.ode.axis2.deploy.DeploymentPoller.check(DeploymentPoller.j
ava:144)
        at
org.apache.ode.axis2.deploy.DeploymentPoller.access$300(DeploymentPol
ler.java:55)
        at
org.apache.ode.axis2.deploy.DeploymentPoller$PollingThread.run(Deploy
mentPoller.java:188)
18:26:45,677 ERROR [ProcessStoreImpl] Deploy failed; BPEL compilation
errors.
org.apache.ode.bpel.compiler.api.CompilationException: error:
[CompilationErrors
] Compilation completed with 2 error(s).
        at
org.apache.ode.bpel.compiler.BpelCompiler.compile(BpelCompiler.java:6
94)
        at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:252)
        at org.apache.ode.bpel.compiler.BpelC.compile(BpelC.java:322)
        at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:152)
        at
org.apache.ode.store.DeploymentUnitDir.compile(DeploymentUnitDir.java
:123)
        at
org.apache.ode.store.ProcessStoreImpl.deploy(ProcessStoreImpl.java:16

I get the following error 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.


Mime
View raw message