SaraCavelind
12 years agoContributor
[Resolved] Namespace and changed endpoint
Hi!
I have a situation where we have a new version of a webservice that I would like to use in all out tests.
I have defined a new endpoint (the new correct), and changes (in a copy) the endpoint to this.
When I try to execute I get the following error:
<faultcode>S:Client</faultcode>
<faultstring>Cannot find dispatch method for {http: ------
I notice that the namespace in my updated tests isn't the same as if I create the request from scratch:
Only updated with new endpoint:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ref="http://tbd.se/y35/refundpayment-ws1"> <soapenv:Header/>
<soapenv:Body>
<ref:withdrawRefund>
<!--Zero or more repetitions:-->
<withdrawRequest>
<!--Optional:-->
<amount>100</amount>
<!--Optional:-->
<customerId>unknown</customerId>
</withdrawRequest>
</ref:withdrawRefund>
</soapenv:Body>
</soapenv:Envelope>
Request created from scrath (Insert Test Step ect)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ref="http://tbd.se/y35/refundpayment-ws2">
<soapenv:Header/>
<soapenv:Body>
<ref:withdrawRefund><withdrawRequest><amount>100</amount><customerId>unknown</customerId></withdrawRequest></ref:withdrawRefund>
</soapenv:Body>
</soapenv:Envelope>
1. Any idea of the error (my guess is the namespace)
2. Is there some easy way to get the new namespace also?
I have a situation where we have a new version of a webservice that I would like to use in all out tests.
I have defined a new endpoint (the new correct), and changes (in a copy) the endpoint to this.
When I try to execute I get the following error:
<faultcode>S:Client</faultcode>
<faultstring>Cannot find dispatch method for {http: ------
I notice that the namespace in my updated tests isn't the same as if I create the request from scratch:
Only updated with new endpoint:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ref="http://tbd.se/y35/refundpayment-ws1"> <soapenv:Header/>
<soapenv:Body>
<ref:withdrawRefund>
<!--Zero or more repetitions:-->
<withdrawRequest>
<!--Optional:-->
<amount>100</amount>
<!--Optional:-->
<customerId>unknown</customerId>
</withdrawRequest>
</ref:withdrawRefund>
</soapenv:Body>
</soapenv:Envelope>
Request created from scrath (Insert Test Step ect)
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ref="http://tbd.se/y35/refundpayment-ws2">
<soapenv:Header/>
<soapenv:Body>
<ref:withdrawRefund><withdrawRequest><amount>100</amount><customerId>unknown</customerId></withdrawRequest></ref:withdrawRefund>
</soapenv:Body>
</soapenv:Envelope>
1. Any idea of the error (my guess is the namespace)
2. Is there some easy way to get the new namespace also?