I'm having problems hitting an ASP.NET <
http://asp.net/> web service I have
created with a java client. I'm currently trying to determine if the problem
is with the web service, or with the client. The client is blowing up with
the following error:
expected element is missing: {uri:ClaimNet-types}Question
However the soap message being returned *has* the Question element in the
proper place:
<?xml version=" 1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:soap="
http://schemas.xmlsoap.org/soap/envelope/"<
http://schemas.xmlsoap.org/soap/envelope/%22>
>
<soap:Body>
<getSecurityQuestion-return xmlns="uri:ClaimNet-types">
<Question>
<Display>Why?</Display>
<Answer>Because</Answer>
</Question>
<Question>
<Display>How?</Display>
<Answer>Somehow</Answer>
</Question>
</getSecurityQuestion-return>
</soap:Body>
</soap:Envelope>
jax-rpc (using jwsdp-1.5) appears to be parsing this message incorrectly (it
thinks Question has no namespace).
http://www.w3.org/TR/xml-names11/#defaulting makes it pretty clear that the
default namespace declared in "getSecurityQuestion-return" should apply to
its children as well. Is there a way to make it do the right thing?
Thanks,
Dave