Click here to Skip to main content
16,012,223 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
IBM Datapower sending response to my Webservice that always in listening state to hear response from Data Power.When Data power trying to send response to my web service my webservice sending back to datapower a soapfault error message as follows:

<soap:body xmlns:soap="#unknown">
<soap:fault>
<faultcode>soap:Client <faultstring>System.Web.Services.Protocols.SoapException: Unable to handle request without a valid action parameter. Please supply a valid soap action.
at System.Web.Services.Protocols.Soap12ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
<detail>


Here is my web service(CCEReplyService.asmx):
XML
<System.Web.Services.WebService(Namespace:="http://10.x.xx.xx/isoats/AOPCWSReply/CCEReplyService.asmx/GetCourtCaseEvent")> _
<System.Web.Services.WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _
<ToolboxItem(False)> _
Public Class CCEReplyService

End Class

My AOPCCCEReply.Vb class file

 _<System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://10.x.xx.xx/isoats/AOPCWSReply/CCEReplyService.asmx/GetCourtCaseEvent", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Bare)> _
        <webmethod()> _
        Public Function GetCourtCaseEvent(<system.xml.serialization.xmlelementattribute("getcourtcaseevent",> ByVal GetCourtCaseEvent1 As GetCourtCaseEventRequestType) As <system.xml.serialization.xmlelementattribute("getcourtcaseeventresponse",> GetCourtCaseEventResponseType

 Dim results() As Object = Me.Invoke("GetCourtCaseEvent", New Object() {GetCourtCaseEvent1})

Return (CType(results(0), GetCourtCaseEventResponseType))
End Function


MY DataPower SOAP Response to my Webserivce

<pre lang="xml"><SOAP-ENV:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Body-e62b9e50-65fe-4bad-bceb-b5426b4698e4">
        <m:ReceiveCourtCaseEventReply xmlns:jnet-m="http://www.jnet.state.pa.us/niem/jnet/metadata/1" xmlns:m="http://jnet.state.pa.us/message/aopc/CCERequestReply/1">
            <jnet-m:ResponseMetadata>
                <jnet-m:UserDefinedTrackingID>0db574e4-745f-461d-a507-00c3350988fd</jnet-m:UserDefinedTrackingID>
                <jnet-m:BackendSystemReturn>
                    <jnet-m:BackendSystemName>AOPC</jnet-m:BackendSystemName>
                    <jnet-m:BackendSystemStatusCode>NO RECORD</jnet-m:BackendSystemStatusCode>
                    <jnet-m:BackendSystemReturnCode>E00</jnet-m:BackendSystemReturnCode>
                    <jnet-m:BackendSystemReturnText>DOCKET NOT FOUND: CP-02-CR-0102432-2010</jnet-m:BackendSystemReturnText>
                </jnet-m:BackendSystemReturn>
            </jnet-m:ResponseMetadata>
        </m:ReceiveCourtCaseEventReply>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>



Please help me to resolve this issue!!
Thanks,
Srinivas Kalagara
Posted
Updated 12-May-11 11:55am
v3

1 solution

I have resolved this issue myself and here I'm sharing to guys what leads or causes to this type of SOAP fault error messages.

As I mentioned in my earlier posted query, I'm getting response to my Webservice from different agency through IBM datapower. Once my Webserice started hearing the response its throwing the exception at this line:

Dim results() As Object = Me.Invoke("GetCourtCaseEvent", New Object() {GetCourtCaseEvent1})

Me.Invoke() always looks for Webservice methods from Client side where Webservice referred.

This is automatically generated by WSDL.exe.

In my case I was trying to execute this line of code from my webservice itself without referring to client. So, I commented this line and everything went well.

Thanks,
Srinivas Kalagara
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900