This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Web Services and the fly likes Error: no SOAPAction header! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Error: no SOAPAction header!" Watch "Error: no SOAPAction header!" New topic
Author

Error: no SOAPAction header!

swa rna
Greenhorn

Joined: Oct 28, 2007
Posts: 5
Hii
I am trying to achive WS-AT(atomic transaction)in between Java and .net client using Websphere Application server v6.1. i am gettimg the WSWS3147E: Error: no SOAPAction header!..when i add the java wsdl(webservice) to .net as "service Reference".
While creating the dynamic proxy..its throwing this error.
Can any body suggest me where is the problem.

here is the java wsdl file.
<?xml version="1.0" encoding="UTF-8"?>
<wsdl efinitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:impl="http://ejb.test.hp" xmlns:intf="http://ejb.test.hp" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ejb.test.hp" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
<wsdl:types>
<schema targetNamespace="http://ejb.test.hp" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<element name="postOrderResponse">
<complexType>
<sequence>
<element name="postOrderReturn" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="postOrder">
<complexType>
<sequence>
<element name="orderNo" type="xsd:int"/>
<element name="desc" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>

<wsdl:message name="postOrderResponse">
<wsdl art element="intf ostOrderResponse" name="parameters"/>
</wsdl:message>

<wsdl:message name="postOrderRequest">
<wsdl art element="intf ostOrder" name="parameters"/>
</wsdl:message>

<wsdl ortType name="SampleEJB">
<wsdl peration name="postOrder">
<wsdl:input message="intf ostOrderRequest" name="postOrderRequest"/>
<wsdl utput message="intf ostOrderResponse" name="postOrderResponse"/>
</wsdl peration>

</wsdl ortType>
<wsdl:binding name="SampleEJBSoapBinding" type="intf:SampleEJB">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>

<wsdl peration name="postOrder">
<wsdlsoap peration soapAction="postOrder"/>

<wsdl:input name="postOrderRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>

<wsdl utput name="postOrderResponse">
<wsdlsoap:body use="literal"/>
</wsdl utput>

</wsdl peration>
</wsdl:binding>
<wsdl:service name="SampleEJBService">
<wsdl ort binding="intf:SampleEJBSoapBinding" name="SampleEJB">
<wsdlsoap:address location="http://localhost:9081/DynamicWeb/services/SampleEJB"/>
</wsdl ort>
</wsdl:service>
</wsdl efinitions>

console:

WebServicesSe E com.ibm.ws.webservices.engine.transport.http.WebServicesServlet getSoapAction WSWS3112E: Error: Generating WebServicesFault due to missing SOAPAction.
WebServicesFault
faultCode: Client.NoSOAPAction
faultString: WSWS3147E: Error: no SOAPAction header!
faultActor: null
faultDetail:

WSWS3147E: Error: no SOAPAction header!
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.getSoapAction(WebServicesServlet.java:1389)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:720)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)

please guide me..where is the probelm..
 
Consider Paul's rocket mass heater.
 
subject: Error: no SOAPAction header!