Announcement Announcement Module
Collapse
No announcement yet.
Cannot find dispatch method for - SoapFaultClientException Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot find dispatch method for - SoapFaultClientException

    I have created XSD from the existing service and trying invoke the call using Spring client but I am getting following exception :

    Spingframework.ws.client.core.WebServiceTemplate] - Received Fault message for request [SaajSoapMessage {http://webservice.instructionsummary.fscm.db.com/}TfTransactionStatusRequest]
    org.springframework.ws.soap.client.SoapFaultClient Exception: Cannot find dispatch method for {http://webservice.instructionsummary.fscm.db.com/}TfTransactionStatusRequest
    at org.springframework.ws.soap.client.core.SoapFaultM essageResolver.resolveFault(SoapFaultMessageResolv er.java:37)
    at org.springframework.ws.client.core.WebServiceTempl ate.handleFault(WebServiceTemplate.java:735)
    at org.springframework.ws.client.core.WebServiceTempl ate.doSendAndReceive(WebServiceTemplate.java:561)
    at org.springframework.ws.client.core.WebServiceTempl ate.sendAndReceive(WebServiceTemplate.java:499)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 348)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 342)
    at org.springframework.ws.client.core.WebServiceTempl ate.marshalSendAndReceive(WebServiceTemplate.java: 334)
    at com.db.portal.portlets.custgraphs.wsclient.Custody ServiceClient.callAcctBalWS(CustodyServiceClient.j ava:138)
    at com.db.portal.portlets.custgraphs.wsclient.Custody ServiceClient.main(CustodyServiceClient.java:173)


    My WSDL is having XSD as follows :

    <types>
    - <xsd:schema>
    <xsd:import namespace="http://webservice.instructionsummary.fscm.db.com/" schemaLocation="http://prismad4z2.sg.db.com:8888/InstructionSummary/PendingTaskListServiceImplService?xsd=1" />
    </xsd:schema>
    - <xsd:schema>
    <xsd:import namespace="http://instructionsummary.webservice.fscm.db.com/InstructionSummary" schemaLocation="http://prismad4z2.sg.db.com:8888/InstructionSummary/PendingTaskListServiceImplService?xsd=2" />
    </xsd:schema>
    </types>

    pls help to guide me to resolve this problem..

  • #2
    Resolved ...

    resolved it by myself...

    RootElement should be the name of Root Element defined in XSD..While a small mistake I did that the name defined was started in upper case while in XSD it is started with lower case .

    actual request should be : http://webservice.instructionsummary.fscm.db.com/}tfTransactionStatusRequest
    Last edited by kapil2703; Jun 10th, 2010, 06:24 AM. Reason: a

    Comment

    Working...
    X