|
Rank: Newbie
Joined: 12/18/2015 Posts: 4 Location: Dublin
|
I have been using the 2013 and 2015 editions but updated XMLSpy to 2016 recently. I used XML Spy to test my Soap WCF services because it was a quick and easy process. But in the new 2016 version of XML Spy the auto generated Soap request for my interface methods are different causing the request to fail.
Here is a soap request generated in the 2015 version which works
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:m0="http://schemas.datacontract.org/2004/07/LeadTrackingInterface"> <SOAP-ENV:Body> <m:IsGlobalReferralNumber xmlns:m="http://mycompany.com"> <m:request> <m0:referralNumber>String</m0:referralNumber> <m0:repCode>String</m0:repCode> </m:request> </m:IsGlobalReferralNumber> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Here is the soap request generated in the 2016 version which fails.
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:="http://schemas.datacontract.org/2004/07/LeadTrackingInterface" xmlns:="http://schemas.datacontract.org/2004/07/LeadTrackingInterface"> <SOAP-ENV:Body> <m:IsGlobalReferralNumber xmlns:m="http://mycompany.com"> <m:request> <:referralNumber>String</:referralNumber> <:repCode>String</:repCode> </m:request> </m:IsGlobalReferralNumber> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
I see this line is repeated in the XMLSpy 2016 request xmlns:="http://schemas.datacontract.org/2004/07/LeadTrackingInterface" and and xmlns:m0= has changed to xmlns:=
Any Ideas why XML Spy is behaving differently for 2016 when generating Soap requests? Our WCF Service code has not changed in any way.
Below is the error message.
Mike Murray attached the following image(s):
|
|
Rank: Newbie
Joined: 10/28/2002 Posts: 1,283 Location: AT
|
Hi,
I would suggest contacting support through the online support form. Provide the exact steps to reproduce the situation as well as access to your webservice.
|
|
Rank: Newbie
Joined: 12/18/2015 Posts: 4 Location: Dublin
|
island wrote:Hi, I would suggest contacting support through the online support form. Provide the exact steps to reproduce the situation as well as access to your webservice.
Thanks Island, our company policy would not allow that, as it is a financial site, but I will contact online support and see if they can help. In the meantime if anybody on the forums knows how to fix it, I would appreciate the help.
|
|
guest |